[BioRuby] Error reading GenBank file

Pjotr Prins pjotr at pckassa.com
Wed Dec 7 05:03:30 EST 2005

On Wed, Dec 07, 2005 at 06:55:16PM +0900, Toshiaki Katayama wrote:
> What is the best interface for the empty or incomplete entry?
> raise an exception? or just returns empty string?
>   irb> gb = Bio::GenBank.new('')
>   irb> p gb.naseq
>   NoMethodError: undefined method `[]=' for nil:NilClass

Why not return a nil? Or raise an exception at initialization if
illegal tags are not allowed.


More information about the BioRuby mailing list