[Biocorba-l] SeqFeature -> get_Primary_Seq

Alan Robinson alan@ebi.ac.uk
Thu, 8 Feb 2001 17:28:24 +0000 (GMT Standard Time)


Hi Matthew,


On Wed, 7 Feb 2001, Matthew Pocock wrote:

> Hi.
> 
> I think you should be able to go from a feature to the entire rich 
> sequence that contains it and also to some simple 'stringy' sequence 
> that is contained within its location (no ID, name etc.). This should be 
> possible to implement for all cases. For things like CDSs, they should 
> extend the IDL to provide a 3rd method to retrieve the translation 
> (which is the simple 'stringy' sequence, but may be castable to the 
> fully annotated sequenced). Does that sound workable?

The SeqFeature interface includes a method 'seq_primary_id()' that returns
the primary identifier for the Seq that this SeqFeature belongs to.

For a little while longer, I'm going to continue my crusade for SeqFeature
to be naive about the actual sequence from whence it came outside the
range of the feature (other than via a primary identifier!)  :)


cheers,
alan