]> git.donarmstrong.com Git - mothur.git/blob - listotulabelscommand.h
fixed bug in phylo.diversity rooting. added filename patterns and create filename...
[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     
29         string getHelpString(); 
30     string getOutputPattern(string);    
31     string getCitation() { return "http://www.mothur.org/wiki/List.otulabels"; }
32     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."; }
33     
34     int execute(); 
35     void help() { m->mothurOut(getHelpString()); }      
36     
37 private:
38     bool abort, allLines;
39     string outputDir, sharedfile, relabundfile, label, inputFileName, format;
40     vector<string> outputNames;
41     vector<string> Groups;
42     set<string> labels;
43     
44     int createList(vector<SharedRAbundFloatVector*>&);
45     int createList(vector<SharedRAbundVector*>&);
46
47 };
48
49 /**************************************************************************************************/
50
51
52
53
54
55
56 #endif