MiTo¶
Mitochondrial lineage tracing and single-cell multi-omics in Python
MiTo turns mitochondrial DNA variation into single-cell phylogenies. It reads
MAESTER (maegatk), mtscATAC (mgatk) and ReDeeM (RedeemV) output into an
AnnData Allele Frequency Matrix of molecule counts, selects
informative MT-SNVs, calls single-cell genotypes, reconstructs the cell phylogeny, and
annotates its clones with the support of their clades - with the same calls and
defaults for the three assays.
pip install scmito
Note
This is the documentation of 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. See Migrating from 1.0.0 to move between them.
The pipeline in four calls, on simulated clones.
The AFM, and how to build it from maegatk, mgatk, RedeemV or counts tables.
The stages from the AFM to annotated clones, and the choices that depend on the data.
Simulated data, MAESTER, and ReDeeM vs mtscATAC on the same cells.
Clones of lung tumor, normal tissue and blood from mtscATAC-seq, annotated with SnapATAC2.
Set up MiTo and its dependencies.
Every public function, organised by module.
Background, citation and related work.
Overview¶
The package follows the scverse layout, so it composes with scanpy and
anndata:
Module |
Purpose |
|---|---|
|
Build AFMs from pipeline output, read and write Newick trees |
|
Cell and variant filtering, genotype calling, distances, kNN graphs, embeddings |
|
Tree building, clade support, clonal inference, clustering, fate bias |
|
Trees, heatmaps, embeddings, coverage and variant-spectrum plots |
|
Metrics (kBET, ARI, NMI, CI/RI), MT annotations, helpers |
At a glance¶
import scanpy as sc
import mito as mt
afm = sc.read('afm_unfiltered.h5ad')
mt.pp.filter_cells(afm, cell_filter='filter2')
mt.pp.filter_afm(afm)
tree = mt.tl.build_tree(afm, solver='UPMGA')
mt.tl.annotate_clones(tree, afm)
mt.pl.plot_tree(tree, annot='MiTo_clone')