]> git.donarmstrong.com Git - mothur.git/blob - makebiomcommand.h
added sets to amova and homova commands. added oligos to make.contigs. added metadat...
[mothur.git] / makebiomcommand.h
1 #ifndef Mothur_makebiomcommand_h
2 #define Mothur_makebiomcommand_h
3
4 //
5 //  makebiomcommand.h
6 //  Mothur
7 //
8 //  Created by Sarah Westcott on 4/16/12.
9 //  Copyright (c) 2012 Schloss Lab. All rights reserved.
10 //
11
12
13 #include "command.hpp"
14 #include "sharedrabundvector.h"
15 #include "inputdata.h"
16
17
18 class MakeBiomCommand : public Command {
19         
20 public:
21         MakeBiomCommand(string);
22         MakeBiomCommand();      
23         ~MakeBiomCommand(){}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "make.biom";   }
27         string getCommandCategory()             { return "General";             }
28         string getOutputFileNameTag(string, string);
29         string getHelpString(); 
30         string getCitation() { return "http://biom-format.org/documentation/biom_format.html, http://www.mothur.org/wiki/Make.biom"; }
31         string getDescription()         { return "creates a biom file"; }
32     
33         int execute(); 
34         void help() { m->mothurOut(getHelpString()); }  
35         
36 private:
37     
38         string sharedfile, contaxonomyfile, metadatafile, groups, outputDir, format, label;
39         vector<string> outputNames, Groups, sampleMetadata;
40         set<string> labels;
41     
42         bool abort, allLines;
43     
44     int getBiom(vector<SharedRAbundVector*>&);
45     vector<string> getMetaData(vector<SharedRAbundVector*>&);
46     vector<string> parseTax(string tax, vector<string>& scores);
47     int getSampleMetaData(vector<SharedRAbundVector*>&);
48 };
49
50
51 #endif