Make tidy gene tables with MyGene.info and Tabulator

·139 words·1 min
Table of Contents

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:

mygene.info with tabulator.js

⚡ 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
Kamil Slowikowski
Author
Kamil Slowikowski
Computational biologist at Mass General Brigham.