lib/bio/db/gff/gff3parsefile.rb in bio-gff3-0.8.6 vs lib/bio/db/gff/gff3parsefile.rb in bio-gff3-0.8.7
- old
+ new
@@ -16,10 +16,10 @@
fh.each_line do | line |
s = line.strip
if s == '##FASTA'
break
end
- next if s.length == 0 or s[0] == '#'
+ next if s.length == 0 or s =~ /^#/
@records.push FastLineRecord.new(parse_line_fast(s))
end
fasta = Bio::GFF::FastaReader.new(fh)
fasta.each do | id, fastarec |
@sequences.push FastaRecord.new(id,fastarec)