]> git.donarmstrong.com Git - mothur.git/blob - removerarecommand.h
388ec2d762e763ef1623d573eb90fa4074dbb039
[mothur.git] / removerarecommand.h
1 #ifndef REMOVERARECOMMAND_H
2 #define REMOVERARECOMMAND_H
3
4 /*
5  *  removerarecommand.h
6  *  mothur
7  *
8  *  Created by westcott on 1/21/11.
9  *  Copyright 2011 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15 #include "listvector.hpp"
16 #include "globaldata.hpp"
17
18 class RemoveRareCommand : public Command {
19         
20 public:
21         
22         RemoveRareCommand(string);      
23         RemoveRareCommand();
24         ~RemoveRareCommand(){}
25         vector<string> getRequiredParameters();
26         vector<string> getValidParameters();
27         vector<string> getRequiredFiles();
28         map<string, vector<string> > getOutputFiles() { return outputTypes; }
29         int execute();
30         void help();    
31         
32 private:
33         GlobalData* globaldata;
34         string sabundfile, rabundfile, sharedfile, groupfile, listfile, outputDir, groups, label;
35         int nseqs, allLines;
36         bool abort, byGroup;
37         vector<string> outputNames, Groups;
38         set<string> labels;
39         map<string, vector<string> > outputTypes;
40         
41         int processSabund();
42         int processRabund();
43         int processList();
44         int processShared();
45         int processLookup(vector<SharedRAbundVector*>&, ofstream&);
46         
47 };
48
49 #endif
50
51
52
53