X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treegroupscommand.cpp;h=626659501a531db80f5193bef33e88793414a874;hb=d04f948b1a2a1a2984fc4a45d04403b8c121c5bc;hp=64bcd36764e044a911295870025095016be7fcc3;hpb=5b3bedc6fbfed63854cc6a7d47454580b2734c08;p=mothur.git diff --git a/treegroupscommand.cpp b/treegroupscommand.cpp index 64bcd36..6266595 100644 --- a/treegroupscommand.cpp +++ b/treegroupscommand.cpp @@ -669,6 +669,21 @@ int TreeGroupCommand::process(vector thisLookup) { } } + //createdistance file from simMatrix + /*string o = outputDir + m->getRootName(m->getSimpleName(globaldata->inputFileName)) + treeCalculators[i]->getName() + "." + thisLookup[0]->getLabel() + ".dist"; + ofstream outDist; + m->openOutputFile(o, outDist); + outDist << simMatrix.size() << endl; + for (int k = 0; k < simMatrix.size(); k++) { + outDist << thisLookup[k]->getGroup() << '\t'; + for (int l = 0; l < k; l++) { + outDist << (1.0-simMatrix[k][l]) << '\t'; + } + outDist << endl; + } + outDist.close();*/ + + if (m->control_pressed) { return 1; } //creates tree from similarity matrix and write out file createTree();