Python client for Ensembl REST API
Project description
INSTALLATION
pip install ensemblrestpy
quick start
Python client for Ensembl REST API
# grch38
import pprint
from ensemblrestpy import *
pprint.pprint(vep_hgvs("NM_000410.4:c.845G>A", "human"))
pprint.pprint(vep_hgvs(['NM_000410.4:c.845G>A', "NM_000410.4:c.187C>G"], "human"))
pprint.pprint(vep_id("rs1800562", "human"))
pprint.pprint(vep_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(variant_recoder("rs1800562", "human"))
pprint.pprint(variant_recoder(["rs1800562", "rs1799945"], "human"))
pprint.pprint(variation_id("rs1800562", "human"))
pprint.pprint(variation_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(variation_pmcid("PMC3104019", "human"))
pprint.pprint(variation_pmid("18408718", "human"))
pprint.pprint(vep_region("6:26092913", "A", "human"))
pprint.pprint(vep_region(["6 26092913 rs1800562 G A ...", "6:26090951 rs1799945 C G ..."], "human"))
ensembl = Ensembl()
pprint.pprint(ensembl.vep_hgvs("NM_000410.4:c.845G>A", "human"))
pprint.pprint(ensembl.vep_hgvs(['NM_000410.4:c.845G>A', "NM_000410.4:c.187C>G"], "human"))
pprint.pprint(ensembl.vep_id("rs1800562", "human"))
pprint.pprint(ensembl.vep_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(ensembl.variant_recoder("rs1800562", "human"))
pprint.pprint(ensembl.variant_recoder(["rs1800562", "rs1799945"], "human"))
pprint.pprint(ensembl.variation_id("rs1800562", "human"))
pprint.pprint(ensembl.variation_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(ensembl.variation_pmcid("PMC3104019", "human"))
pprint.pprint(ensembl.variation_pmid("18408718", "human"))
pprint.pprint(ensembl.vep_region("6:26092913", "A", "human"))
pprint.pprint(ensembl.vep_region(["6 26092913 rs1800562 G A ...", "6:26090951 rs1799945 C G ..."], "human"))
# grch37
import pprint
from ensemblrestpy.grch37 import *
pprint.pprint(vep_hgvs("NM_000410.4:c.845G>A", "human"))
pprint.pprint(vep_hgvs(['NM_000410.4:c.845G>A', "NM_000410.4:c.187C>G"], "human"))
pprint.pprint(vep_id("rs1800562", "human"))
pprint.pprint(vep_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(variant_recoder("rs1800562", "human"))
pprint.pprint(variant_recoder(["rs1800562", "rs1799945"], "human"))
pprint.pprint(variation_id("rs1800562", "human"))
pprint.pprint(variation_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(variation_pmcid("PMC3104019", "human"))
pprint.pprint(variation_pmid("18408718", "human"))
pprint.pprint(vep_region("6:26093141", "A", "human"))
pprint.pprint(vep_region(["6 26093141 rs1800562 G A ...", "6 26091179 rs1799945 C G ..."], "human"))
ensembl = Ensembl()
pprint.pprint(ensembl.vep_hgvs("NM_000410.4:c.845G>A", "human"))
pprint.pprint(ensembl.vep_hgvs(['NM_000410.4:c.845G>A', "NM_000410.4:c.187C>G"], "human"))
pprint.pprint(ensembl.vep_id("rs1800562", "human"))
pprint.pprint(ensembl.vep_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(ensembl.variant_recoder("rs1800562", "human"))
pprint.pprint(ensembl.variant_recoder(["rs1800562", "rs1799945"], "human"))
pprint.pprint(ensembl.variation_id("rs1800562", "human"))
pprint.pprint(ensembl.variation_id(["rs1800562", "rs1799945"], "human"))
pprint.pprint(ensembl.variation_pmcid("PMC3104019", "human"))
pprint.pprint(ensembl.variation_pmid("18408718", "human"))
pprint.pprint(ensembl.vep_region("6:26093141", "A", "human"))
pprint.pprint(ensembl.vep_region(["6 26093141 rs1800562 G A ...", "6 26091179 rs1799945 C G ..."], "human"))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ensemblrestpy-1.2.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for ensemblrestpy-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 008cf5daaa462161b963bef0d510ff06e4a06b9ea645b34925241c864e138c5f |
|
MD5 | 5edc64d2da69c99c48c5197ba22e7d08 |
|
BLAKE2b-256 | e7db77cdca712382c6d21a535cf9e0e51ae71ca9005658254f6586285302beeb |