Installs, runs, and parsers PharmCAT using Pharmacoscan input.
Project description
PharmCAT Runner
The PharmCAT Runner tool provides a simplified pipeline for installing, running, and parsing PharmCAT outputs.
Dependencies
- bcftools/tabix/bgzip - 1.18+
- PLINK - Required for Hardy Weinburg and sample call rate QC methods
- Python 3.9+ - Optional but highly recommended
Installation
Installation can be acheived using pip or any other package manager of your choosing. It is highly recommended that installation is done with Python 3.9+. Some conda environments can conflict with installation of a new verison.
pip install pharmcat_runner
Usage
# Install PharmCAT and all required dependencies. If an installation already exists, must pass --overwrite to update
python3 -m pharmcat_runner install
# Standardize VCFs
python3 -m pharmcat_runner standardize --files "data/*.vcf"
# Run optional QC steps followed by PharmCAT
python3 -m pharmcat_runner haplotype --files "data/*.vcf" --hwe 0.001 --variant_call_rate 0.95 --sample_call_rate 0.95
# Parse PharmCAT output
# Original Pharmacoscan VCFs are required for accurate reporting of CYP2D6 copy number
# Sex ids are required for accurate reporting of G6PD
# Warnings are reported if either of these are not supplied
python3 -m pharmcat_runner parser --files "results/pharmcat_output/*.json" --vcfs "data/*.vcf" --sex_ids sex_ids.txt
sex_ids file
This file is required for accurate reporting of G6PD genotypes and phenotypes. This should be a tab delimited file without a header. The two columns should be sample id and predicted sex (M-Male, F-Female, O-Other). The sample ids in this file must match the sample ids in the pharmcat output
| 1234 | M |
| 5678 | F |
| 1357 | O |
Bugs and desired features
Please report any bugs and/or desired features to either the github issues page or to andrew.haddad@pitt.edu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pharmcat_runner-0.0.16.tar.gz.
File metadata
- Download URL: pharmcat_runner-0.0.16.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3779191c9b09739fa9182712a0a55a6e8039dcd6e76ba624a183c92adf0f1341
|
|
| MD5 |
9418c16ffbc1595f487c82dac0d1a6f4
|
|
| BLAKE2b-256 |
bbdea6f2ef434a5b5e852052b9c8190fb70f4972b2e29f9eb547ff7bba9585b3
|
File details
Details for the file pharmcat_runner-0.0.16-py3-none-any.whl.
File metadata
- Download URL: pharmcat_runner-0.0.16-py3-none-any.whl
- Upload date:
- Size: 414.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aaacb76eecd4c453e76747b09199d3af6bb651c1e51dea7805a504468e64225
|
|
| MD5 |
ca339a698d79b05d034bf8a546b28f0a
|
|
| BLAKE2b-256 |
f697cd398337e4e738f4695278706a9d4fee8cd674320bac35894338aea562a4
|