Permalink
Browse files

Make default value fo delta 0.0000

  • Loading branch information...
1 parent ef324c8 commit aae4a30674bc599d177c4f6c2a340b35ffb29fbe @pschloss pschloss committed Aug 12, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 source/commands/clustercommand.cpp
@@ -27,7 +27,7 @@ vector<string> ClusterCommand::setParameters(){
CommandParameter pprecision("precision", "Number", "", "100", "", "", "","",false,false); parameters.push_back(pprecision);
CommandParameter pmethod("method", "Multiple", "furthest-nearest-average-weighted-agc-dgc-opti", "average", "", "", "","",false,false,true); parameters.push_back(pmethod);
CommandParameter pmetric("metric", "Multiple", "mcc-sens-spec-tptn-fpfn-tp-tn-fp-fn-f1score-accuracy-ppv-npv-fdr", "mcc", "", "", "","",false,false,true); parameters.push_back(pmetric);
- CommandParameter pmetriccutoff("delta", "Number", "", "0.001", "", "", "","",false,false,true); parameters.push_back(pmetriccutoff);
+ CommandParameter pmetriccutoff("delta", "Number", "", "0.000", "", "", "","",false,false,true); parameters.push_back(pmetriccutoff);
CommandParameter piters("iters", "Number", "", "10000", "", "", "","",false,false,true); parameters.push_back(piters);
CommandParameter pshowabund("showabund", "Boolean", "", "T", "", "", "","",false,false); parameters.push_back(pshowabund);
CommandParameter ptiming("timing", "Boolean", "", "F", "", "", "","",false,false); parameters.push_back(ptiming);
@@ -59,7 +59,7 @@ string ClusterCommand::getHelpString(){
helpString += "The count parameter allows you to enter your count file. \n A count or name file is required if your distance file is in column format.\n";
helpString += "The iters parameter allow you to set the maxiters for the opticluster method. \n";
helpString += "The metric parameter allows to select the metric in the opticluster method. Options are Matthews correlation coefficient (mcc), sensitivity (sens), specificity (spec), true positives + true negatives (tptn), false positives + false negatives (fpfn), true positives (tp), true negative (tn), false positive (fp), false negative (fn), f1score (f1score), accuracy (accuracy), positive predictive value (ppv), negative predictive value (npv), false discovery rate (fdr). Default=mcc.\n";
- helpString += "The delta parameter allows to set the stable value for the metric in the opticluster method. \n";
+ helpString += "The delta parameter allows to set the stable value for the metric in the opticluster method (delta=0.0000). \n";
helpString += "The method parameter allows you to enter your clustering mothod. Options are furthest, nearest, average, weighted, agc, dgc and opti. Default=average. The agc and dgc methods require a fasta file.";
helpString += "The processors parameter allows you to specify the number of processors to use. The default is 1.\n";
helpString += "The cluster command should be in the following format: \n";
@@ -266,7 +266,7 @@ ClusterCommand::ClusterCommand(string option) {
temp = validParameter.validFile(parameters, "sim", false); if (temp == "not found") { temp = "F"; }
sim = m->isTrue(temp);
- temp = validParameter.validFile(parameters, "delta", false); if (temp == "not found") { temp = "0.001"; }
+ temp = validParameter.validFile(parameters, "delta", false); if (temp == "not found") { temp = "0.0000"; }
m->mothurConvert(temp, stableMetric);
metric = validParameter.validFile(parameters, "metric", false); if (metric == "not found") { metric = "mcc"; }

0 comments on commit aae4a30

Please sign in to comment.