]> git.donarmstrong.com Git - mothur.git/blob - removelineagecommand.h
working on chimera.perseus. made removeConfidences function smarter. Fixed bug in...
[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                 string getHelpString(); 
27                 string getCitation() { return "http://www.mothur.org/wiki/Remove.lineage"; }
28                 string getDescription()         { return "removes sequences from a list, fasta, name, group, alignreport or taxonomy file from a given taxonomy or set of taxonomies"; }
29
30                 int execute(); 
31                 void help() { m->mothurOut(getHelpString()); }  
32         
33         private:
34                 set<string> names;
35                 vector<string> outputNames, listOfTaxons;
36                 string fastafile, namefile, groupfile, alignfile, listfile, taxfile, outputDir, taxons;
37                 bool abort, dups;
38                 
39                 int readFasta();
40                 int readName();
41                 int readGroup();
42                 int readAlign();
43                 int readList();
44                 int readTax();  
45                 vector< map<string, float> > getTaxons(string);
46 };
47
48 #endif
49