X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=seqerrorcommand.cpp;h=d06a5addf90f74334224a4220e64ea4f0320dedf;hb=fc3a1319b64fd3638df074e4669a1fb0235d1b8d;hp=2bb0e57566e59b39a04ce4b4968086894bf64355;hpb=9c37bed33eaa0bb2d3c499085c0e165c0f00886b;p=mothur.git diff --git a/seqerrorcommand.cpp b/seqerrorcommand.cpp index 2bb0e57..d06a5ad 100644 --- a/seqerrorcommand.cpp +++ b/seqerrorcommand.cpp @@ -22,6 +22,7 @@ vector SeqErrorCommand::setParameters(){ CommandParameter pname("name", "InputTypes", "", "", "none", "none", "none",false,false); parameters.push_back(pname); CommandParameter pignorechimeras("ignorechimeras", "Boolean", "", "T", "", "", "",false,false); parameters.push_back(pignorechimeras); CommandParameter pthreshold("threshold", "Number", "", "1.0", "", "", "",false,false); parameters.push_back(pthreshold); + CommandParameter pprocessors("processors", "Number", "", "1", "", "", "",false,false); parameters.push_back(pprocessors); CommandParameter pinputdir("inputdir", "String", "", "", "", "", "",false,false); parameters.push_back(pinputdir); CommandParameter poutputdir("outputdir", "String", "", "", "", "", "",false,false); parameters.push_back(poutputdir); @@ -200,6 +201,10 @@ SeqErrorCommand::SeqErrorCommand(string option) { temp = validParameter.validFile(parameters, "ignorechimeras", false); if (temp == "not found") { temp = "1"; } convert(temp, ignoreChimeras); + + temp = validParameter.validFile(parameters, "processors", false); if (temp == "not found"){ temp = m->getProcessors(); } + m->setProcessors(temp); + convert(temp, processors); substitutionMatrix.resize(6); for(int i=0;i<6;i++){ substitutionMatrix[i].resize(6,0); }