]> git.donarmstrong.com Git - mothur.git/blobdiff - classify.cpp
fixed bug with creation of .tree.sum file
[mothur.git] / classify.cpp
index 22728eb7a3ee52a57926e5457a33d73c9a1d7d07..6bf2cb57ee2833d91ba0520f8e1e67a5c05ec348 100644 (file)
@@ -28,7 +28,7 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me
                m->mothurOut("Generating search database...    "); cout.flush();
 #ifdef USE_MPI 
                        int pid, processors;
-                       vector<long> positions;
+                       vector<unsigned long int> positions;
                        int tag = 2001;
                
                        MPI_Status status; 
@@ -138,7 +138,7 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me
                }else if ((method == "kmer") && (!needToGenerate)) {    
                        ifstream kmerFileTest(kmerDBName.c_str());
                        database->readKmerDB(kmerFileTest);     
-                       
+               
                        ifstream fastaFile;
                        openInputFile(tempFile, fastaFile);
                        
@@ -150,7 +150,8 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me
                        }
                        fastaFile.close();
                }
-#endif         
+#endif 
+       
                database->setNumSeqs(names.size());
                
                //sanity check
@@ -182,7 +183,7 @@ int Classify::readTaxonomy(string file) {
 
 #ifdef USE_MPI 
                int pid, num, processors;
-               vector<long> positions;
+               vector<unsigned long int> positions;
                int tag = 2001;
                
                MPI_Status status; 
@@ -253,7 +254,7 @@ int Classify::readTaxonomy(string file) {
                phyloTree->assignHeirarchyIDs(0);
                
                phyloTree->setUp(file);
-               
+       
                m->mothurOut("DONE.");
                m->mothurOutEndLine();  cout.flush();