X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unweighted.h;fp=unweighted.h;h=c6c13bb3a7abd14c824dfe6b495871790809833d;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/unweighted.h b/unweighted.h new file mode 100644 index 0000000..c6c13bb --- /dev/null +++ b/unweighted.h @@ -0,0 +1,50 @@ +#ifndef UNWEIGHTED_H +#define UNWEIGHTED_H + + +/* + * unweighted.h + * Mothur + * + * Created by Sarah Westcott on 2/9/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +#include "treecalculator.h" +#include "treemap.h" + +/***********************************************************************/ + +class Unweighted : public TreeCalculator { + + public: + Unweighted(bool r) : includeRoot(r) {}; + ~Unweighted() {}; + EstOutput getValues(Tree*, int, string); + EstOutput getValues(Tree*, string, string, int, string); + + private: + struct linePair { + int start; + int num; + linePair(int i, int j) : start(i), num(j) {} + }; + vector lines; + + EstOutput data; + 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