X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summaryqualcommand.cpp;h=6396f8ff6f5944fc167d49895a44c5248b5f0523;hb=a89c6295ae9a35fcaaab7fa50dcb68360dd543b0;hp=0f6f719ef568446af70438eb08579a81c7c6f3f6;hpb=c85db0a4be3a1f8037a71a23ca73f9762184e28a;p=mothur.git diff --git a/summaryqualcommand.cpp b/summaryqualcommand.cpp index 0f6f719..6396f8f 100644 --- a/summaryqualcommand.cpp +++ b/summaryqualcommand.cpp @@ -196,7 +196,7 @@ int SummaryQualCommand::execute(){ if (namefile != "") { nameMap = m->readNames(namefile); } else if (countfile != "") { CountTable ct; - ct.readTable(countfile); + ct.readTable(countfile, false, false); nameMap = ct.getNameMap(); } @@ -337,7 +337,7 @@ int SummaryQualCommand::createProcessesCreateSummary(vector& position, vect //loop through and create all the processes you want while (process != processors) { - int pid = fork(); + pid_t pid = fork(); if (pid > 0) { processIDS.push_back(pid); //create map from line number to pid so you can append files in correct order later @@ -347,7 +347,7 @@ int SummaryQualCommand::createProcessesCreateSummary(vector& position, vect //pass numSeqs to parent ofstream out; - string tempFile = qualfile + toString(getpid()) + ".num.temp"; + string tempFile = qualfile + m->mothurGetpid(process) + ".num.temp"; m->openOutputFile(tempFile, out); out << numSeqs << endl;