A reusable micro service to provide PharmGKB apis on a local machine (data is stored locally)
192
A reusable micro service to provide PharmGKB apis and data on a local machine.
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
/api/docs
/api/vda/variants
/api/vda/variants/rs295
Content type
Image
Digest
Size
48.4 MB
Last updated
about 4 years ago
docker pull ethnexus/pharmgkb-ms