MiTo (Mitochondrial single-cell lineage tracing Toolkit)
Mitochondrial single-cell multi-omics in Python.
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: mitochondrial lineage tracing and single-cell multi-omics. Nat Comm (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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scmito-2.0.0.tar.gz | 1.7 MB | With provenance | Details for scmito-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scmito-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for scmito-2.0.0-py3-none-any.whl |
Total release size: 3.3 MB
Release files / scmito-2.0.0.tar.gz
| Download URL | scmito-2.0.0.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f39bb0a4a7794cdffe434330fc18e89e1f40356eccbefaee3d0f5c1f56b1bde8
|
|
BLAKE2b-256 checksum How to use checksums |
41bc1ccb9f38015e94435dd5b445e8fadef168ab730a028fb84b666b6176b6a3
|
| 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 Oct 21, 2026.
Transparency logRelease files / scmito-2.0.0-py3-none-any.whl
| Download URL | scmito-2.0.0-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c948d1ac91eb7109b514f50bcf7fcf242fab701b1d46d3dd938bc11aa45a66fd
|
|
BLAKE2b-256 checksum How to use checksums |
a4491e553cb718a27a3c54f1d1ba9c33977bf4a4e5e7da430a725445651adec0
|
| 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 Oct 21, 2026.
Transparency logSecurity for scmito 2.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for scmito-2.0.0.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 Oct 21, 2026.
Transparency logA 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.