Make tidy variant tables with MyVariant.info and Tabulator

Β·140 wordsΒ·1 min

We can use the MyVariant.info API and Tabulator to create a web page for making tidy tables with genomic variants.

🐎 Example
#

Here is an animation that shows what this code can do:

⚑ Try it
#

Try pasting a list of SNP ids at quickgene.net/variants

After you paste the list and click β€œSearch”:

  • We use the MyVariant.info service to guess the identifiers that match your query.
  • We automatically add links to the Open Targets Genetics web service, which provides further links to many resources for researching genetic variants.

πŸ’Ύ 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.