The CPAP sleep-data platform: understandable nightly summaries, therapy charts, and your data in the tools you already use. The Mule and Miner bridges your machine to SleepHQ, OSCAR, or your dashboard
See the analysis in action: click below to watch a demo on YouTube:
What ZaroPGx Does
ZaroPGx is a self-hosted pharmacogenomic analytic pipeline. As input, ZaroPGx accepts a VCF, BCF, gVCF, BAM, CRAM,
SAM or short-read FASTQ, and reports diplotypes and phenotypes for up to 91 pharmacogenes, with the
CPIC, DPWG and FDA guidances that apply, with reports in PDF, interactive HTML, and FHIR R4 bundle forms.
Designed as a self-hostable Docker Compose stack, ZaroPGx enables absolute data privacy and security when loaded in a local and secure network. Reports are for informational purposes only and are not intended for use as a substitute for professional medical advice, diagnosis, or treatment.
[...] Priority 2 (Testing): FASTQ, short reads, up to 20 GB. Aligned to GRCh38.
[...] Priority 3 (Research): Other sequencing and genotyping formats.
[...] Priority 4 (Research): BED, 23andMe, AncestryDNA, various TXT formats. Detected and refused for now.
[...] Priority 5 (Early research): T2T-CHM13, and others. Detected and refused for now.
Features
Priority 0 (Supported): PDF and interactive HTML custom in-house reports.
Priority 1 (Supported): mtDNA-Server 2: haplogroup and the MT-RNR1 outside call.
Priority 2 (Supported): FHIR R4 export (JSON, XML) following HL7's Genomics Reporting IG; push to the bundled HAPI FHIR server.
[...] Priority 3 (Development): Interactive HTML enhancements with useful visualizations, fully DB-oriented data handling. Projected release in v0.5
[...] Priority 4 (Research): FHIR online export direct to PHR/EHR
[...] Priority 5 (Early research): In-depth and targeted analytics, with specialty curation to reduce cognitive load
[...] Priority 6 (Early research): Complete transition to fully DB-based workflow; pulling and normalizing data directly from published databases
Requirements
Software
NB: The simple bootstrap script will automatically install missing dependencies for you!
Linux environment preferred
Docker; Docker Compose (>= 2.24); Git -- at minimum
Auto-install supported via: apt, yum, dnf, pacman
Windows 10/11 requires WSL2 installed and configured
WSL2; Docker; Docker Compose; Git
Auto-install supported via: winget or chocolatey
macOS requires either Docker Desktop or to run a Linux VM
Auto-install supported via: homebrew (Git only; Docker Desktop must be installed manually)
(macOS support needs testing)
Hardware
Virtualization: Hardware Virtualization must be enabled for Windows and macOS users
CPU: x86-64 (64-bit Intel or AMD)
(resource usage, projected)
Internet connection: first run only requires significant bandwidth to fetch images and load reference genomes; advisable to NOT be on a metered connection, and preferably use a wired one.
Observe progress, and on completion you will see links to the custom PDF and interactive HTML reports, as well as PharmCAT's report and raw data outputs.
Reports are written to data/reports/<patient_id>/<job_id>/.
REST API (Advanced and Debugging)
See the FastAPI docs on your instance's page: http://localhost:8765/api/docs
Sample Data Access
For real-world sample data, try browsing the Personal Genome Project:
Contributions are welcome and are gratefully appreciated!
Acknowledgements & Citations
If your work is a part of ZaroPGx and you wish to add or amend text recognizing yourself, your work, and/or your organization, please send me a message and I will gladly attend to your request.
Van der Auwera GA, O'Connor BD. Genomics in the Cloud: Using Docker, GATK, and WDL in Terra. 1st ed. O'Reilly Media; 2020.
McKenna A, Hanna M, Banks E, et al. The Genome Analysis Toolkit: A MapReduce framework for analyzing next-generation DNA sequencing data. Genome Research. 2010;20(9):1297–1303. doi:10.1101/gr.107524.110
Poplin R, Ruano-Rubio V, DePristo MA, et al. Scaling accurate genetic variant discovery to tens of thousands of samples [Preprint]. bioRxiv. 2017:201178. doi:10.1101/201178
Schneider VA, Graves-Lindsay T, Howe K, et al. Evaluation of GRCh38 and de novo haploid genome assemblies demonstrates the enduring quality of the reference assembly. Genome Research. 2017;27(5):849–864. doi:10.1101/gr.213611.116
Zampatti S, Fabrizio C, Ragazzo M, et al. Precision Medicine into Clinical Practice: A Web-Based Tool Enables Real-Time Pharmacogenetic Assessment of Tailored Treatments in Psychiatric Disorders. Journal of Personalized Medicine. 2021;11(9):851. doi:10.3390/jpm11090851
License
This project is provided under the AGPLv3 License.
Lee SB, Shin JY, Kwon NJ, Kim C, Seo JS. ClinPharmSeq: A targeted sequencing panel for clinical pharmacogenetics implementation. PLOS ONE. 2022;17(7):e0272129. doi:10.1371/journal.pone.0272129
Lee SB, Wheeler MM, Patterson K, et al. Stargazer: a software tool for calling star alleles from next-generation sequencing data using CYP2D6 as a model. Genetics in Medicine. 2019;21(2):361–372. doi:10.1038/s41436-018-0054-0
Lee SB, Wheeler MM, Thummel KE, Nickerson DA. Calling Star Alleles With Stargazer in 28 Pharmacogenes With Whole Genome Sequences. Clinical Pharmacology & Therapeutics. 2019;106(6):1328–1337. doi:10.1002/cpt.1552
Lee SB, Shin JY, Kwon NJ, Kim C, Seo JS. ClinPharmSeq: A targeted sequencing panel for clinical pharmacogenetics implementation. PLOS ONE. 2022;17(7):e0272129. doi:10.1371/journal.pone.0272129
Browning BL, Tian X, Zhou Y, Browning SR. Fast two-stage phasing of large-scale sequence data. American Journal of Human Genetics. 2021;108(10):1880–1890. doi:10.1016/j.ajhg.2021.08.005
Pedregosa F, Varoquaux G, Gramfort A, et al. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research. 2011;12(85):2825–2830. https://jmlr.org/papers/v12/pedregosa11a.html
Szolek A, Schubert B, Mohr C, Sturm M, Feldhahn M, Kohlbacher O. OptiType: precision HLA typing from next-generation sequencing data. Bioinformatics. 2014;30(23):3310–3316. doi:10.1093/bioinformatics/btu548
Siragusa E, Weese D, Reinert K. Fast and accurate read mapping with approximate seeds and multiple backtracking. Nucleic Acids Research. 2013;41(7):e78. doi:10.1093/nar/gkt005
Siragusa E. Approximate string matching for high-throughput sequencing [dissertation]. Freie Universität Berlin; 2015. doi:10.17169/refubium-15562
Reinert K, Dadi TH, Ehrhardt M, et al. The SeqAn C++ template library for efficient sequence analysis: A resource for programmers. Journal of Biotechnology. 2017;261:157–168. doi:10.1016/j.jbiotec.2017.07.017
Weissensteiner H, Forer L, Fuchsberger C, et al. mtDNA-Server: next-generation sequencing data analysis of human mitochondrial DNA in the cloud. Nucleic Acids Research. 2016;44(W1):W64–W69. doi:10.1093/nar/gkw247
Weissensteiner H, Forer L, Fendt L, et al. Contamination detection in sequencing studies using the mitochondrial phylogeny. Genome Research. 2021;31(2):309–316. doi:10.1101/gr.256545.119
Sangkuhl K, Whirl-Carrillo M, Whaley RM, et al. Pharmacogenomics Clinical Annotation Tool (PharmCAT). Clinical Pharmacology & Therapeutics. 2020;107(1):203–210. doi:10.1002/cpt.1568
Li B, Sangkuhl K, Keat K, et al. How to Run the Pharmacogenomics Clinical Annotation Tool (PharmCAT). Clinical Pharmacology & Therapeutics. 2023;113(5):1036–1047. doi:10.1002/cpt.2790
Klein TE, Ritchie MD. PharmCAT: A Pharmacogenomics Clinical Annotation Tool. Clinical Pharmacology & Therapeutics. 2018;104(1):19–22. doi:10.1002/cpt.928
Sveidqvist K, Contributors to Mermaid. Mermaid: Generate diagrams from markdown-like text [Software]. GitHub repository. https://github.com/mermaid-js/mermaid
Bostock M, Ogievetsky V, Heer J. D³ Data-Driven Documents. IEEE Transactions on Visualization and Computer Graphics. 2011;17(12):2301–2309. doi:10.1109/TVCG.2011.185
Yates AD, Austine-Orimoloye O, Azov AG, et al. Ensembl 2026. Nucleic Acids Research. 2026;54(D1):D1053–D1060. doi:10.1093/nar/gkaf1239
Morales J, Pujar S, Loveland JE, et al. A joint NCBI and EMBL-EBI transcript set for clinical genomics and research. Nature. 2022;604(7905):310–315. doi:10.1038/s41586-022-04558-8
Cheng J, Novati G, Pan J, et al. Accurate proteome-wide missense variant effect prediction with AlphaMissense. Science. 2023;381(6664):eadg7492. doi:10.1126/science.adg7492
Chen S, Francioli LC, Goodrich JK, et al. A genomic mutational constraint map using variation in 76,156 human genomes. Nature. 2024;625(7993):92–100. doi:10.1038/s41586-023-06045-0
Landrum MJ, Lee JM, Benson M, et al. ClinVar: improving access to variant interpretations and supporting evidence. Nucleic Acids Research. 2018;46(D1):D1062–D1067. doi:10.1093/nar/gkx1153
Dwarshuis N, Kalra D, McDaniel J, et al. The GIAB genomic stratifications resource for human reference genomes. Nature Communications. 2024;15(1):9029. doi:10.1038/s41467-024-53260-y
Byrska-Bishop M, Evani US, Zhao X, et al. High-coverage whole-genome sequencing of the expanded 1000 Genomes Project cohort including 602 trios. Cell. 2022;185(18):3426–3440.e19. doi:10.1016/j.cell.2022.08.004
1000 Genomes Project Consortium; Auton A, Brooks LD, Durbin RM, et al. A global reference for human genetic variation. Nature. 2015;526(7571):68–74. doi:10.1038/nature15393
van Oven M, Kayser M. Updated comprehensive phylogenetic tree of global human mitochondrial DNA variation. Human Mutation. 2009;30(2):E386–E394. doi:10.1002/humu.20921
Dür A, Huber N, Parson W. Fine-Tuning Phylogenetic Alignment and Haplogrouping of mtDNA Sequences. International Journal of Molecular Sciences. 2021;22(11):5747. doi:10.3390/ijms22115747
Andrews RM, Kubacka I, Chinnery PF, Lightowlers RN, Turnbull DM, Howell N. Reanalysis and revision of the Cambridge reference sequence for human mitochondrial DNA. Nature Genetics. 1999;23(2):147. doi:10.1038/13779
Swen JJ, Wilting I, de Goede AL, et al. Pharmacogenetics: From Bench to Byte. Clinical Pharmacology & Therapeutics. 2008;83(5):781–787. doi:10.1038/sj.clpt.6100507
Swen JJ, Nijenhuis M, de Boer A, et al. Pharmacogenetics: From Bench to Byte—An Update of Guidelines. Clinical Pharmacology & Therapeutics. 2011;89(5):662–673. doi:10.1038/clpt.2011.34
Whirl-Carrillo M, Huddart R, Gong L, et al. An Evidence-Based Framework for Evaluating Pharmacogenomics Knowledge for Personalized Medicine. Clinical Pharmacology & Therapeutics. 2021;110(3):563–572. doi:10.1002/cpt.2350
Gaedigk A, Casey ST, Whirl-Carrillo M, Miller NA, Klein TE. Pharmacogene Variation Consortium: A Global Resource and Repository for Pharmacogene Variation. Clinical Pharmacology & Therapeutics. 2021;110(3):542–545. doi:10.1002/cpt.2321
Gaedigk A, Whirl-Carrillo M, Pratt VM, Miller NA, Klein TE. PharmVar and the Landscape of Pharmacogenetic Resources. Clinical Pharmacology & Therapeutics. 2020;107(1):43–46. doi:10.1002/cpt.1654
Gaedigk A, Sangkuhl K, Whirl-Carrillo M, Twist GP, Klein TE, Miller NA; PharmVar Steering Committee. The Evolution of PharmVar. Clinical Pharmacology & Therapeutics. 2019;105(1):29–32. doi:10.1002/cpt.1275
Gaedigk A, Ingelman-Sundberg M, Miller NA, Leeder JS, Whirl-Carrillo M, Klein TE; PharmVar Steering Committee. The Pharmacogene Variation (PharmVar) Consortium: Incorporation of the Human Cytochrome P450 (CYP) Allele Nomenclature Database. Clinical Pharmacology & Therapeutics. 2018;103(3):399–401. doi:10.1002/cpt.910
Phan L, Zhang H, Wang Q, et al. The evolution of dbSNP: 25 years of impact in genomic research. Nucleic Acids Research. 2025;53(D1):D925–D931. doi:10.1093/nar/gkae977