]> git.donarmstrong.com Git - mothur.git/blobdiff - getseqscommand.cpp
created blank accnos in chimera commands if no seqs are deemed chimeric. modified...
[mothur.git] / getseqscommand.cpp
index 8bf93ce68db55f9b380307feb73d83ecf3700c5d..5e77a1d296b1d740f9ecd58209f555f33c8ac73f 100644 (file)
@@ -238,10 +238,8 @@ int GetSeqsCommand::readFasta(){
                in.close();     
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else {  outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) { m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;
 
@@ -311,10 +309,8 @@ int GetSeqsCommand::readList(){
                in.close();     
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else {  outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) { m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;
 
@@ -405,10 +401,8 @@ int GetSeqsCommand::readName(){
                in.close();
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else {  outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) { m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;
                
@@ -454,10 +448,8 @@ int GetSeqsCommand::readGroup(){
                in.close();
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else {  outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) { m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;
 
@@ -500,11 +492,9 @@ int GetSeqsCommand::readTax(){
                in.close();
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else {  outputNames.push_back(outputFileName); }
-               
+               if (wroteSomething == false) { m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
+                       
                return 0;
 
        }
@@ -569,10 +559,8 @@ int GetSeqsCommand::readAlign(){
                in.close();
                out.close();
                
-               if (wroteSomething == false) {
-                       m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();
-                       remove(outputFileName.c_str()); 
-               }else {  outputNames.push_back(outputFileName); }
+               if (wroteSomething == false) { m->mothurOut("Your file does not contain any sequence from the .accnos file."); m->mothurOutEndLine();  }
+               outputNames.push_back(outputFileName); 
                
                return 0;