annotations

View: New views
2 Messages — Rating Filter:   Alert me  

annotations

by Mark A. Jensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm cogitating on features and annotations. For a RichSeq, one gets the set of annotations by

$seq->annotation->get_Annotations

while getting features by

$seq->get_Features

Is there a reason not to have a method in SeqI

sub get_Annotations { shift->annotation->get_Annotations }

to allow a user to do what seems natural from a user's perspective, viz. $seq->get_Annotations? I imagine this might save hundreds of hours of frustration, integrated over all newbies.
MAJ
_______________________________________________
Bioperl-l mailing list
Bioperl-l@...
http://lists.open-bio.org/mailman/listinfo/bioperl-l

Re: annotations

by Chris Fields-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Nov 1, 2009, at 10:47 PM, Mark A. Jensen wrote:

> I'm cogitating on features and annotations. For a RichSeq, one gets  
> the set of annotations by
>
> $seq->annotation->get_Annotations
>
> while getting features by
>
> $seq->get_Features
>
> Is there a reason not to have a method in SeqI
>
> sub get_Annotations { shift->annotation->get_Annotations }
>
> to allow a user to do what seems natural from a user's perspective,  
> viz. $seq->get_Annotations? I imagine this might save hundreds of  
> hours of frustration, integrated over all newbies.
> MAJ

One could add the methods to delegate to annotation() (that's  
essentially what I'm planning on doing for Biome).

chris
_______________________________________________
Bioperl-l mailing list
Bioperl-l@...
http://lists.open-bio.org/mailman/listinfo/bioperl-l