]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedcommand.h
sped up align.seqs appending of files
[mothur.git] / sharedcommand.h
index e5be50a8b9f80488449db640e65721d32f395a5d..2c5ab237a2d39b006dee4eca4e9b9b2c65a57ebe 100644 (file)
@@ -12,7 +12,6 @@
 #include "command.hpp"
 #include "sharedlistvector.h"
 #include "inputdata.h"
-#include "shared.h"
 #include "readotu.h"
 
 /* The shared() command:
@@ -27,22 +26,35 @@ class GlobalData;
 class SharedCommand : public Command {
        
 public:
-       SharedCommand();        
+       SharedCommand(string);  
+       SharedCommand();
        ~SharedCommand();
+       vector<string> getRequiredParameters();
+       vector<string> getValidParameters();
+       vector<string> getRequiredFiles();
+       map<string, vector<string> > getOutputFiles() { return outputTypes; }
        int execute();  
        void help() {}
        
 private:
-       void printSharedData();
+       void printSharedData(vector<SharedRAbundVector*>);
+       int createMisMatchFile();
+       int readOrderFile();
+       bool isValidGroup(string, vector<string>);
+       int eliminateZeroOTUS(vector<SharedRAbundVector*>&);
+       map<string, vector<string> > outputTypes;
+       
        GlobalData* globaldata;
        ReadOTUFile* read;
        SharedListVector* SharedList;
        InputData* input;
-       Shared* shared;
-       map<string, SharedRAbundVector*>::iterator it;
-       //vector<SharedRAbundVector*> lookup;
+       GroupMap* groupMap;
+       vector<string> groups, outputNames, order;
        ofstream out;
-       string filename;
+       string filename, fileroot, outputDir;
+       bool firsttime, pickedGroups;
+       map<string, ofstream*> filehandles;
+       map<string, ofstream*>::iterator it3;
 
 };