[Bioperl-l] SearchIO hit->description mod?
Russell.Smithies at agresearch.co.nz
Tue Jun 29 17:06:33 EDT 2010
Not sure if it's a useful tweak, but is it worth changing $hit->description to return an array?
Just mentioned it as I notice when I'm parsing search results from Blasts against the NR database, the fasta header line consists of multiple values separated by a CTRL-A.
$hit->accession will give you the accession of the first element in the header but $hit->description will give you the descriptions of all the rest of the elements.
Probably not explaining it very well but perhaps both $hit->description and $hit->accession should return arrays or maybe use wantarray and return either a scalar or array?
I don't know my way around the code well enough but it probably belongs further up the tree - Bio::Search::Hit? or even up in Bio::Seq?
My hack for just getting back the first description, that matches up with the accession I hope, is:
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
More information about the Bioperl-l