Skip to main content
                 _                       _              .--.
 _ __ ___   ___ | | __ _ _ __ ___   ___ | | __ _      _/    \___
| '_ ` _ \ / _ \| |/ _` | '_ ` _ \ / _ \| |/ _` |    ( o        )
| | | | | | (_) | | (_| | | | | | | (_) | | (_| |     \___..___/
|_| |_| |_|\___/|_|\__,_|_| |_| |_|\___/|_|\__,_|         ||

A Python plotting tool for Oxford Nanopore variation data. One input in, one self-contained HTML report out. molamola picks between three plot 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 VCF with ##INFO=<ID=CSQ,...> + ##FORMAT=<ID=PS,...> → per-gene phased-haplotype panels (phased + VEP-annotated small-variant VCFs from WhatsHap / HiPhase);
  • 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

# Phased + VEP-annotated VCF → compound-het workup, all candidate genes
molamola --vcf sample.phased.vep.vcf.gz --out reports/
open reports/sample.compound_het.report.html

# Just one gene from a phased + VEP VCF
molamola --vcf sample.phased.vep.vcf.gz --gene NEB --out reports/

# Mosdepth output → karyotype coverage report (genome-wide CN)
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, the plot mode is auto-detected from the VCF header (##INFO=<ID=SVTYPE> → SV; ##INFO=<ID=CSQ> + ##FORMAT=<ID=PS> → compound-het; otherwise refused). 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, VEP annotation prep, the full CLI reference, filter explanations, and worked examples.

Acknowledgements

License

MIT.

Metadata

Release files for molamola 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for molamola 0.5.1
File Size Uploaded Provenance Actions
molamola-0.5.1.tar.gz 28.9 MB Without provenance Details for molamola-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for molamola 0.5.1
File Interpreter ABI Platform Actions
molamola-0.5.1-py3-none-any.whl Python 3 none any Details for molamola-0.5.1-py3-none-any.whl

Total release size: 57.8 MB

Release files / molamola-0.5.1.tar.gz

Download URL molamola-0.5.1.tar.gz
Size 28.9 MB
Tags Source
SHA-256 checksum
How to use checksums
bc87271a9c55a496f5bd4a7eab393b75841e25c82ea04f2ff02371bb1559f3c6
BLAKE2b-256 checksum
How to use checksums
4a2e98ee6100d1448014218f82587c278048f418524dd4aece684ef4100e34f1
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.5.1-py3-none-any.whl

Download URL molamola-0.5.1-py3-none-any.whl
Size 28.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b7325b39447bea345c04b178d8e9c8905969767d2bcd5a3c373d5e332ea420d8
BLAKE2b-256 checksum
How to use checksums
e3ff83a234070f0378a4c52ed3044339971398b1f08dc7d63841e0ea83cc9310
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.5.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page