X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=shhhercommand.cpp;h=b2b4de0559feff2074fb6269b6e18a8dafb9d6e4;hp=39a27d593abd1a3da6d9f93ab89e79b893c72089;hb=c8419b3c5f3c9381f4360f1fbdd95e6749827ff7;hpb=41f3f520282eb972d450ac6d23a0e80c546aa76e diff --git a/shhhercommand.cpp b/shhhercommand.cpp index 39a27d5..b2b4de0 100644 --- a/shhhercommand.cpp +++ b/shhhercommand.cpp @@ -32,7 +32,7 @@ vector ShhherCommand::getValidParameters(){ try { string Array[] = { - "file", "flow", "lookup", "cutoff", "sigma", "outputdir","inputdir", "processors" + "file", "flow", "lookup", "cutoff", "sigma", "outputdir","inputdir", "processors", "maxiter", "mindelta" }; vector myArray (Array, Array+(sizeof(Array)/sizeof(string))); @@ -111,7 +111,7 @@ ShhherCommand::ShhherCommand(string option) { //valid paramters for this command string AlignArray[] = { - "file", "flow", "lookup", "cutoff", "sigma", "outputdir","inputdir", "processors" + "file", "flow", "lookup", "cutoff", "sigma", "outputdir","inputdir", "processors", "maxiter", "mindelta" }; vector myArray (AlignArray, AlignArray+(sizeof(AlignArray)/sizeof(string))); @@ -294,8 +294,8 @@ int ShhherCommand::execute(){ m->mothurOut("\n>>>>>\tProcessing " + flowFileName + " (file " + toString(i+1) + " of " + toString(numFiles) + ")\t<<<<<\n"); m->mothurOut("Reading flowgrams...\n"); - getFlowData(); + m->mothurOut("Identifying unique flowgrams...\n"); getUniques(); @@ -704,6 +704,10 @@ int ShhherCommand::execute(){ double begClock = clock(); unsigned long int begTime = time(NULL); + + cout << numOTUs << endl; + + m->mothurOut("\nDenoising flowgrams...\n"); m->mothurOut("iter\tmaxDelta\tnLL\t\tcycletime\n"); @@ -1210,7 +1214,7 @@ void ShhherCommand::getOTUData(string listFileName){ otuData.assign(numSeqs, 0); cumNumSeqs.assign(numOTUs, 0); nSeqsPerOTU.assign(numOTUs, 0); - aaP.resize(numOTUs); + aaP.clear();aaP.resize(numOTUs); seqNumber.clear(); aaI.clear(); @@ -1266,6 +1270,8 @@ void ShhherCommand::getOTUData(string listFileName){ for(int j=nSeqsPerOTU[i];jerrorOut(e, "ShhherCommand", "getOTUData"); @@ -1295,6 +1308,8 @@ void ShhherCommand::initPyroCluster(){ nSeqsBreaks.assign(processors+1, 0); nOTUsBreaks.assign(processors+1, 0); + cout << numSeqs << '\t' << numOTUs << '\t' << processors << endl; + nSeqsBreaks[0] = 0; for(int i=0;i 0 && count > MIN_COUNT){ vector adF(nSeqsPerOTU[i]); vector anL(nSeqsPerOTU[i]);