X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unweighted.h;h=c6c13bb3a7abd14c824dfe6b495871790809833d;hb=5a4ac4f954c4b4445bcee272f1f8220ddcc9c1e4;hp=87514699b35b74e3b580f4d26dfbc90ca948f6c8;hpb=fc7cf3aac8fd6106fd725b43baa8ab5ca6f836f8;p=mothur.git diff --git a/unweighted.h b/unweighted.h index 8751469..c6c13bb 100644 --- a/unweighted.h +++ b/unweighted.h @@ -19,21 +19,32 @@ class Unweighted : public TreeCalculator { public: - Unweighted(TreeMap* t) : tmap(t) {}; + Unweighted(bool r) : includeRoot(r) {}; ~Unweighted() {}; - EstOutput getValues(Tree*); - EstOutput getValues(Tree*, string, string); + EstOutput getValues(Tree*, int, string); + EstOutput getValues(Tree*, string, string, int, string); private: - GlobalData* globaldata; - Tree* copyTree; + 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, TreeMap*); + EstOutput createProcesses(Tree*, vector< vector >, TreeMap*); + EstOutput driver(Tree*, vector< vector >, int, int, bool, TreeMap*); + EstOutput createProcesses(Tree*, vector< vector >, bool, TreeMap*); + int getRoot(Tree*, int, vector); }; /***********************************************************************/ - - -#endif \ No newline at end of file +#endif