]> git.donarmstrong.com Git - mothur.git/blobdiff - removeseqscommand.cpp
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / removeseqscommand.cpp
index 5c0216366a98c83bc11c776ad31b0da1086120cd..c7af108325390221bd0313e4ad2a733dfd2e90d3 100644 (file)
@@ -469,7 +469,7 @@ int RemoveSeqsCommand::readQual(){
                                saveName = name.substr(1);
                                while (!in.eof())       {       
                                        char c = in.get(); 
-                                       if (c == 10 || c == 13){        break;  }
+                                       if (c == 10 || c == 13 || c == -1){     break;  }
                                        else { name += c; }     
                                } 
                                m->gobble(in);
@@ -813,7 +813,7 @@ int RemoveSeqsCommand::readTax(){
                while(!in.eof()){
                        if (m->control_pressed) { in.close();  out.close();  m->mothurRemove(outputFileName);  return 0; }
                        
-                       in >> name;                             //read from first column
+                       in >> name;     m->gobble(in);                  //read from first column
                        in >> tax;                      //read from second column
                        
             if (!dups) {//adjust name if needed