X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=readcluster.cpp;h=0893a146a84c9e71eb95475eabe66c2b80314c93;hp=c8a8bc7b5074bf91ea46e2c30f2364a509d2c5ff;hb=725a3d4ff2442c79bfde0a75ed3e0904edcf03b7;hpb=cfe70bbc94980a0177af465d3464db754673bd56 diff --git a/readcluster.cpp b/readcluster.cpp index c8a8bc7..0893a14 100644 --- a/readcluster.cpp +++ b/readcluster.cpp @@ -11,12 +11,14 @@ /***********************************************************************/ -ReadCluster::ReadCluster(string distfile, float c, string o){ +ReadCluster::ReadCluster(string distfile, float c, string o, bool s){ globaldata = GlobalData::getInstance(); m = MothurOut::getInstance(); distFile = distfile; cutoff = c; outputDir = o; + sortWanted = s; + list = NULL; } /***********************************************************************/ @@ -29,7 +31,8 @@ int ReadCluster::read(NameAssignment* nameMap){ if (m->control_pressed) { return 0; } - OutPutFile = sortFile(distFile, outputDir); + if (sortWanted) { OutPutFile = sortFile(distFile, outputDir); } + else { OutPutFile = distFile; } //for use by clusters splitMatrix to convert a phylip matrix to column return 0;