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