[Bioperl-l] Bio::DB::Fasta

Torsten Seemann torsten.seemann at infotech.monash.edu.au
Wed Jun 6 06:06:37 UTC 2007


Nick,

> Can't call method "seq" on an undefined value at Match-emNEWTEST.pl line 84,

The error makes it pretty clear. You are calling the ->seq method on
an undefined value, ie. $pse_obj.

> my $pse_obj = $db->get_Seq_by_id('GA17307');

# check we got something!
die "sequence not in database" unless $pse_obj;

> my $pse_sequence = $pse_obj->seq;


-- 
--Torsten Seemann
--Victorian Bioinformatics Consortium, Monash University
--Tel +61 3 9905 9010



More information about the Bioperl-l mailing list