]> git.donarmstrong.com Git - mothur.git/blobdiff - getrabundcommand.h
changing command name classify.shared to classifyrf.shared
[mothur.git] / getrabundcommand.h
index 66a3211296edc7f2105af0ba2bfc10f85b7ae109..fd7a6b07fecf135262e310598a3936221cb98826 100644 (file)
 
 #include "command.hpp"
 #include "inputdata.h"
-#include "readotu.h"
 #include "listvector.hpp"
 
-class GlobalData;
 
 class GetRAbundCommand : public Command {
 public:
+       GetRAbundCommand(string);
        GetRAbundCommand();
-       ~GetRAbundCommand();
-       int execute();
+       ~GetRAbundCommand(){}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "get.rabund";                          }
+       string getCommandCategory()             { return "OTU-Based Approaches";        }
+       
+       string getHelpString(); 
+    string getOutputPattern(string);   
+       string getCitation() { return "http://www.mothur.org/wiki/Get.rabund"; }
+       string getDescription()         { return "creates a rabund file"; }
+
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
+       
        
 private:
-       GlobalData* globaldata;
-       string filename;
+       
+       string filename, listfile, sabundfile, inputfile, format, outputDir, countfile;
        ofstream out;
-       ReadOTUFile* read;
-       InputData* input;
-       ListVector* list;
-       RAbundVector* rabund;
+       vector<string> outputNames;
+
+       bool abort, allLines, sorted;
+       set<string> labels; //holds labels to be used
+       string label;
+
+       int processList(ofstream& out);
+    int createRabund(CountTable& ct, ListVector*& list, RAbundVector*& rabund);
 };
 
 #endif