Skip to main content
MiTo

MiTo (Mitochondrial single-cell lineage tracing Toolkit)

Mitochondrial single-cell multi-omics in Python.

PyPI Python Tests Documentation License: MIT

MiTo infers clonal ancestries in single-cell data from natural mtDNA variation.

The framework converts MAESTER, scmtATAC-seq and ReDeeM pre-processing output into Allele Frequency Matrices (AnnData objects), selects the mtDNA variants that mark lineages, genotypes individual cells, and infers mitochondrial phylogenies and clones for downstream multi-omic analysis.

Versions. This README documents MiTo 2.x. The original API (1.0.0), used for the analyses of the MiTo paper, stays available: pip install "scmito<2" and its documentation.

Installation

pip install scmito

Requires Python 3.11+.

import mito as mt
print(mt.__version__)

Quick start

import mito as mt

# Allele Frequency Matrix from pre-processing output (molecule counts, AD / DP layers)
afm = mt.io.make_afm('path/to/maegatk_output', scLT_system='MAESTER', pp_method='maegatk')

# Cell and variant filters, single-cell genotypes, distances in mtDNA mutation space
mt.pp.filter_cells(afm, cell_filter='filter2')     # 'filter1' (default) for ReDeeM / mtscATAC
mt.pp.filter_afm(afm)

# Phylogeny and clones (with clade support from count resampling)
tree = mt.tl.build_tree(afm, solver='UPMGA')
mt.tl.annotate_clones(tree, afm)                  # min_support=0.5 for higher precision

# Visualization
mt.pl.plot_tree(tree, annot='MiTo_clone')

The same calls, with the same defaults, run on the three assays:

Assay make_afm(scLT_system=, pp_method=) What the reader does
MAESTER 'MAESTER', 'maegatk' UMI consensus counts, as they are
ReDeeM 'ReDeeM', 'redeem-v' consensus molecules, 9 bp trimmed from fragment ends
mtscATAC 'mtscATAC', 'mgatk' reads to molecules: alternative molecules read by both mates, coverage / reads per molecule (estimated from the strand counts)

filter_afm then selects variants whose per-cell counts are over-dispersed relative to sequencing noise (redeemR Filter-2, at most max_candidates=1000), keeps those whose carriers are clonal on the cell kNN graph, and genotypes each cell against each variant's own error rate.

Tutorials:

  • Getting started: the pipeline on simulated clones.
  • Loading data: the AFM, and how to build it from maegatk, mgatk, RedeemV or counts tables.
  • Benchmark: simulated data, MAESTER, and ReDeeM vs mtscATAC on the same cells, against ground-truth lineage barcodes.

Moving from MiTo 1.0.0: see the migration guide and CHANGELOG.md.

API

MiTo follows the scverse layout, composing with scanpy and anndata:

Module Purpose
io Build AFMs from pre-processing output, read/write Newick trees
pp Cell and variant filtering, genotyping, distances, kNN graphs, embeddings
tl Tree building, clade support, clonal annotation, fate bias
pl Trees, heatmaps, embeddings, coverage and variant-spectrum plots
ut Metrics, MT annotations, simulation, helpers

Pre-processing is done by nf-MiTo.

Full reference: MiTo docs.

Development

git clone https://github.com/andrecossa5/MiTo.git
cd MiTo
pip install -e ".[test]"
pytest

Reproducing the paper

The analyses of the MiTo paper run with MiTo 1.0.0, the original API (pip install "scmito<2", documentation), and the matching nf-MiTo release; the analysis code and the conda recipe are in MiTo_benchmark_repro. MiTo 2.x changes the variant pipeline and the clone annotation (see the migration guide and the CHANGELOG), so it does not reproduce those numbers exactly.

Citation

If MiTo is useful in your work, please cite:

Cossa, A., Dalmasso, A. et al. MiTo: tracing the phenotypic evolution of somatic cell lineages via mitochondrial single-cell multi-omics. Nat Commun 17, 6794 (2026). https://doi.org/10.1038/s41467-026-71607-5

MiTo builds on the Cassiopeia package for phylogeny reconstruction and data infrastructure. Please, cite it as well.

Releases

See CHANGELOG.md.

License

MIT — see LICENSE.

Metadata

Release files for scmito 2.0.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 scmito 2.0.1
File Size Uploaded Provenance Actions
scmito-2.0.1.tar.gz 1.7 MB With provenance Details for scmito-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 3.3 MB

Release files / scmito-2.0.1.tar.gz

Download URL scmito-2.0.1.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
2c652d6f5c4dafb212fe9f001b316fab54c7f27700129cca9dc625bb49a7756f
BLAKE2b-256 checksum
How to use checksums
5efb541c065a33cdeabb7a2697054d57f496b361ad6784ff29c2c24da15f3e16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / scmito-2.0.1-py3-none-any.whl

Download URL scmito-2.0.1-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8e721d4a99f170ce81b398c3bb9b1130919004ca8b0fb39c48125271af65d170
BLAKE2b-256 checksum
How to use checksums
62ea66aa3ae35b007d601952b875f223e6c752f9efca7c98e80ee8ee3dde1588
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for scmito 2.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scmito-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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