]> git.donarmstrong.com Git - mothur.git/blobdiff - classifyseqscommand.cpp
numSeqs passing fix
[mothur.git] / classifyseqscommand.cpp
index 4c1a0251013afcd77a7137d09be0db5b1c60ffe3..c8c0d72ca2e74a0b08c36a93f6f3a382cc411a33 100644 (file)
@@ -668,7 +668,7 @@ int ClassifySeqsCommand::createProcesses(string taxFileName, string tempTaxFile,
                                
                                //pass numSeqs to parent
                                ofstream out;
-                               string tempFile = toString(getpid()) + ".temp";
+                               string tempFile = filename + toString(getpid()) + ".num.temp";
                                openOutputFile(tempFile, out);
                                out << num << endl;
                                out.close();
@@ -685,7 +685,7 @@ int ClassifySeqsCommand::createProcesses(string taxFileName, string tempTaxFile,
                
                for (int i = 0; i < processIDS.size(); i++) {
                        ifstream in;
-                       string tempFile =  toString(processIDS[i]) + ".temp";
+                       string tempFile =  filename + toString(processIDS[i]) + ".num.temp";
                        openInputFile(tempFile, in);
                        if (!in.eof()) { int tempNum = 0; in >> tempNum; num += tempNum; }
                        in.close(); remove(tempFile.c_str());