X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treegroupscommand.h;h=c61c9fbfa63bf84a2482955ca20aa914f89b9400;hb=74d3aaf0f85080ea3cfb1f1871e706bab9f48392;hp=989c699c877ead1e27ea20a1c59a53a901bfa71a;hpb=a8f5a612bba54ceb74e17efc027d3a7f5aa93c9a;p=mothur.git diff --git a/treegroupscommand.h b/treegroupscommand.h index 989c699..c61c9fb 100644 --- a/treegroupscommand.h +++ b/treegroupscommand.h @@ -34,15 +34,21 @@ typedef list::iterator MatData; class TreeGroupCommand : public Command { public: - TreeGroupCommand(); + TreeGroupCommand(string); + TreeGroupCommand(); ~TreeGroupCommand(); + vector getRequiredParameters(); + vector getValidParameters(); + vector getRequiredFiles(); + map > getOutputFiles() { return outputTypes; } int execute(); + void help(); private: - void createTree(); + int createTree(); void printSims(ostream&); - void makeSimsShared(); - void makeSimsDist(); + int makeSimsShared(); + int makeSimsDist(); GlobalData* globaldata; ReadOTUFile* read; @@ -58,13 +64,22 @@ private: InputData* input; ValidCalculators* validCalculator; vector lookup; - vector lastLookup; + string lastLabel; string format, outputFile, groupNames, filename; int numGroups; ofstream out; float precision, cutoff; + map > outputTypes; + + bool abort, allLines; + set labels; //holds labels to be used + string phylipfile, columnfile, namefile, calc, groups, label, outputDir; + vector Estimators, Groups, outputNames; //holds estimators to be used + //if the users enters label "0.06" and there is no "0.06" in their file use the next lowest label. - void process(vector); + int process(vector); + + };