]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraslayercommand.cpp
numSeqs passing fix
[mothur.git] / chimeraslayercommand.cpp
index 1de7021098d834dc165b42bcc3da82480c6868dd..35f3b988f86ec2e868d8eb5a825efc853e1662e7 100644 (file)
@@ -538,7 +538,7 @@ int ChimeraSlayerCommand::createProcesses(string outputFileName, string filename
                                
                                //pass numSeqs to parent
                                ofstream out;
-                               string tempFile = toString(getpid()) + ".temp";
+                               string tempFile = outputFileName + toString(getpid()) + ".num.temp";
                                openOutputFile(tempFile, out);
                                out << num << endl;
                                out.close();
@@ -555,7 +555,7 @@ int ChimeraSlayerCommand::createProcesses(string outputFileName, string filename
                
                for (int i = 0; i < processIDS.size(); i++) {
                        ifstream in;
-                       string tempFile =  toString(processIDS[i]) + ".temp";
+                       string tempFile =  outputFileName + toString(processIDS[i]) + ".num.temp";
                        openInputFile(tempFile, in);
                        if (!in.eof()) { int tempNum = 0; in >> tempNum; num += tempNum; }
                        in.close(); remove(tempFile.c_str());