]> git.donarmstrong.com Git - mothur.git/blob - subsamplecommand.h
98085ee9d02cd163e8d9ed76022f5a0c2ee59fea
[mothur.git] / subsamplecommand.h
1 #ifndef SUBSAMPLECOMMAND_H
2 #define SUBSAMPLECOMMAND_H
3
4 /*
5  *  subsamplecommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 10/27/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14 #include "inputdata.h"
15 #include "readotu.h"
16 #include "sharedrabundvector.h"
17
18 class GlobalData;
19
20 class SubSampleCommand : public Command {
21
22 public:
23         SubSampleCommand(string);
24         SubSampleCommand();
25         ~SubSampleCommand();
26         vector<string> getRequiredParameters();
27         vector<string> getValidParameters();
28         vector<string> getRequiredFiles();
29         map<string, vector<string> > getOutputFiles() { return outputTypes; }
30         int execute();
31         void help();
32         
33 private:
34         GlobalData* globaldata;
35         ReadOTUFile* read;
36         InputData* input;
37         vector<SharedRAbundVector*> lookup;
38         ListVector* list;
39         RAbundVector* rabund;
40         SAbundVector* sabund;
41         
42         bool abort, allLines, pickedGroups;
43         set<string> labels; //holds labels to be used
44         string groups, label, outputDir;
45         vector<string> Groups, outputNames;
46         map<string, vector<string> > outputTypes;
47         
48         int eliminateZeroOTUS(vector<SharedRAbundVector*>&);
49         int getSubSampleShared(vector<SharedRAbundVector*>&, ofstream&);
50 };
51
52 #endif
53