]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedcommand.h
added checks for ^C to quit command instead of program
[mothur.git] / sharedcommand.h
index b3b3e6f5d0381d2354d8113012b13251cdbec7e7..399f3d3966bf828ec32cd790dd0d7d14c7e08c25 100644 (file)
@@ -9,14 +9,10 @@
  *
  */
 
-#include <iostream>
-#include <fstream>
-#include <map>
 #include "command.hpp"
 #include "sharedlistvector.h"
 #include "inputdata.h"
-#include "shared.h"
-#include "readmatrix.hpp"
+#include "readotu.h"
 
 /* The shared() command:
        The shared command can only be executed after a successful read.shared command.  
@@ -30,20 +26,28 @@ class GlobalData;
 class SharedCommand : public Command {
        
 public:
-       SharedCommand();        
+       SharedCommand(string);  
        ~SharedCommand();
        int execute();  
+       void help() {}
        
 private:
-       void printSharedData();
+       void printSharedData(vector<SharedRAbundVector*>);
+       int createMisMatchFile();
+       bool isValidGroup(string, vector<string>);
+       int eliminateZeroOTUS(vector<SharedRAbundVector*>&);
+       
        GlobalData* globaldata;
-       ReadMatrix* read;
+       ReadOTUFile* read;
        SharedListVector* SharedList;
        InputData* input;
-       Shared* shared;
-       map<string, SharedRAbundVector*>::iterator it;
+       GroupMap* groupMap;
+       vector<string> groups, outputNames;
        ofstream out;
-       string filename;
+       string filename, fileroot, outputDir;
+       bool firsttime, pickedGroups;
+       map<string, ofstream*> filehandles;
+       map<string, ofstream*>::iterator it3;
 
 };