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"
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iseqpharmgkb-0.0.9.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file iseqpharmgkb-0.0.9.tar.gz.

File metadata

  • Download URL: iseqpharmgkb-0.0.9.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for iseqpharmgkb-0.0.9.tar.gz
Algorithm Hash digest
SHA256 311d9404e7e29c93db0e38d9baa309ba5a726c87bb26973ee3e5baf6285c5227
MD5 59a7d10534ac7d285668dcc69f61dfef
BLAKE2b-256 29c4a726bee434ab14253fe2daa306c40c66bd817e6a60f42256e5ce7be30f4b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.9 This release

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page