[Bioperl-l] Errors with Bio::Seq objects
De-Jian Zhao
dejian.zhao at gmail.com
Thu Jul 12 05:14:33 UTC 2012
Thank you, Jim. You are right. It works. This example deepens my
understanding of OOP.
On 2012-7-12 2:01, Jim Hu wrote:
>> $ perl -e ' use Bio::SeqIO; my $seqio=Bio::SeqIO->new(-file=>shift); print $seqio->next_seq()->translate(); ' nt.gb
>> > Bio::Seq::RichSeq=HASH(0x20a3e7b0)
> ->translate returns a new Seq object. I think
>
> $ perl -e ' use Bio::SeqIO; my $seqio=Bio::SeqIO->new(-file=>shift); print $seqio->next_seq()->translate()->seq(); ' nt.gb
>
> should work (haven't tried it).
More information about the Bioperl-l
mailing list