X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unweighted.h;h=e751d2e79d19f17a2dd3a9af34ea11be95586ef4;hb=8c8acb6218f58f662466e4111ab8aa4da0caf93c;hp=b24ad22a318624d8953b3f2e742fdc3e7c80d2ea;hpb=5a3592c6478d5d786ec20e4bee71854ad92fdb8c;p=mothur.git diff --git a/unweighted.h b/unweighted.h index b24ad22..e751d2e 100644 --- a/unweighted.h +++ b/unweighted.h @@ -19,20 +19,33 @@ class Unweighted : public TreeCalculator { public: - Unweighted(TreeMap* t) : tmap(t) {}; + Unweighted(TreeMap* t, bool r) : tmap(t), includeRoot(r) {}; ~Unweighted() {}; - EstOutput getValues(Tree*); - EstOutput getValues(Tree*, string, string) { return data; }; + EstOutput getValues(Tree*, int, string); + EstOutput getValues(Tree*, string, string, int, string); private: - GlobalData* globaldata; + struct linePair { + int start; + int num; + linePair(int i, int j) : start(i), num(j) {} + }; + vector lines; + EstOutput data; TreeMap* tmap; - + int processors; + string outputDir; + map< vector, set > rootForGrouping; //maps a grouping combo to the roots for that combo + bool includeRoot; + + EstOutput driver(Tree*, vector< vector >, int, int); + EstOutput createProcesses(Tree*, vector< vector >); + EstOutput driver(Tree*, vector< vector >, int, int, bool); + EstOutput createProcesses(Tree*, vector< vector >, bool); + int getRoot(Tree*, int, vector); }; /***********************************************************************/ - - -#endif \ No newline at end of file +#endif