]> git.donarmstrong.com Git - mothur.git/blob - removeotuscommand.h
added modify names parameter to set.dir
[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         
29         string getHelpString(); 
30     string getOutputPattern(string);    
31         string getCitation() { return "http://www.mothur.org/wiki/Remove.otus"; }
32         string getDescription()         { return "outputs a new list file containing the otus NOT containing sequences from the groups specified"; }
33
34         int execute(); 
35         void help() { m->mothurOut(getHelpString()); }  
36         
37 private:
38         string accnosfile, groupfile, listfile, outputDir, groups, label;
39         bool abort;
40         vector<string> outputNames, Groups;
41         GroupMap* groupMap;
42         
43         int readListGroup();
44         int processList(ListVector*&, GroupMap*&, ofstream&, ofstream&, bool&);
45         
46 };
47
48 #endif
49
50
51
52