]> git.donarmstrong.com Git - mothur.git/blobdiff - reversecommand.cpp
modified sequence class to read fasta files with comments. this required modification...
[mothur.git] / reversecommand.cpp
index 7a87a99a9720f3f5c8bc04e77bac39d5eabf5ea0..37e95685430184760cd0919c18a1cfeea2ec4c42 100644 (file)
@@ -82,9 +82,11 @@ int ReverseSeqsCommand::execute(){
                openOutputFile(reverseFile, outFASTA);
                
                while(!inFASTA.eof()){
-                       Sequence currSeq(inFASTA);
-                       currSeq.reverseComplement();
-                       currSeq.printSequence(outFASTA);
+                       Sequence currSeq(inFASTA);  gobble(inFASTA);
+                       if (currSeq.getName() != "") {
+                               currSeq.reverseComplement();
+                               currSeq.printSequence(outFASTA);
+                       }
                }
                inFASTA.close();
                outFASTA.close();