X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readdistcommand.cpp;h=f6b41951962b7ce6b85ae50a9958bc0408c13835;hb=9354b70bb84f6dd52ff4a1955754bcbf7edeedbf;hp=c4756c3260db6a660526ef09b66f668b25de12ef;hpb=72ebb6fa35b45b149812d47c2b1cb8acaca64659;p=mothur.git diff --git a/readdistcommand.cpp b/readdistcommand.cpp index c4756c3..f6b4195 100644 --- a/readdistcommand.cpp +++ b/readdistcommand.cpp @@ -72,7 +72,7 @@ ReadDistCommand::ReadDistCommand(string option){ if (columnfile != "") { if (namefile == "") { cout << "You need to provide a namefile if you are going to use the column format." << endl; abort = true; } } - + //check for optional parameter and set defaults // ...at some point should added some additional type checking... //get user cutoff and precision or use defaults @@ -93,6 +93,7 @@ ReadDistCommand::ReadDistCommand(string option){ else if (format == "matrix") { groupMap = new GroupMap(groupfile); groupMap->readMap(); + if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap; } globaldata->gGroupmap = groupMap; } @@ -155,7 +156,7 @@ int ReadDistCommand::execute(){ if (abort == true) { return 0; } - //time_t start = time(NULL); + time_t start = time(NULL); size_t numDists = 0; if (format == "matrix") { @@ -203,7 +204,7 @@ int ReadDistCommand::execute(){ // } //mothurOut(dist_string); mothurOutEndLine(); mothurOut(count_string); mothurOutEndLine(); } - //mothurOut("It took " + toString(time(NULL) - start) + " secs to read " + toString(numDists) + " distances (cutoff: " + toString(cutoff) + ")"); mothurOutEndLine(); + mothurOut("It took " + toString(time(NULL) - start) + " secs to read "); mothurOutEndLine(); return 0; }