1 #ifndef UNIFRACUNWEIGHTEDCOMMAND_H
2 #define UNIFRACUNWEIGHTEDCOMMAND_H
5 * unifracunweightedcommand.h
8 * Created by Sarah Westcott on 2/9/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
13 #include "command.hpp"
14 #include "unweighted.h"
21 class UnifracUnweightedCommand : public Command {
24 UnifracUnweightedCommand();
25 ~UnifracUnweightedCommand() { delete unweighted; }
29 GlobalData* globaldata;
30 vector<Tree*> T; //user trees
31 Tree* randT; //random tree
33 Unweighted* unweighted;
34 string sumFile, unweightedFile;
35 vector<string> groupComb; // AB. AC, BC...
36 int iters, numGroups, numComp;
37 EstOutput userData; //unweighted score info for user tree
38 EstOutput randomData; //unweighted score info for random trees
39 vector< vector<float> > utreeScores; //scores for users trees for each comb.
40 vector< vector<float> > UWScoreSig; //tree score signifigance when compared to random trees - percentage of random trees with that score or higher.
41 vector< map<float, float> > validScores; //map contains scores from both user and random
42 vector< map<float, float> > rscoreFreq; //map <unweighted score, number of random trees with that score.> -vector entry for each combination.
43 vector< map<float, float> > uscoreFreq; //map <unweighted score, number of user trees with that score.> -vector entry for each combination.
44 vector< map<float, float> > rCumul; //map <unweighted score, cumulative percentage of number of random trees with that score or higher.> -vector entry for each combination.
45 vector< map<float, float> > uCumul; //map <unweighted score, cumulative percentage of number of user trees with that score or higher.> -vector entry for each combination. map<float, float>::iterator it;
46 map<float, float>::iterator it2;
47 map<float, float>::iterator it;
51 void printUWSummaryFile();
52 void printUnweightedFile();