]> git.donarmstrong.com Git - mothur.git/blob - removelineagecommand.h
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / removelineagecommand.h
1 #ifndef REMOVELINEAGECOMMAND_H
2 #define REMOVELINEAGECOMMAND_H
3
4 /*
5  *  removelineagecommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 9/24/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14
15 class RemoveLineageCommand : public Command {
16         
17         public:
18         
19                 RemoveLineageCommand(string);
20                 RemoveLineageCommand();
21                 ~RemoveLineageCommand(){};
22         
23                 vector<string> setParameters();
24                 string getCommandName()                 { return "remove.lineage";                      }
25                 string getCommandCategory()             { return "Phylotype Analysis";          }
26                 
27         string getHelpString(); 
28     string getOutputPattern(string);    
29                 string getCitation() { return "http://www.mothur.org/wiki/Remove.lineage"; }
30                 string getDescription()         { return "removes sequences from a list, fasta, name, group, alignreport or taxonomy file from a given taxonomy or set of taxonomies"; }
31
32                 int execute(); 
33                 void help() { m->mothurOut(getHelpString()); }  
34         
35         private:
36                 set<string> names;
37                 vector<string> outputNames, listOfTaxons;
38                 string fastafile, namefile, groupfile, alignfile, listfile, countfile, taxfile, outputDir, taxons;
39                 bool abort, dups;
40                 
41                 int readFasta();
42                 int readName();
43                 int readGroup();
44         int readCount();
45                 int readAlign();
46                 int readList();
47                 int readTax();  
48                 vector< map<string, float> > getTaxons(string);
49 };
50
51 #endif
52