ecotyper: EcoTyper in Python

A Python/AnnData port of EcoTyper, the framework for identifying cell states and multicellular communities (ecotypes) in bulk, single-cell and spatial transcriptomes (Luca, Steen et al., Cell 2021).

The port reproduces the R implementation. On all six README tutorials every discrete output (states, ecotypes, ranks, gene sets) is identical to R’s, and every numeric value agrees to within 8e-11 relative. See Benchmarks for the comparison and timings.

Installation

Set up the environment and the R repository’s example data and models.

Installation
Quickstart

Recover cell states and ecotypes in an AnnData object in five lines.

Quickstart
Tutorials

Step by step through the six EcoTyper tutorials on the bundled data.

Tutorials
Benchmarks

Python vs R: wall time, memory and agreement, as charts.

Benchmarks: Python vs R

Credit and license

EcoTyper was developed by Bogdan A. Luca, Chloé B. Steen, Aaron M. Newman and colleagues. If you use it, cite:

This port is a derivative of EcoTyper, distributed under the same Stanford non-commercial license: free for non-commercial use only. It is an independent port, not affiliated with or endorsed by the EcoTyper authors. CIBERSORTx is closed source and is not part of the port. Steps that need it take precomputed CIBERSORTx outputs as inputs.