]> git.donarmstrong.com Git - mothur.git/blob - getsabundcommand.h
Merge remote-tracking branch 'mothur/master'
[mothur.git] / getsabundcommand.h
1 #ifndef GETSABUNDCOMMAND_H
2 #define GETSABUNDCOMMAND_H
3
4 /*
5  *  getsabundcommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 6/2/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15 #include "inputdata.h"
16 #include "sabundvector.hpp"
17
18 class GetSAbundCommand : public Command {
19 public:
20         GetSAbundCommand(string);
21         GetSAbundCommand();
22         ~GetSAbundCommand() {}
23         
24         vector<string> setParameters();
25         string getCommandName()                 { return "get.sabund";                          }
26         string getCommandCategory()             { return "OTU-Based Approaches";        }
27         string getOutputFileNameTag(string, string);
28         string getHelpString(); 
29         string getCitation() { return "http://www.mothur.org/wiki/Get.sabund"; }
30         string getDescription()         { return "creates a sabund file"; }
31
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35 private:
36         string filename, format, inputfile, listfile, rabundfile, outputDir;
37         ofstream out;
38         InputData* input;
39         SAbundVector* sabund;
40         vector<string> outputNames;
41
42         bool abort, allLines;
43         set<string> labels; //holds labels to be used
44         string label;
45
46 };
47
48 #endif