Let’s use the MyGene.info API with the Tabulator JavaScript library by Oli Folkerd to create a simple web page for making tidy tables with information about genes. See how it works below, download the code, and try it yourself.
🐎 Example #
Here is an animation that shows what this code can do:
⚡ Try it #
Try pasting a list of gene ids at quickgene.net
After you click “Search”, we use the MyGene.info service or Ensembl API to guess the Entrez IDs or Ensembl IDs that match your query.
💾 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/variants.html
Reply by Email