molamola

molamola

molamola

A Python cytogenetics plotting tool for Oxford Nanopore data. One input in, one self-contained HTML report out.

molamola picks the right report from its input — SV mode is auto-detected from the VCF header, karyotype mode is selected by the --mosdepth flag:

Install

pip install molamola

Or via conda — note that both bioconda and conda-forge channels are needed (pycirclize lives on conda-forge):

conda create -n molamola -c bioconda -c conda-forge molamola

Quick start

molamola --vcf sample.vcf --out reports/
# targeted / adaptive-sampling run: only chromosomes with a rearrangement
molamola --vcf sample.vcf --only-sv-chroms --out reports/
# or, for a coverage karyotype:
molamola --mosdepth sample.regions.bed.gz --reference hg38 --out reports/

The plot type is picked from the input (VCF header, or --mosdepth for karyotype mode). --out is required — molamola refuses rather than silently writing the report next to the input file. Output is a single self-contained HTML report — figures embedded as base64, no external assets, opens offline.

Example output

The circos below comes from running molamola’s SV mode on sample MH001 (ONT LSK114 library prep, aligned-read N50 10.4 kb, median autosomal coverage 54x).

Circos plot

SV circos plot

22 autosomes plus X and Y arranged around the disc, with greyscale ISCN cytobands on the rim and a red centromere. Inside the rim sit four 1-Mb-bin SV density rings – INS, DEL, DUP, INV, outermost first – so located events read on the rings while connections read across the disc. Each ribbon across the disc is a rearrangement: junctions are paired into translocations, inversions and insertions, and candidates – both junctions found, outside repeats – are drawn widest, numbered on the disc and named beside it in ISCN form. Single junctions, most of a normal genome’s arcs, stay faint. Ribbon colour encodes VAF as one of three discrete classes – blue 0-33 %, orange 33-66 %, near-black 66-100 % – chosen to stay distinct under colour-blindness. On this normal genome the only candidates are large inversion calls, which are common polymorphisms or recurrent caller artefacts.

Derivative-chromosome panels

Derivative-chromosome panel

Below the circos, each candidate gets a panel in the form a cytogeneticist reads a karyotype in: the normal chromosomes beside the derivatives the junctions build, breakpoints labelled with band and gene, and junctions with the fusion they make (5’::3’). Shown here for synthetic t(8;21) breakpoints – an illustration, not a sample.

Bundled references

molamola ships its own reference data inside molamola/data/:

Bundled-only by design: molamola does not auto-download or look up online. The bundled refs are reproducibly regeneratable from public sources via scripts/derive_karyotype_refs.py and scripts/derive_gene_tables.py in the repo.

Upgrading from 0.6: the SV report’s linear genome map is gone, so --png no longer writes <sample>.report.sv_map.png; it writes the circos and one <sample>.report.rearrangement_<n>.png per candidate panel instead.

Compound-het mode was removed after v0.5.1. The per-gene phased-haplotype panels for recessive-disease workup, and the bundled ClinVar and MANE Select references they needed, are gone. molamola is a cytogenetics tool now. Install molamola==0.5.1 if you need them.

Documentation

Source