bugfix for writing fasta file without gap characters.
authorjprocter <Jim Procter>
Sat, 15 Jan 2005 15:05:23 +0000 (15:05 +0000)
committerjprocter <Jim Procter>
Sat, 15 Jan 2005 15:05:23 +0000 (15:05 +0000)
src/jalview/io/FastaFile.java

index 28109d5..9a6e060 100755 (executable)
@@ -106,9 +106,7 @@ public class FastaFile extends AlignFile {
       if (gaps) {\r
         seq = s[i].getSequence();\r
       } else {\r
-        seq = AlignSeq.extractGaps(s[i].getSequence(),"-");\r
-        seq = AlignSeq.extractGaps(seq,".");\r
-        seq = AlignSeq.extractGaps(seq," ");\r
+        seq = AlignSeq.extractGaps("-. ",s[i].getSequence());\r
       }\r
 \r
       out.append(">" + s[i].getName() + "/" + s[i].getStart() + "-" + s[i].getEnd() + "\n");\r