]> git.donarmstrong.com Git - mothur.git/blob - getotulabelscommand.h
Merge remote-tracking branch 'mothur/master'
[mothur.git] / getotulabelscommand.h
1 #ifndef Mothur_getotulabelscommand_h
2 #define Mothur_getotulabelscommand_h
3
4 //
5 //  getotulabelscommand.h
6 //  Mothur
7 //
8 //  Created by Sarah Westcott on 5/21/12.
9 //  Copyright (c) 2012 Schloss Lab. All rights reserved.
10 //
11
12
13 #include "command.hpp"
14
15 /**************************************************************************************************/
16
17 class GetOtuLabelsCommand : public Command {
18 public:
19     GetOtuLabelsCommand(string);
20     GetOtuLabelsCommand();
21     ~GetOtuLabelsCommand(){}
22     
23     vector<string> setParameters();
24     string getCommandName()                     { return "get.otulabels";          }
25     string getCommandCategory()         { return "OTU-Based Approaches";        } 
26     string getHelpString();     
27     string getCitation() { return "http://www.mothur.org/wiki/Get.otulabels"; }
28     string getDescription()             { return "Can be used with output from classify.otu, otu.association, or corr.axes to select specific otus."; }
29     
30     int execute(); 
31     void help() { m->mothurOut(getHelpString()); }      
32     
33 private:
34     bool abort;
35     string outputDir, accnosfile, constaxonomyfile, otucorrfile, corraxesfile;
36     vector<string> outputNames;
37     set<string> labels;
38     
39     int readClassifyOtu();
40     int readOtuAssociation();
41     int readCorrAxes();
42     int readAccnos();
43     
44 };
45
46 /**************************************************************************************************/
47
48
49
50
51
52
53 #endif