Autocomplete gene names with mygene.info and typeahead.js

2014-10-05

We can use mygene.info with typeahead.js to autocomplete gene names and retrieve every annotation you can think of (GO, Kegg, Ensembl, position, homologs, etc.). Try typing your gene name in the interactive example in this post, and download my code.

🐎 In action#

mygene.info with typeahead.js

💾 Download the code#

Download the code and try it out yourself:

To run it, start a server. Go to your ~/Downloads folder and run:

cd ~/Downloads
python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

Then open your web browser and go to http://localhost:8000/geneinfo-typeahead.html

⚡ Try it here#

Start typing in the text box below and you should see suggestions for completing your gene name. You should see more information if you press Enter on your selected gene.

© 2024 Kamil Slowikowski