[Bioperl-l] each_Reference problem

Jason Stajich jason@cgt.mc.duke.edu
Mon, 27 May 2002 11:27:57 -0400 (EDT)


You're using the old API, use the Bio::AnnotationCollectionI
interface methods.  Specifically, replace your each_Reference call with
$ac->get_Annotations('reference')

-jason

On Mon, 27 May 2002, Stefan Kirov wrote:

> These lines:
>         while( my $entry =  $seqio->next_seq ) {
>                my $annotations = $entry->annotation;
>                foreach my $ref ($annotations->each_Reference) {
>                  print $ref->title, " ", print $ref->location;
>
> Produce the correct information plus:
> each_Reference (old style Annotation) on new style
> Annotation::Collection
> STACK Bio::Annotation::Collection::each_Reference
> /usr/local/lib/perl5/site_perl/5.6.0/Bio/Annotation/Collection.pm:348
> STACK toplevel array_data_anal.pl:25
> Can anyone point to the problem. I believe I searched the documentation
> pretty well but was unable to find anything to suggest the cause of the
> problem. Thanks!
> --
> Please Note: New area code 865, effective NOW!
> Stefan A. Kirov, Ph.D.
> Dept Biochemistry and Cellular and Molecular Biology
> F233 Walters Life Sciences Building
> 1414 Cumberland Avenue
> University of Tennessee
> Knoxville, TN  37996-0840
> Tel: 865-974-6710
>
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
>

-- 
Jason Stajich
Duke University
jason at cgt.mc.duke.edu