Bioinformatics advances

pycmplot: fast, low-memory multi-track circular and linear Manhattan plotting in Python.

Kevin Esoh, Fujr Osman, Cesar Fortes-Lima, Gordon A Awandare, Ambroise Wonkam

McKusick-Nathans Institute and Department of Genetic Medicine, Johns Hopkins University School of Medicine, Baltimore MD 21205, United States. · West African Centre for Cell Biology of Infectious Pathogens (WACCBIP), College of Basic and Applied Sciences, University of Ghana, Legon, Box LG 54, Ghana.

Key points

From the paper's conclusion
  • We present pycmplot, a Python package for generating multi-track linear and Circos-style circular Manhattan plots from one or more GWAS summary statistics. On a 10-million-variant scan, pycmplot is 5.5× faster and uses ∼5× less memory than CMplot for linear Manhattan plotting, 1.6× faster (and 3× faster with optional pre-filtering) for circular Manhattan, and 7.7× faster for qq rendering. Multi-track comparisons of two summary statistics are 4.5× faster (linear) and 3.5× faster (circular) than CMplot's equivalent mode. Transparent hg18/hg19 → hg38 liftover lets users mix coordinate systems within a single plot, and a lightweight bundle of Ensembl GFF3 gene information files (hg19 and hg38) enables nearest gene annotation.

Abstract

MOTIVATION: Manhattan plots remain the standard visual summary for genome-wide association studies and other per-variant scans (iHS, FST, XP-EHH). Existing Manhattan visualization tools either lack multi-track support (gwaslab, qmplot, and qqman) or do not provide a Circos-style multi-track circular Manhattan view. CMplot (R) does, but its memory and runtime costs on multi-million-variant inputs are substantial. RESULTS: We present pycmplot, a Python package for generating multi-track linear and Circos-style circular Manhattan plots from one or more GWAS summary statistics. On a 10-million-variant scan, pycmplot is 5.5× faster and uses ∼5× less memory than CMplot for linear Manhattan plotting, 1.6× faster (and 3× faster with optional pre-filtering) for circular Manhattan, and 7.7× faster for qq rendering. Multi-track comparisons of two summary statistics are 4.5× faster (linear) and 3.5× faster (circular) than CMplot's equivalent mode. Transparent hg18/hg19 → hg38 liftover lets users mix coordinate systems within a single plot, and a lightweight bundle of Ensembl GFF3 gene information files (hg19 and hg38) enables nearest gene annotation. AVAILABILITY AND IMPLEMENTATION: pycmplot is freely available under the MIT license at https://github.com/esohkevin/pycmplot; and from PyPI (pip install pycmplot). Documentation is at https://pycmplot.readthedocs.io.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

pycmplot: fast, low-memory multi-track circular and linear Manhattan plotting in Python — Science Skim