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.

Getting started

The pipeline in four calls, on simulated clones.

Getting started
Loading data

The AFM, and how to build it from maegatk, mgatk, RedeemV or counts tables.

Loading data
How MiTo works

The stages from the AFM to annotated clones, and the choices that depend on the data.

How MiTo works
Benchmark

Simulated data, MAESTER, and ReDeeM vs mtscATAC on the same cells.

Benchmark
Installation

Set up MiTo and its dependencies.

Installation
API reference

Every public function, organised by module.

APIs
About

Background, citation and related work.

About

Overview

The package follows the scverse layout, so it composes with scanpy and anndata:

Module

Purpose

mt.io

Build AFMs from pipeline output, read and write Newick trees

mt.pp

Cell and variant filtering, genotype calling, distances, kNN graphs, embeddings

mt.tl

Tree building, clade support, clonal inference, clustering, fate bias

mt.pl

Trees, heatmaps, embeddings, coverage and variant-spectrum plots

mt.ut

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')

Index