Skip to content

Learning cell fate landscapes from spatial transcriptomics using Fused Gromov-Wasserstein

License

Notifications You must be signed in to change notification settings

cantinilab/stories

Repository files navigation

Learning cell fate landscapes from spatial transcriptomics using Fused Gromov-Wasserstein

codecov Tests Code style: black Documentation Status PyPI version

STORIES is a trajectory inference method capable of learning a causal model of cellular differentiation from spatial transcriptomics through time using Fused Gromov-Wasserstein. STORIES learns a potential function that defines each cell's stage of differentiation and allows one to predict the evolution of cells at future time points. In addition, STORIES uncovers possible driver genes and transcriptional regulators of cellular differentiation.

Read the preprint here and the documentation here!

STORIES is based on the Scverse ecosystem, making it easy to interface with existing tools for single-cell analysis such as Scanpy and CellRank. In addition, STORIES benefits from the JAX ecosystem for deep learning and OT computation, enabling the fast handling of large datasets.

introductory figure

Install the package

  • STORIES is implemented as a Python package seamlessly integrated within the scverse ecosystem. It relies on JAX for fast GPU computations and JIT compilation, and OTT for Optimal Transport computations.
  • System requirements: Python >= 3.10. Continuously tested on Ubuntu 22.04 LTS. Installation time <1mn. Benefits from CUDA or TPU for large datasets (on a GPU A40 and for 800k cells, training time ~ 30mn).

via PyPI (recommended)

pip install stories-jax

By default, JAX is installed for CPU. To get the GPU version, you can use the following (refer to JAX's docs). For use in Google Colab, you'll need to restart the kernel after this command.

pip install stories-jax jax[cuda12]

via GitHub (development version)

git clone git@github.com:cantinilab/stories.git
pip install ./stories/

Getting started

STORIES takes as an input an AnnData object, where omics information and spatial coordinates are stored in obsm, and obs contains time information, and optionally a proliferation weight. Visit the Getting started and API sections for tutorials and documentation.

About

Learning cell fate landscapes from spatial transcriptomics using Fused Gromov-Wasserstein

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages