X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treegroupscommand.h;h=c61c9fbfa63bf84a2482955ca20aa914f89b9400;hb=c921bbf0623d5200f69b5d83b3c70ea533c69412;hp=08389f8b798077e72b06e6a847a2c3f4d094214e;hpb=016a30dacbe75869aef5fdb58d2d1bf9eb8f9b33;p=mothur.git diff --git a/treegroupscommand.h b/treegroupscommand.h index 08389f8..c61c9fb 100644 --- a/treegroupscommand.h +++ b/treegroupscommand.h @@ -35,15 +35,20 @@ class TreeGroupCommand : public Command { public: 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; @@ -64,15 +69,15 @@ private: int numGroups; ofstream out; float precision, cutoff; + map > outputTypes; bool abort, allLines; - set lines; //hold lines to be used set labels; //holds labels to be used - string phylipfile, columnfile, namefile, calc, groups, line, label; - vector Estimators, Groups; //holds estimators 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);