]> git.donarmstrong.com Git - mothur.git/blobdiff - shhhercommand.cpp
added mothurgetpid function. fixed bug with align.seqs related to g++ 4.8 change...
[mothur.git] / shhhercommand.cpp
index c405e38060cec0db4b610c2e6c9e24a8810d7aed..21dd089c40824d0df1d1e6cdd4ec27eed977cd36 100644 (file)
@@ -1414,7 +1414,8 @@ string ShhherCommand::cluster(string distFileName, string namesFileName){
         
         RAbundVector* rabund = new RAbundVector(list->getRAbundVector());
         
-        Cluster* cluster = new CompleteLinkage(rabund, list, matrix, cutoff, "furthest"); 
+        float adjust = -1.0;
+        Cluster* cluster = new CompleteLinkage(rabund, list, matrix, cutoff, "furthest", adjust);
         string tag = cluster->getTag();
         
         double clusterCutoff = cutoff;
@@ -2075,11 +2076,11 @@ int ShhherCommand::createProcesses(vector<string> filenames){
                                processIDS.push_back(pid);  //create map from line number to pid so you can append files in correct order later
                                process++;
                        }else if (pid == 0){
-                               num = driver(dividedFiles[process], compositeFASTAFileName + toString(getpid()) + ".temp", compositeNamesFileName  + toString(getpid()) + ".temp");
+                               num = driver(dividedFiles[process], compositeFASTAFileName + m->mothurGetpid(process) + ".temp", compositeNamesFileName  + m->mothurGetpid(process) + ".temp");
                 
                 //pass numSeqs to parent
                                ofstream out;
-                               string tempFile = compositeFASTAFileName + toString(getpid()) + ".num.temp";
+                               string tempFile = compositeFASTAFileName + m->mothurGetpid(process) + ".num.temp";
                                m->openOutputFile(tempFile, out);
                                out << num << endl;
                                out.close();