[Bioperl-l] Bio::*Taxonomy* changes
Sendu Bala
bix at sendu.me.uk
Mon Jul 17 18:09:44 UTC 2006
Hilmar Lapp wrote:
>> I also plan to make $node->name('scientific', 'sapiens'); set and
>> get the node name, [...] users will now find the node name in [...]
>> @{$node->name('scientific')}
>
> BTW NCBI guarantees (well, promises) that there will only be one node
> name of class 'scientific'.
Yes, which is why I feel the API for name() isn't ideal, but thought it
would be best to play along. Would having a new scientific_name() method
be better, which gets/sets a single value? Perhaps it could just be a
more 'sane' shorthand to setting @{$node->name('scientific')} to a list
with only the supplied name, and getting ${$node->name('scientific')}[0] ?
More information about the Bioperl-l
mailing list