]> git.donarmstrong.com Git - mothur.git/blob - getlineagecommand.h
Revert to previous commit
[mothur.git] / getlineagecommand.h
1 #ifndef GETLINEAGECOMMAND_H
2 #define GETLINEAGECOMMAND_H
3
4 /*
5  *  getlineagecommand.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 GetLineageCommand : public Command {
16         
17         public:
18         
19                 GetLineageCommand(string);
20                 GetLineageCommand();
21                 ~GetLineageCommand(){}
22         
23                 vector<string> setParameters();
24                 string getCommandName()                 { return "get.lineage";                         }
25                 string getCommandCategory()             { return "Phylotype Analysis";          }
26                 string getHelpString(); 
27                 string getCitation() { return "http://www.mothur.org/wiki/Get.lineage"; }
28                 string getDescription()         { return "gets sequences from a list, fasta, name, group, alignreport or taxonomy file from a given taxonomy or set of taxonomies"; }
29
30         
31                 int execute(); 
32                 void help() { m->mothurOut(getHelpString()); }  
33         
34         
35         private:
36                 set<string> names;
37                 vector<string> outputNames, listOfTaxons;
38                 string fastafile, namefile, groupfile, alignfile, listfile, taxfile, outputDir, taxons;
39                 bool abort, dups;
40                 
41                 int readFasta();
42                 int readName();
43                 int readGroup();
44                 int readAlign();
45                 int readList();
46                 int readTax();  
47                 vector< map<string, float> > getTaxons(string);
48 };
49
50 #endif
51