X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classifyseqscommand.cpp;h=2dfe05a05f9e267390c7e7656dee12d0ee1ab169;hb=7b287636ea67fb2254b119c21b4057a177d3ce19;hp=0a1ef8823e35f687529c70de5ef29e7d33eb91fe;hpb=4b6e3f7b5543822a2cca4fb076ab6af2ce8ca62d;p=mothur.git diff --git a/classifyseqscommand.cpp b/classifyseqscommand.cpp index 0a1ef88..2dfe05a 100644 --- a/classifyseqscommand.cpp +++ b/classifyseqscommand.cpp @@ -30,8 +30,7 @@ vector ClassifySeqsCommand::getValidParameters(){ //********************************************************************************************************************** ClassifySeqsCommand::ClassifySeqsCommand(){ try { - abort = true; - //initialize outputTypes + abort = true; calledHelp = true; vector tempOutNames; outputTypes["taxonomy"] = tempOutNames; outputTypes["taxsummary"] = tempOutNames; @@ -68,10 +67,10 @@ vector ClassifySeqsCommand::getRequiredFiles(){ //********************************************************************************************************************** ClassifySeqsCommand::ClassifySeqsCommand(string option) { try { - abort = false; + abort = false; calledHelp = false; //allow user to run help - if(option == "help") { help(); abort = true; } + if(option == "help") { help(); abort = true; calledHelp = true; } else { @@ -421,7 +420,7 @@ void ClassifySeqsCommand::help(){ int ClassifySeqsCommand::execute(){ try { - if (abort == true) { return 0; } + if (abort == true) { if (calledHelp) { return 0; } return 2; } if(method == "bayesian"){ classify = new Bayesian(taxonomyFileName, templateFileName, search, kmerSize, cutoff, iters); } else if(method == "knn"){ classify = new Knn(taxonomyFileName, templateFileName, search, kmerSize, gapOpen, gapExtend, match, misMatch, numWanted); }