Skip to main content

M3

M3 is a deep generative framework for condition-aware integration, patient-level inference, and multi-resolution interpretation of multimodal single-cell omics data across many biological conditions and samples.

From one shared, condition-aware representation, M3 delivers six downstream tasks: factorised dimension reduction, condition-aware batch correction, mosaic integration + imputation, patient-level condition inference, patient/sample generation, and multi-resolution attribution.

📖 Documentation & tutorials: https://pyanglab.github.io/M3/

Install

Python

pip install m3-sc      # imported as `import m3`

PyTorch comes along automatically. If you need a build matched to a specific CUDA version, install it first and pip will keep it:

pip install torch --index-url https://download.pytorch.org/whl/cu121
pip install m3-sc

For the development version: pip install "git+https://github.com/PYangLab/M3.git".

R

install.packages("remotes")
remotes::install_github("PYangLab/M3", subdir = "m3-r")

The R package provisions its own Python engine through basilisk on first use — no manual Python / PyTorch setup, and R and Python produce identical results.

Quickstart (Python)

import m3

data  = m3.datasets.liu_demo()                                  # built-in demo
model = m3.M3(data, condition_keys=["cond_group"],
              celltype_key="mergedcelltype").train()
emb   = model.embedding(part="bio")                             # integrated embedding

Repository layout

Path What
src/m3/ the m3-sc Python package (PyTorch engine vendored under _engine/)
m3-r/ the R package — library(m3), basilisk-wrapped, same engine
website/ documentation site (MkDocs Material); mkdocs serve -f website/mkdocs.yml
.github/workflows/deploy.yml builds + publishes the docs to GitHub Pages
tests/ Python test suite

License

See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m3_sc-0.3.0.tar.gz (29.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m3_sc-0.3.0-py3-none-any.whl (29.8 MB view details)

Uploaded Python 3

File details

Details for the file m3_sc-0.3.0.tar.gz.

File metadata

  • Download URL: m3_sc-0.3.0.tar.gz
  • Upload date:
  • Size: 29.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for m3_sc-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e8fef113f5e7131cfd1deea49d35658be708e0f18f753ba6389c544ea5e75141
MD5 8e7799f30887cd40e296d52d2f24d6b3
BLAKE2b-256 679b5f1b0ca76c80c1654bf5b8aef4809a51d1a5452f2a7be96fd66de21a244d

See more details on using hashes here.

Provenance

The following attestation bundles were made for m3_sc-0.3.0.tar.gz:

Publisher: publish.yml on PYangLab/M3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file m3_sc-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: m3_sc-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 29.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for m3_sc-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9382e23cd08e75c224ea117186800779980dff37a492a3779eb37d3171f5e59
MD5 89493e4a50ae6c240ce3b3a43c8329af
BLAKE2b-256 274bfeb896356857c754548aed3733f80cb447f30180ed0529ce180bde8bbce3

See more details on using hashes here.

Provenance

The following attestation bundles were made for m3_sc-0.3.0-py3-none-any.whl:

Publisher: publish.yml on PYangLab/M3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

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