]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraccodecommand.cpp
numSeqs passing fix
[mothur.git] / chimeraccodecommand.cpp
index 8ea91e53abe27cb75641bfc54c7ed293d2b17a65..7a9431ef914b8f1741bbfcdd7fb25b52c554a910 100644 (file)
@@ -522,7 +522,7 @@ int ChimeraCcodeCommand::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();
@@ -539,7 +539,7 @@ int ChimeraCcodeCommand::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());