Command-Line Interface
pycmplot exposes a full command-line interface that mirrors the Python API.
After installation, the pycmplot command is available in your PATH.
pycmplot -h # print full help
Input / output options
Flag |
Default |
Description |
|---|---|---|
|
required |
Comma-separated list of summary statistics files (gzip supported). |
|
required |
Comma-separated track labels, one per file in |
|
|
Output directory. Created if it does not exist. |
|
|
Output image format: |
|
|
Resolution in dots per inch (raster formats only). |
Column auto-detection options
pycmplot infers column names automatically. Use these flags only if your column names fall outside the recognised defaults.
Flag |
Default |
Description |
|---|---|---|
|
auto |
Name of the chromosome column. |
|
auto |
Name of the base-pair position column. |
|
auto |
Name of the variant/marker ID column. |
|
auto |
Name of the p-value (or test statistic) column. |
|
auto |
Field delimiter ( |
|
auto |
Name of an in-file genome build column (values: |
|
none |
Comma-separated list of per-file genome builds in the same order as
|
Plotting behaviour options
Flag |
Default |
Description |
|---|---|---|
|
|
Plot mode: |
|
off |
Plot –log₁₀(p) instead of raw p-values. |
|
off |
Draw a genome-wide significance threshold line (auto 0.05/N). |
|
|
Explicit significance threshold value; overrides |
|
off |
Draw a suggestive significance threshold line. |
|
off |
Highlight significant loci with a distinct colour. |
|
|
Colour for highlighted variants. |
|
off |
Draw a vertical dashed line through each highlighted locus. |
|
|
Colour of the highlight line. |
|
|
P-value threshold for highlighting. |
|
|
Annotate significant hits with |
|
off |
Exclude variants with p-value above this threshold (e.g. |
|
input order |
Sort tracks by |
|
(none) |
Title string printed above the plot. |
QQ plot options
Flag |
Default |
Description |
|---|---|---|
|
off |
Generate QQ plot(s) alongside the Manhattan plot. |
|
off |
Save one QQ-plot file per summary statistics file. |
|
off |
Overlay all sumstats on a single shared QQ axes, with λ in the legend. |
|
|
Number of columns in the combined QQ-plot grid. |
|
off |
Enable log-uniform p-value thinning for fast QQ plotting. |
|
|
P-value threshold below which all points are kept (points above are downsampled when thinning is enabled). |
|
|
Maximum points plotted per QQ track after thinning. |
Example commands
Single-trait linear Manhattan plot
pycmplot \
--sum_stats HbF.tsv.gz \
--labels HbF \
--logp \
--signif_line \
--highlight \
--annotate GENE \
--output_dir ./results \
--output_format png \
--dpi 300
Three-trait stacked linear Manhattan plot
pycmplot \
--sum_stats HbF.tsv.gz,MCV.txt.gz,MCH.tsv.gz \
--labels HbF,MCV,MCH \
--logp \
--signif_line \
--highlight \
--annotate GENE \
--trim_pval 0.01 \
--output_dir ./results
Circular Manhattan plot
pycmplot \
--sum_stats HbF.tsv.gz,MCV.tsv.gz \
--labels HbF,MCV \
--mode cm \
--trim_pval 0.01 \
--logp \
--signif_threshold \
--plot_title "RBC Traits" \
--output_dir ./results
Manhattan plot with companion QQ plots
pycmplot \
--sum_stats HbF.tsv.gz,MCV.tsv.gz,MCH.tsv.gz \
--labels HbF,MCV,MCH \
--logp \
--signif_line \
--annotate GENE \
--qq_plot \
--qq_thin \
--qq_ncols 3 \
--output_dir ./results
Supplying per-file genome builds
When summary statistics files do not carry a BUILD column, supply the
builds in the same order as --sum_stats:
pycmplot \
--sum_stats hg19_study.tsv.gz,hg38_study.tsv.gz \
--labels Study_A,Study_B \
--build hg19,hg38 \
--logp \
--annotate GENE \
--output_dir ./results