]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.h
working on unifrac parallelization
[mothur.git] / unifracweightedcommand.h
index c36152d107d894c4e26c857ce3508e4780ae06ef..b6aea7dad9215a131691019445c2f911c77084a4 100644 (file)
@@ -23,12 +23,19 @@ class GlobalData;
 class UnifracWeightedCommand : public Command {
        
        public:
-               UnifracWeightedCommand(string); 
+               UnifracWeightedCommand(string);
                ~UnifracWeightedCommand() { if (abort == false) {  delete weighted; delete util; } }
                int execute();  
                void help();
        
        private:
+               struct linePair {
+                       int start;
+                       int num;
+                       linePair(int i, int j) : start(i), num(j) {}
+               };
+               vector<linePair*> lines;
+               
                GlobalData* globaldata;
                SharedUtil* util;
                FileOutput* output;
@@ -51,7 +58,8 @@ class UnifracWeightedCommand : public Command {
                
                bool abort, phylip, random;
                string groups, itersString;
-               vector<string> Groups; //holds groups to be used
+               vector<string> Groups, outputNames; //holds groups to be used
+               int processors;
 
                
                ofstream outSum;
@@ -62,6 +70,8 @@ class UnifracWeightedCommand : public Command {
                //void removeValidScoresDuplicates();
                int findIndex(float, int);
                void calculateFreqsCumuls();
+               int createProcesses(Tree*, Tree*, vector< vector<string> >, vector<double>&, vector< vector<double> >&);
+               int driver(Tree*, Tree*, vector< vector<string> >, int, int, vector<double>&, vector< vector<double> >&);
                
 };