X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=splitmatrix.cpp;h=a5ae3cbda79fd52a9358464eab1941c96a69bd63;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=28bc5d4cec4fc4ec409bca26359ed103951c8701;hpb=529ec122f7cac4af987e121d150b878d7c7a0d5d;p=mothur.git diff --git a/splitmatrix.cpp b/splitmatrix.cpp index 28bc5d4..a5ae3cb 100644 --- a/splitmatrix.cpp +++ b/splitmatrix.cpp @@ -191,8 +191,12 @@ int SplitMatrix::createDistanceFilesFromTax(map& seqGroup, int numG else { options = "fasta=" + (fastafile + "." + toString(i) + ".temp") + ", processors=" + toString(processors) + ", cutoff=" + toString(distCutoff); } if (outputDir != "") { options += ", outputdir=" + outputDir; } + m->mothurOut("/******************************************/"); m->mothurOutEndLine(); + Command* command = new DistanceCommand(options); + m->mothurOut("/******************************************/"); m->mothurOutEndLine(); + command->execute(); delete command; @@ -637,7 +641,7 @@ int SplitMatrix::splitNames(map& seqGroup, int numGroups, vectoropenOutputFile(newtempNameFile, out); - out << headers << endl; + out << "Representative_Sequence\ttotal" << endl; out.close(); m->appendFiles(tempNameFile, newtempNameFile); m->mothurRemove(tempNameFile); @@ -671,7 +675,7 @@ int SplitMatrix::splitNames(map& seqGroup, int numGroups, vectoropenOutputFile(newtempNameFile, out); - out << headers << endl; + out << "Representative_Sequence\ttotal" << endl; out.close(); m->appendFiles(singleton, newtempNameFile); m->mothurRemove(singleton);