]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.h
added checks for ^C to quit command instead of program
[mothur.git] / unifracunweightedcommand.h
index 2fca41a8388e7d3a6f20bbe79536cae9246eb2fb..f6f867877620e7e6e69e4e446bdbe8da3815861a 100644 (file)
@@ -23,7 +23,7 @@ class UnifracUnweightedCommand : public Command {
        
        public:
                UnifracUnweightedCommand(string);       
-               ~UnifracUnweightedCommand() { delete unweighted; delete util; }
+               ~UnifracUnweightedCommand() { globaldata->Groups.clear();  if (abort == false) { delete unweighted; delete util; } }
                int execute();
                void help();    
        
@@ -45,15 +45,16 @@ class UnifracUnweightedCommand : public Command {
                vector< map<float, float> > rscoreFreq;  //map <unweighted score, number of random trees with that score.> -vector entry for each combination.
                vector< map<float, float> > rCumul;  //map <unweighted score, cumulative percentage of number of random trees with that score or higher.> -vector entry for each combination.
                
-               bool abort;
-               string groups, itersString;
-               vector<string> Groups; //holds groups to be used
+               bool abort, phylip, random;
+               string groups, itersString, outputDir;
+               vector<string> Groups, outputNames; //holds groups to be used
 
                ofstream outSum, out;
                ifstream inFile;
                
                void printUWSummaryFile(int);
                void printUnweightedFile();
+               void createPhylipFile(int);
                 
                
 };