[BioRuby] FlatFile loading genbank, the last entry is a fake

Raoul Jean Pierre Bonnal raoul.bonnal at itb.cnr.it
Fri Dec 14 13:50:30 UTC 2007


Downloading the AJ561198's genbank file from ncbi and loading it with

data=Bio::FlatFile.auto("AJ561198.gb")

data.each_entry do |entry|
	puts entry.entry_id
end

You get

AJ561198
nil

I think the parser identify the "\n" at the end of the genbank (after
"//\n") and think there is another entry, but it's wrong.
Deleting the last line, works.

--
Ra





More information about the BioRuby mailing list