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