HUB
Sign inSign up

ethnexus/pharmgkb-ms

By ethnexus

•Updated over 4 years ago

A reusable micro service to provide PharmGKB apis on a local machine (data is stored locally)

Image
0

262

ethnexus/pharmgkb-ms repository overview

⁠PharmGKB Micro Service

A reusable micro service to provide PharmGKB apis and data on a local machine.

⁠Usage

To use the microservice in your application you need to integrate the following configuration into your docker-compose.yml

version: "3"

services:
  disgenet:
    image: ethnexus/pharmgkb-ms
    volumes:
      - ./data:/data:z
    ports:
      - "9077:9077"
    env_file: .env

In your .env file adjust the required environment variables (if the values are not set the defaults as below are taken):

VAR_DRUG_ANN_URL=https://api.pharmgkb.org/v1/download/file/data/variantAnnotations.zip
VARIANTS_URL=https://api.pharmgkb.org/v1/download/file/data/variants.zip
GENES_URL=https://api.pharmgkb.org/v1/download/file/data/genes.zip
DRUGS_URL=https://api.pharmgkb.org/v1/download/file/data/drugs.zip
RELATIONSHIPS_URL=https://api.pharmgkb.org/v1/download/file/data/relationships.zip

Run the container using:

docker-compose up -d

⁠Using the API

⁠Docs
/api/docs
⁠All Variant-drugs associations
/api/vda/variants
⁠Example url for a single Variant-drug association
/api/vda/variants/rs295
Tag summary
Recent tags
Content type
Image
Digest
Size
48.4 MB
Last updated
over 4 years ago
docker pull ethnexus/pharmgkb-ms:latest