_ _ .--.
_ __ ___ ___ | | __ _ _ __ ___ ___ | | __ _ _/ \___
| '_ ` _ \ / _ \| |/ _` | '_ ` _ \ / _ \| |/ _` | ( o )
| | | | | | (_) | | (_| | | | | | | (_) | | (_| | \___..___/
|_| |_| |_|\___/|_|\__,_|_| |_| |_|\___/|_|\__,_| ||
A Python cytogenetics plotting tool for Oxford Nanopore data. One input in, one self-contained HTML report out. molamola picks between two report types based on its input:
- a VCF with
##INFO=<ID=SVTYPE,...>→ SV / cytogenetics report (long-read SV VCFs from Sniffles2 / cuteSV / SVIM / pbsv / NanoVar); - a mosdepth
regions.bed.gz(via--mosdepth) → karyotype coverage report (genome-wide log2 relative-depth scatter + rolling-median smooth, with an optional BAF panel beneath when paired with a small-variant VCF — haplotype-resolved if that VCF is phased).
Figures embedded as base64 PNGs — no external assets, opens offline.
Full documentation: https://martinandclaude.github.io/molamola/
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
Or for development from a clone:
git clone https://github.com/martinandclaude/molamola.git
cd molamola
pip install -e .[dev]
pytest -v
Quick start
# Long-read SV VCF (Sniffles2 etc.) → cytogenetics report
molamola --vcf sample.sniffles.vcf --out reports/
open reports/sample.report.html
# Mosdepth output → karyotype coverage report (genome-wide log2 depth)
molamola --mosdepth sample.regions.bed.gz --reference hg38 --out reports/
open reports/sample.karyotype.report.html
# Add a BAF panel beneath the genome-wide depth panel
molamola --mosdepth sample.regions.bed.gz --vcf sample.phased.vcf.gz \
--reference hg38 --out reports/
Either --vcf or --mosdepth is required; --out <directory> is required too (molamola refuses rather than silently writing the report next to the input file). With --vcf, SV mode is selected from the VCF header (##INFO=<ID=SVTYPE>); anything else is refused rather than plotted on a guess. With --mosdepth, karyotype coverage mode runs and any accompanying --vcf is used as the BAF source. Karyotype mode expects uniform-bin mosdepth runs (mosdepth --by <int>).
See the docs for example output, the full CLI reference, filter explanations, and worked examples.
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 now a cytogenetics tool only. Install
molamola==0.5.1if you need them.
Acknowledgements
- Sniffles2, cuteSV, SVIM, pbsv, NanoVar — long-read SV callers.
- WhatsHap, HiPhase — long-read phasing, which the BAF panel uses opportunistically when present.
- mosdepth — per-bin coverage for karyotype mode.
- pyCirclize — circos plot.
- matplotlib, numpy.
- bcftools / samtools / htslib — VCF pre-processing helpers.
- mosdepth — per-bin coverage input to karyotype mode.
- UCSC Genome Browser — hg38 and T2T-CHM13v2.0 cytobands.
- iconsdb.com — header fish icon (deep-pink, mirrored).
License
MIT.
Metadata
Release files for molamola 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| molamola-0.6.0.tar.gz | 14.2 MB | Without provenance | Details for molamola-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| molamola-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for molamola-0.6.0-py3-none-any.whl |
Total release size: 28.3 MB
Release files / molamola-0.6.0.tar.gz
| Download URL | molamola-0.6.0.tar.gz |
|---|---|
| Size | 14.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d67fe27266cfd3c3914488d47078f04582fa61239027fa308fb4b41ecb4a8d06
|
|
BLAKE2b-256 checksum How to use checksums |
8f206a8f9a1c70285fefdd6aee353cce931c5fd5cc7f71130ae4d82e78140e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / molamola-0.6.0-py3-none-any.whl
| Download URL | molamola-0.6.0-py3-none-any.whl |
|---|---|
| Size | 14.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d9b18d6bc4f8ca0195ffe87cf28369c7d57eef2db49dee535a1a35defca87ee
|
|
BLAKE2b-256 checksum How to use checksums |
5bdd803bcf28e10d22ce7c12cd2b56475f163b676f731481dd3dff6e6d94f98a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for molamola 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.