A wee improvement
authorpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Wed, 27 Apr 2011 23:39:38 +0000 (23:39 +0000)
committerpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Wed, 27 Apr 2011 23:39:38 +0000 (23:39 +0000)
git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@4044 e3abac25-378b-4346-85de-24260fe3988d

datamodel/compbio/data/sequence/FastaReader.java

index dd09acd..ed91e93 100644 (file)
@@ -147,12 +147,12 @@ public class FastaReader implements Iterator<FastaSequence> {
                }\r
                String header = sc.next();\r
                // Get rid of the new line chars (should cover common cases)\r
-               header = header.replaceAll("\n", "").replaceAll("\r", "");\r
+               header = header.replaceAll("\r", "");\r
 \r
                sc.useDelimiter("\\s*");\r
                final StringBuilder sb = new StringBuilder();\r
                while (sc.hasNext()) {\r
-                       sb.append(sc.next().trim());\r
+                       sb.append(sc.next());\r
                }\r
                final String sequence = sb.toString();\r
                if (Util.isEmpty(sequence)) {\r