]> git.donarmstrong.com Git - mothur.git/blob - getotulabelscommand.h
added modify names parameter to set.dir
[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 #include "inputdata.h"
15 #include "listvector.hpp"
16 #include "sharedrabundvector.h"
17
18 /**************************************************************************************************/
19
20 class GetOtuLabelsCommand : public Command {
21 public:
22     GetOtuLabelsCommand(string);
23     GetOtuLabelsCommand();
24     ~GetOtuLabelsCommand(){}
25     
26     vector<string> setParameters();
27     string getCommandName()                     { return "get.otulabels";          }
28     string getCommandCategory()         { return "OTU-Based Approaches";        } 
29     
30         string getHelpString(); 
31     string getOutputPattern(string);    
32     string getCitation() { return "http://www.mothur.org/wiki/Get.otulabels"; }
33     string getDescription()             { return "Can be used with output from classify.otu, otu.association, or corr.axes to select specific otus."; }
34     
35     int execute(); 
36     void help() { m->mothurOut(getHelpString()); }      
37     
38 private:
39     bool abort;
40     string outputDir, accnosfile, constaxonomyfile, otucorrfile, corraxesfile, listfile, sharedfile, label;
41     vector<string> outputNames;
42     set<string> labels;
43     ListVector* list;
44     vector<SharedRAbundVector*> lookup;
45     
46     int readClassifyOtu();
47     int readOtuAssociation();
48     int readCorrAxes();
49     int readList();
50     int readShared();
51     int getListVector();
52     int getShared();
53 };
54
55 /**************************************************************************************************/
56
57
58
59
60
61
62 #endif