]> git.donarmstrong.com Git - mothur.git/blob - removerarecommand.h
added citation function to commands
[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
17
18 class RemoveRareCommand : public Command {
19         
20 public:
21         
22         RemoveRareCommand(string);      
23         RemoveRareCommand();
24         ~RemoveRareCommand(){}
25         
26         vector<string> setParameters();
27         string getCommandName()                 { return "remove.rare";                         }
28         string getCommandCategory()             { return "OTU-Based Approaches";        }
29         string getHelpString(); 
30         string getCitation() { return "http://www.mothur.org/wiki/Remove.rare"; }
31         
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35 private:
36         string sabundfile, rabundfile, sharedfile, groupfile, listfile, outputDir, groups, label;
37         int nseqs, allLines;
38         bool abort, byGroup;
39         vector<string> outputNames, Groups;
40         set<string> labels;
41         
42         int processSabund();
43         int processRabund();
44         int processList();
45         int processShared();
46         int processLookup(vector<SharedRAbundVector*>&, ofstream&);
47         
48 };
49
50 #endif
51
52
53
54