]> git.donarmstrong.com Git - mothur.git/blobdiff - removeseqscommand.cpp
created blank accnos in chimera commands if no seqs are deemed chimeric. modified...
[mothur.git] / removeseqscommand.cpp
index 5816cfd0ab07d7718c73e66a7fc2c9e0c1c61187..afd9dd4acf22e8fc417fd6aeacb507a120987db8 100644 (file)
@@ -236,10 +236,8 @@ int RemoveSeqsCommand::readFasta(){
                in.close();     
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else { outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) {  m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;
                
@@ -307,11 +305,9 @@ int RemoveSeqsCommand::readList(){
                in.close();     
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else { outputNames.push_back(outputFileName); }
-               
+               if (wroteSomething == false) {  m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
+                               
                return 0;
 
        }
@@ -395,11 +391,9 @@ int RemoveSeqsCommand::readName(){
                in.close();
                out.close();
 
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else { outputNames.push_back(outputFileName); }
-               
+               if (wroteSomething == false) {  m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
+                               
                return 0;
        }
        catch(exception& e) {
@@ -439,10 +433,8 @@ int RemoveSeqsCommand::readGroup(){
                in.close();
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else { outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) {  m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;
        }
@@ -482,10 +474,8 @@ int RemoveSeqsCommand::readTax(){
                in.close();
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else { outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) {  m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;
        }
@@ -548,10 +538,8 @@ int RemoveSeqsCommand::readAlign(){
                in.close();
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else { outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) {  m->mothurOut("Your file contains only sequences from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;