molamola selects SV mode from the VCF header and karyotype mode from the --mosdepth flag:
molamola --vcf path/to/sample.sniffles.vcf --out reports/
open reports/sample.report.html # SV mode
molamola --mosdepth path/to/sample.regions.bed.gz --out reports/
open reports/sample.karyotype.report.html # karyotype mode
--out DIR is required — molamola refuses rather than silently writing the report next to the input file. The directory is created if it does not exist.
molamola --vcf sample.sniffles.vcf --out reports/
The run lists the candidate rearrangements on stdout, numbered as on the circos:
Rearrangements: 1 candidate (1 translocation), 10 paired in repeats, 83 single junctions
candidate 1: t(8;21)(q21.3;q22.12) RUNX1::RUNX1T1
Each candidate gets a derivative-chromosome panel below the circos in the report. Add --png to also write them as <sample>.report.rearrangement_<n>.png. See Rearrangement tiers for how candidates are chosen. On a normal Sniffles2 genome, expect a handful of large inversion calls here; these are common polymorphisms or recurrent caller artefacts.
molamola --vcf sample.sniffles.vcf --only-sv-chroms --out reports/
Draws only the chromosomes that carry a rearrangement, so the disc isn’t spent on chromosomes with nothing to show.
molamola --vcf sample.t2t.sniffles.vcf --reference t2t --out reports/
The bundled T2T cytoband (molamola/data/cytoBand.t2t.txt.gz) is selected automatically. The acrocentric noise flag flips off for T2T (those p-arms are real sequence on T2T-CHM13v2.0).
molamola --vcf sample.sniffles.vcf --out reports/ \
--focus chr7:57716411 --focus-window 10000
Output filenames get a .focus_<chr>_<pos> tag so focused renders don’t overwrite genome-wide ones. Each matched BND prints to stdout with the event it belongs to — t(7;17)(q11.23;q12) only when both junctions of a translocation were found, 7q11.23::17q12 (single junction) otherwise. Add --only-sv-chroms to reduce the circos to the chromosomes involved.
molamola --vcf sample.sniffles.vcf --focus chr7:q11.23 --out reports/
The second part of --focus can be either a position (chr7:57716411) or an ISCN cytoband (chr7:q11.23). Bands can also be specified as a prefix (chr1:p36) to match every sub-band on the chromosome whose name starts with that prefix.
--cov-ratio defaults to auto, computed as max(2.0, p99 of the in-sample max-coverage / median-coverage distribution). Pass a number (int or float) to fix the threshold instead — useful for cross-sample consistency:
molamola --vcf sample.sniffles.vcf --cov-ratio 2.5 --cov-vaf-max 0.45 \
--out reports/
molamola --vcf sample.sniffles.vcf --bin-size 5000000 --out reports/
5 Mb bins instead of 1 Mb — smoother visual, less detail.
--caller auto (default) detects the caller via INFO-field fingerprinting. Override when the fingerprint is ambiguous (bcftools-merged or re-headered VCFs):
molamola --vcf sample.cutesv.vcf --caller cutesv --out reports/
Karyotype mode is selected by --mosdepth, not by a VCF header. The input is a mosdepth regions.bed.gz from a uniform-bin run — generate it with a single fixed bin size:
mosdepth --by 1000 --no-per-base --fast-mode sample sample.bam
# → sample.regions.bed.gz
molamola --mosdepth sample.regions.bed.gz --reference hg38 --out reports/
Pair with a phased / unphased small-variant VCF (Clair3 / DeepVariant — not an SV or CNV VCF; those are refused):
molamola --mosdepth sample.regions.bed.gz \
--vcf sample.clair3.vcf.gz \
--reference hg38 --out reports/
The VCF is consumed only as the BAF source — its header shape is not used for dispatch. A BAF panel renders beneath the depth panel, sharing the x-axis — haplotype-resolved when the VCF carries FORMAT/PS + FORMAT/AD, per-site otherwise.
molamola --mosdepth sample.t2t.regions.bed.gz --reference t2t --out reports/
# keep more (noisier) het sites
molamola --mosdepth sample.regions.bed.gz --vcf sample.clair3.vcf.gz \
--min-baf-dp 5 --min-baf-gq 0 --reference hg38 --out reports/
molamola --mosdepth sample.regions.bed.gz \
--no-mask --no-gc --reference hg38 --out reports/
Useful as a diagnostic when you want to see the raw coverage shape without molamola’s exclusion mask or GC correction applied.
molamola --mosdepth sample.regions.bed.gz --reference hg38 --out reports/ \
--smooth-window-mb 20 --scatter-bin-kb 100
If the run-metadata shows an “AS suspected” chip, the sample looks like adaptive sampling and the CN scale is biased (anchored on the off-target background) — interpret the depth axis with care.