]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeracheckcommand.cpp
numSeqs passing fix
[mothur.git] / chimeracheckcommand.cpp
index 0ec5f4bcdba426acd22dd17f8e8e3b55f263c31a..de6f438d81f7fcd62e111d97a02e87d63aad1e66 100644 (file)
@@ -483,7 +483,7 @@ int ChimeraCheckCommand::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();
@@ -500,7 +500,7 @@ int ChimeraCheckCommand::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());