]> git.donarmstrong.com Git - mothur.git/blobdiff - unweighted.h
working on parallelizing unifrac.unweighted.
[mothur.git] / unweighted.h
index 007fef7911918ba7c6505f8fc1213cdd8e9be43a..f27df8c9495d36ea9b98f74b521316af95271a0f 100644 (file)
@@ -21,14 +21,26 @@ class Unweighted : public TreeCalculator  {
        public:
                Unweighted(TreeMap* t) : tmap(t) {};
                ~Unweighted() {};
-               EstOutput getValues(Tree*);
+               EstOutput getValues(Tree*, int, string);
                EstOutput getValues(Tree*, string, string);
                
        private:
+               struct linePair {
+                       int start;
+                       int num;
+                       linePair(int i, int j) : start(i), num(j) {}
+               };
+               vector<linePair*> lines;
+               
                GlobalData* globaldata;
                Tree* copyTree;
                EstOutput data;
                TreeMap* tmap;
+               int processors;
+               string outputDir;
+               
+               EstOutput driver(Tree*, vector< vector<string> >, int, int); 
+               EstOutput createProcesses(Tree*, vector< vector<string> >);
 
 };