[ensembl-dev] searching for genes by description field?

Andy Yates ayates at ebi.ac.uk
Wed Feb 13 10:30:57 GMT 2013

Hi Adam,

Currently we do not support this. The actual code which implements this search is in the DBEntryAdaptor and would require edits in there. I can see a point in having this kind of functionality so we will put it on our to-do list.


On 13 Feb 2013, at 10:24, Adam Witney <awitney at sgul.ac.uk> wrote:

> Hi,
> Is there a method to search the Gene description field. I am currently using fetch_all_by_external_name, but this only works if the gene has been annotated with gyrA:
> my $genes = $dba->get_GeneAdaptor()->fetch_all_by_external_name('gyrA');
> What I would like to be able to do is search the data returned by the description method ($gene->description), is this possible? eg something like this:
> my $genes = $dba->get_GeneAdaptor()->fetch_all_by_description('%gyrase%');
> Thanks
> Adam
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/

More information about the Dev mailing list