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 details)
Built Distribution
File details
Details for the file ensemblrestpy-1.2.tar.gz
.
File metadata
- Download URL: ensemblrestpy-1.2.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41f285474b686c34797679be854a7853de824320e838118d17b78832e6960fb |
|
MD5 | ff88e0d2fb4506b9c44ceb37c779b011 |
|
BLAKE2b-256 | aeaed15533172d77700ae203dc1c96753f278e555c6cd4c887eb74682905eb23 |
File details
Details for the file ensemblrestpy-1.2-py3-none-any.whl
.
File metadata
- Download URL: ensemblrestpy-1.2-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 008cf5daaa462161b963bef0d510ff06e4a06b9ea645b34925241c864e138c5f |
|
MD5 | 5edc64d2da69c99c48c5197ba22e7d08 |
|
BLAKE2b-256 | e7db77cdca712382c6d21a535cf9e0e51ae71ca9005658254f6586285302beeb |