Skip to main content

ISEQPHARMGKB

Scripts that allow you to:

  1. Create databases (clinical and variant) from PharmGKB
  2. Get clinical or variant annotations from PharmGKB for own queries

Install iseqpharmgkb library

Optional steps (create virtual environment):

python3 -m venv venv
source venv/bin/activate

Obligatory steps:

python3 -m pip install --upgrade pip
pip install iseqpharmgkb

Requirements

  • python >=3.6
  • pandas >= 1.2.4
  • requests >= 2.22.0
  • SQLAlchemy >= 1.3.17

Create databases

create_database

Get clinical annotations

get_clinical_annotation --queries /path/to/query.json --output-filename /output/filename.json

An example query.json file should look like this:

{
    "rs1050828": "CC",
    "rs5030868": "CC",
    "CYP2D6*2": "*2",
    "CYP2D6*1": "*1/*1"
}

Get variant annotations

get_variant_annotation --queries /path/to/query.json --output-filename /output/filename.json

An example query.json file should look like this:

{
    "rs1050828": "CC",
    "rs5030868": "CC",
    "CYP2D6*2": "*2",
    "CYP2D6*1": "*1/*1"
}

Metadata

Release files for iseqpharmgkb 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iseqpharmgkb 0.0.9
File Size Uploaded Provenance
iseqpharmgkb-0.0.9.tar.gz 9.1 kB Without provenance Details

Release files / iseqpharmgkb-0.0.9.tar.gz

Download URL iseqpharmgkb-0.0.9.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
311d9404e7e29c93db0e38d9baa309ba5a726c87bb26973ee3e5baf6285c5227
BLAKE2b-256 checksum
How to use checksums
29c4a726bee434ab14253fe2daa306c40c66bd817e6a60f42256e5ce7be30f4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for iseqpharmgkb 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page