I'd like to fetch genes solely by official HGNC gene symbol.
Eutils appears to search aliases in addition to the official symbol. Does anyone know how to restrict this search solely to gene symbol?
For example:
curl -g 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=gene&term=(prx[Gene+Name])+AND+human[Organism]'
returns (edited):
<eSearchResult><Count>2</Count><RetMax>2</RetMax><RetStart>0</RetStart><IdList>
<Id>9588</Id>
<Id>57716</Id>
</IdList>
9588 is PRDX6, which has PRX as an alias.
57716 is PRX, the gene I searched for.
I've also tried adding PRX[title] to the query, but that is not sufficient.
I'm currently fetching both and filtering on the xpath expression /Entrezgene-Set/Entrezgene/Entrezgene_gene/Gene-ref/Gene-ref_locus/text()
, but that seems silly.
Is there a better way?
Thanks,
Reece
Yep, that solves it. Thanks!