#include "command.hpp"
#include "unweighted.h"
#include "treemap.h"
+#include "sharedutilities.h"
+#include "fileoutput.h"
+
using namespace std;
public:
UnifracUnweightedCommand();
- ~UnifracUnweightedCommand() { delete unweighted; }
+ ~UnifracUnweightedCommand() { delete unweighted; delete util; }
int execute();
private:
GlobalData* globaldata;
+ SharedUtil* util;
+ FileOutput* output;
vector<Tree*> T; //user trees
TreeMap* tmap;
Unweighted* unweighted;
- string sumFile, unweightedFile, unweightedFileout;
+ string sumFile, allGroups;
vector<string> groupComb; // AB. AC, BC...
int iters, numGroups, numComp, counter;
EstOutput userData; //unweighted score info for user tree
ofstream outSum, out;
ifstream inFile;
- void printUWSummaryFile();
+ void printUWSummaryFile(int);
void printUnweightedFile();
- void setGroups();
- void initFile(string);
- void output(vector<double>);
- void resetFile();
-
+
};