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 CN scatter + rolling-median smooth, with an optional BAF panel beneath when paired with a small-variant VCF).

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 CN scatter
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.4.0

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.4.0
File Size Uploaded Provenance Actions
molamola-0.4.0.tar.gz 28.9 MB Without provenance Details for molamola-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 57.8 MB

Release files / molamola-0.4.0.tar.gz

Download URL molamola-0.4.0.tar.gz
Size 28.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ee2fe3ba593dd53baeb499a6c14334ad4d849c0ddabf94069d16a4429d0c1631
BLAKE2b-256 checksum
How to use checksums
73063f8aa25b94c81a1643712fd03d9e0884ba3ae90454fb1652e706b89c693f
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.4.0-py3-none-any.whl

Download URL molamola-0.4.0-py3-none-any.whl
Size 28.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7539d0046257f660b17c2d39c1d6389d4bfbe1c2b87a5629c820f5f2c808c096
BLAKE2b-256 checksum
How to use checksums
f3b0f15333c94a4a629a877ddde8a47ed05771e5e7527bba2b2704d4dafa8784
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.4.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.

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