[Bioperl-l] Bio::AnnotationI::tagname

Hilmar Lapp hlapp@gnf.org
Tue, 24 Sep 2002 14:34:32 -0700


What about adding the following method

=head2 tagname

  Title   : tagname
  Usage   : $obj->tagname($newval)
  Function: Get/set the tagname for this annotation value.

            Setting this is optional. If set, it obviates the need to 
provide
            a tag to Bio::AnnotationCollectionI when adding this 
object. When
            obtaining an AnnotationI object from the collection, the 
collection
            will set the value to the tag under which it was stored 
unless the
            object has a tag stored already.
  Example :
  Returns : value of tagname (a scalar)
  Args    : new value (a scalar, optional)


=cut

to Bio::AnnotationI?

I find it troublesome sometimes if annotation objects cannot easily 
serialize under which tag they were attached (want to be attached) 
to an AnnotationCollectionI.

I'm in the process of adding this to all Bio::Annotation::* objects. 
Does anyone think this is a bad idea?

	-hilmar
--
-------------------------------------------------------------
Hilmar Lapp                            email: lapp at gnf.org
GNF, San Diego, Ca. 92121              phone: +1-858-812-1757
-------------------------------------------------------------