]> git.donarmstrong.com Git - mothur.git/blob - listotulabelscommand.h
added get.otulabels and remove.otulabels commands per user request
[mothur.git] / listotulabelscommand.h
1 #ifndef Mothur_listotucommand_h
2 #define Mothur_listotucommand_h
3
4 //
5 //  listotucommand.h
6 //  Mothur
7 //
8 //  Created by Sarah Westcott on 5/15/12.
9 //  Copyright (c) 2012 Schloss Lab. All rights reserved.
10 //
11
12
13 #include "command.hpp"
14 #include "sharedrabundvector.h"
15
16 /**************************************************************************************************/
17
18 class ListOtuLabelsCommand : public Command {
19 public:
20     ListOtuLabelsCommand(string);
21     ListOtuLabelsCommand();
22     ~ListOtuLabelsCommand(){}
23     
24     vector<string> setParameters();
25     string getCommandName()                     { return "list.otulabels";          }
26     string getCommandCategory()         { return "OTU-Based Approaches";        } 
27     //commmand category choices: Sequence Processing, OTU-Based Approaches, Hypothesis Testing, Phylotype Analysis, General, Clustering and Hidden
28     string getHelpString();     
29     string getCitation() { return "http://www.mothur.org/wiki/List.otulabels"; }
30     string getDescription()             { return "lists otu labels from shared or relabund file. Can be used by get.otulabels with output from classify.otu, otu.association, or corr.axes to select specific otus."; }
31     
32     int execute(); 
33     void help() { m->mothurOut(getHelpString()); }      
34     
35 private:
36     bool abort, allLines;
37     string outputDir, sharedfile, relabundfile, label, inputFileName, format;
38     vector<string> outputNames;
39     vector<string> Groups;
40     set<string> labels;
41     
42     int createList(vector<SharedRAbundFloatVector*>&);
43     int createList(vector<SharedRAbundVector*>&);
44
45 };
46
47 /**************************************************************************************************/
48
49
50
51
52
53
54 #endif