Skip to main content

gWOT

Project description

gWOT: Global Waddington-OT

PyPI version Documentation Status

Principled trajectory inference for time-series data with limited samples by optimal transport.

Important: this README is currently under construction. Check back soon!

Introduction

Global Waddington-OT (gWOT) is a trajectory inference method for time-series data based on optimal transport (OT). Given a time-series of snapshot data, gWOT aims to estimate trajectory information in the form of a probability distribution over possible trajectories taken by cells.

As an example, we illustrate below a ground truth process where cell trajectories are known exactly (green). From this, independent snapshots are sampled at various temporal instants, each with limited sample resolution (red). From these data, gWOT aims to reconstruct trajectories as a law on paths (blue).

Example sample path reconstruction

The underlying model assumption on which gWOT is based is that the generative process is a drift-diffusion process with branching, in which the evolution of any cell over an infinitesimal time is described by the stochastic differential equation (SDE)

Diffusion-drift SDE.

Cells in this process also divide and die at rates beta(x, t) and delta(x, t) respectively.

Installation

To install, use pip install gwot.

Alternatively, clone this repository and cd gWOT && pip install .

Example application: bistable landscape with branching

Open In Colab

Paper

This code accompanies the paper (arXiv link)

Lavenant, H., Zhang, S., Kim, Y., & Schiebinger, G. (2021). Towards a mathematical theory of trajectory inference.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gwot-0.0.12.tar.gz (19.2 kB view hashes)

Uploaded Source

Built Distribution

gwot-0.0.12-py3-none-any.whl (21.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page