Tangram [Biancalani et al., 2021] (Python class Tangram) maps single-cell RNA-seq data to spatial data, permitting deconvolution of cell types in spatial data like Visium.

This is a reimplementation of Tangram, which can originally be found here.


Tangram learns a matrix \(M\) with shape (\(n_{sc} \times n_{sp}\)), in which each row sums to 1. Thus this matrix can be viewed as a map from single cells to the spatial observations.