#include "weighted.h"
#include "treemap.h"
#include "progress.hpp"
+#include "sharedutilities.h"
+#include "fileoutput.h"
using namespace std;
public:
UnifracWeightedCommand();
- ~UnifracWeightedCommand() { delete weighted; }
+ ~UnifracWeightedCommand() { delete weighted; delete util; }
int execute();
private:
GlobalData* globaldata;
+ SharedUtil* util;
+ FileOutput* output;
vector<Tree*> T; //user trees
vector<double> utreeScores; //user tree unweighted scores
vector<double> WScoreSig; //tree weighted score signifigance when compared to random trees - percentage of random trees with that score or lower.
Tree* randT; //random tree
TreeMap* tmap;
Weighted* weighted;
- string weightedFile, weightedFileout, sumFile;
+ string sumFile;
int iters, numGroups, numComp, counter;
EstOutput userData; //weighted score info for user tree
EstOutput randomData; //weighted score info for random trees
void printWeightedFile();
//void removeValidScoresDuplicates();
int findIndex(float, int);
- void setGroups();
void calculateFreqsCumuls();
- void initFile(string);
- void output(vector<double>);
- void resetFile();
-
+
};