]> git.donarmstrong.com Git - mothur.git/blob - removeotuscommand.h
added citation function to commands
[mothur.git] / removeotuscommand.h
1 #ifndef REMOVEOTUSCOMMAND_H
2 #define REMOVEOTUSCOMMAND_H
3
4 /*
5  *  removeotuscommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 11/12/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "command.hpp"
14 #include "groupmap.h"
15 #include "listvector.hpp"
16
17 class RemoveOtusCommand : public Command {
18         
19 public:
20         
21         RemoveOtusCommand(string);      
22         RemoveOtusCommand();
23         ~RemoveOtusCommand(){}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "remove.otus";                         }
27         string getCommandCategory()             { return "OTU-Based Approaches";        }
28         string getHelpString(); 
29         string getCitation() { return "http://www.mothur.org/wiki/Remove.otus"; }
30         
31         int execute(); 
32         void help() { m->mothurOut(getHelpString()); }  
33         
34 private:
35         string accnosfile, groupfile, listfile, outputDir, groups, label;
36         bool abort;
37         vector<string> outputNames, Groups;
38         GroupMap* groupMap;
39         
40         void readAccnos();
41         int readListGroup();
42         int processList(ListVector*&, GroupMap*&, ofstream&, ofstream&, bool&);
43         
44 };
45
46 #endif
47
48
49
50