X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracunweightedcommand.h;h=b572e4679845e63674bcecfb23710876504af90b;hb=626e77d477ecca8b03c942bdc66f8bb8c413b356;hp=e026bc222a3005332e2e509da060d9de6fc11539;hpb=38922fcff5a03abfedffda3e06a45fad2270a044;p=mothur.git diff --git a/unifracunweightedcommand.h b/unifracunweightedcommand.h index e026bc2..b572e46 100644 --- a/unifracunweightedcommand.h +++ b/unifracunweightedcommand.h @@ -28,29 +28,31 @@ class UnifracUnweightedCommand : public Command { private: GlobalData* globaldata; vector T; //user trees - Tree* randT; //random tree TreeMap* tmap; Unweighted* unweighted; - string sumFile, unweightedFile; + string sumFile, unweightedFile, unweightedFileout; vector groupComb; // AB. AC, BC... - int iters, numGroups, numComp; + int iters, numGroups, numComp, counter; EstOutput userData; //unweighted score info for user tree EstOutput randomData; //unweighted score info for random trees vector< vector > utreeScores; //scores for users trees for each comb. vector< vector > UWScoreSig; //tree score signifigance when compared to random trees - percentage of random trees with that score or higher. vector< map > validScores; //map contains scores from both user and random vector< map > rscoreFreq; //map -vector entry for each combination. - vector< map > uscoreFreq; //map -vector entry for each combination. vector< map > rCumul; //map -vector entry for each combination. - vector< map > uCumul; //map -vector entry for each combination. map::iterator it; map::iterator it2; map::iterator it; ofstream outSum, out; + ifstream inFile; void printUWSummaryFile(); void printUnweightedFile(); - void setGroups(); + void setGroups(); + void initFile(string); + void output(vector); + void resetFile(); + };