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; }
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{
//fills globaldatas tree names
globaldata->Treenames = globaldata->Groups;
-
+
+ globaldata->runParse = false;
+
makeSimsDist();
//create a new filename
}
}
}
-
+
//creates tree from similarity matrix and write out file
createTree();
}