Skip to main content

MultiMM

MultiMM is an OpenMM-based tool for building 3D models of chromatin, from single genomic regions to the whole human genome. It is multiscale: one energy function covers nucleosomes, loops and TADs, A/B compartments, chromosome territories and the nucleus. You give it loop calls, and optionally compartments or a Hi-C map, and it returns a 3D structure that you can open in any molecular viewer. The model is fast because it starts from a compact Hilbert-curve conformation and runs on GPUs through OpenMM.

MultiMM workflow

Scales of modelling

One energy function ties together five scales. Each is a different way of looking at the same chain of beads.

Scale What it means How MultiMM models it
Nucleosome / fibre DNA wrapped around histones, forming a ~10 nm fibre Beads joined by bonds and angle (stiffness) terms, with excluded volume so beads do not overlap
Loops Pairs of distant sites held together, e.g. by CTCF and cohesin Harmonic springs between loop anchors, taken from your loop file
TADs / Hi-C contacts Domains that fold together more than with their surroundings Optional restraints derived from a Hi-C map by Boltzmann inversion
A/B compartments Active (A) and inactive (B) chromatin that cluster by type Soft attraction between beads of the same compartment type
Chromosomes and nucleus Chromosome territories inside a nucleus, anchored at the lamina Container wall, lamina and chromosome-block forces

Install

From PyPI:

pip install MultiMM

With uv (fast, isolated):

uv pip install MultiMM          # into the current environment
uv tool install MultiMM         # or as a standalone command-line tool

For .hic Hi-C files, also install the optional reader (pip install "MultiMM[hic]"); .cool and .mcool files work out of the box.

Requires Python 3.10 or newer. Linux is the main platform; macOS works without CUDA. The documentation covers installation from source.

Run

All settings live in one config file:

MultiMM -c config.ini

Any setting can also be overridden on the command line, for example --n_beads 2000.

A config file

You only write what you want to change; everything else has a default.

[Main]
CHROM            = chr1
LOC_START        = 160_000_000
LOC_END          = 173_000_000
N_BEADS          = 5000

LOOPS_PATH       = data/loops.bedpe          ; chromatin loops
COMPARTMENT_PATH = data/compartments.bed     ; optional A/B compartments
COB_USE_COMPARTMENT_BLOCKS = True

OUT_PATH         = results/chr1_region

Documentation

The full documentation, with the mathematics of every force and a table of all arguments, is written with MkDocs and its source is in docs/. To read it locally:

pip install mkdocs-material
mkdocs serve

Development

git clone https://github.com/SFGLab/MultiMM.git
cd MultiMM
uv sync --extra dev             # or: pip install -e ".[dev]"

Run the tests (all are quick checks, no full simulation, about half a minute):

uv run pytest -q                # or: pytest -q
uv run pytest tests/test_force_signs.py   # a single file

Console output has four levels: no flag shows only the pipeline stages and progress bars; -v adds details, -vv adds statistics tables, -vvv is fully verbose.

Citation

If you use MultiMM in your research, please cite:

Korsak, Sevastianos, Krzysztof Banecki, and Dariusz Plewczynski. "Multiscale molecular modeling of chromatin with MultiMM: From nucleosomes to the whole genome." Computational and Structural Biotechnology Journal 23 (2024): 3537–3548.

License

MultiMM is free software, distributed under the GNU General Public License v3.0.

Metadata

Release files for MultiMM 2.1.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 MultiMM 2.1.0
File Size Uploaded Provenance Actions
multimm-2.1.0.tar.gz 1.5 MB Without provenance Details for multimm-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 3.0 MB

Release files / multimm-2.1.0.tar.gz

Download URL multimm-2.1.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
2b4803b2a1672797765b63aeecd6fd20fbff715221e35266c2f63a881454491f
BLAKE2b-256 checksum
How to use checksums
17b8614c256c162745f47f6d9f1b17468093b80f9620933a1a5578ff169241ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / multimm-2.1.0-py3-none-any.whl

Download URL multimm-2.1.0-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8a0455a555f317fb4288880fb6abffea1d27216b5fc298bbff40f12b6be0bf6f
BLAKE2b-256 checksum
How to use checksums
52259e1c6770bb5b3042f0b37472fbbf40f12b235c24b560e700ea5044203d30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for MultiMM 2.1.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