]> git.donarmstrong.com Git - mothur.git/blob - readotucommand.h
added mothur.h and fixed includes in many files
[mothur.git] / readotucommand.h
1 #ifndef READOTUCOMMAND_H
2 #define READOTUCOMMAND_H
3 /*
4  *  readotu.h
5  *  Mothur
6  *
7  *  Created by Sarah Westcott on 1/20/09.
8  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
9  *
10  */
11
12 #include "command.hpp"
13 #include "readmatrix.hpp"
14 #include "inputdata.h"
15 #include "groupmap.h"
16 #include "sharedcommand.h"
17 #include "parselistcommand.h"
18
19 /* The read.otu must be run before you execute a collect.single, rarefaction.single, summary.single, 
20 collect.shared, rarefaction.shared or summary.shared command. Mothur will generate a .list, .rabund and .sabund 
21 upon completion of the cluster command or you may use your own. The read.otu command parameter options are 
22 listfile, rabundfile, sabundfile, groupfile and orderfile. The reaad.otu command can be used in two ways. 
23 The first is to read a listfile, rabundfile or sabundfile and run the collect.single, rarefaction.single or summary.single. 
24 For this use the read.otu command should be in the following format: read.otu(listfile=yourListFile, orderfile=yourOrderFile). 
25 The listfile, rabundfile or sabundfile parameter is required, but you may only use one of them. 
26 The second way to use the read.otu command is to read a listfile and a groupfile so you can use the collect.shared, 
27 rarefaction.shared or summary.shared commands. In this case the read.otu command should be in the following format: 
28 read.otu(listfile=yourListFile, groupfile=yourGroupFile). The listfile parameter and groupfile paramaters are required. 
29 When using the command the second way read.otu command parses the .list file and separates it into groups. 
30 It outputs a .shared file containing the OTU information for each group. The read.otu command also outputs a .list file for each group. */
31
32 class GlobalData;
33
34 class ReadOtuCommand : public Command {
35 public:
36         ReadOtuCommand();
37         ~ReadOtuCommand();
38         int execute();
39         
40 private:
41         GlobalData* globaldata;
42         ReadMatrix* read;
43         InputData* input;
44         Command* shared;
45         Command* parselist;
46         GroupMap* groupMap;
47         string filename;
48 };
49
50 #endif