X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treegroupscommand.cpp;h=0f106c493d1d55f7e742ed1195e1557f435d6e49;hb=786d5631d9cd5baa6ed6ef16f8b4b384cbc7470f;hp=484b5536ec668fbf60b94cba6ae5244570d2f111;hpb=753dc84cf289b1d5dc0ca5b0c043640927aa951a;p=mothur.git diff --git a/treegroupscommand.cpp b/treegroupscommand.cpp index 484b553..0f106c4 100644 --- a/treegroupscommand.cpp +++ b/treegroupscommand.cpp @@ -66,7 +66,7 @@ TreeGroupCommand::TreeGroupCommand(string option){ else if (namefile == "not found") { namefile = ""; } else { globaldata->setNameFile(namefile); } -// format = globaldata->getFormat(); + format = globaldata->getFormat(); //error checking on files if ((globaldata->getSharedFile() == "") && ((phylipfile == "") && (columnfile == ""))) { cout << "You must run the read.otu command or provide a distance file before running the tree.shared command." << endl; abort = true; } @@ -234,6 +234,8 @@ int TreeGroupCommand::execute(){ if (lookup.size() < 2) { cout << "You have not provided enough valid groups. I cannot run the command." << endl; return 0; } + globaldata->runParse = false; + //create tree file makeSimsShared(); }else{ @@ -269,7 +271,9 @@ int TreeGroupCommand::execute(){ //fills globaldatas tree names globaldata->Treenames = globaldata->Groups; - + + globaldata->runParse = false; + makeSimsDist(); //create a new filename @@ -562,7 +566,7 @@ void TreeGroupCommand::process(vector thisLookup) { } } } - + //creates tree from similarity matrix and write out file createTree(); }