biothings / mygene.info

MyGene.info: A BioThings API for gene annotations
http://mygene.info
Other
113 stars 20 forks source link

accept versioned Ensembl queries #61

Open andrewsu opened 5 years ago

andrewsu commented 5 years ago

http://mygene.info/v3/gene/ENSG00000123374.10 and http://mygene.info/v3/query?q=ENSG00000123374.10 return no hits, while http://mygene.info/v3/gene/ENSG00000123374 and http://mygene.info/v3/query?q=ENSG00000123374 return the expected result.

Most people will not be searching versioned accession numbers (I don't think), but if this is an easy enhancement then perhaps worth implementing...

sirloon commented 5 years ago

IIRC we did a similar thing with refseq ID, it might be easy to do using a specific ES analyzer (path)