Skip to main content

LineageOT

Project description

LineageOT

DOI

This code accompanies the paper https://www.nature.com/articles/s41467-021-25133-1. Documentation is available at https://lineageot.readthedocs.io/.

Requirements and installation guide

Installing dependencies

First, clone this repository with

git clone https://github.com/aforr/LineageOT

Dependencies are listed in conda_requirements.yml as well as in pip_requirements.txt; earlier versions of the packages may work but have not been tested. If you are using Anaconda, they can be installed with

conda env create -f conda_requirements.yml

Installation may take a few minutes. Activate the environment with

conda activate lineageOT

If you are using pip and not Anaconda, install dependencies with

pip install numpy cython
pip install -r pip_requirements.txt
Installing LineageOT

Once you have set up and activated the environment, install the most recent LineageOT by running

pip install .

from the repository's base directory. Alternatively, install from PyPI with

pip install lineageot

No specific operating system is required, though there may be a bug in one of the dependencies in certain versions of MacOS (https://github.com/PythonOT/POT/issues/93). The code has been tested on OS X 10.14.6 and Ubuntu 16.04.

Examples

An example of LineageOT applied to simulated data is in examples/simulation_demo.ipynb. Running the notebook for one simulation type took around 10 minutes on a "normal" desktop.

To fit LineageOT couplings in your own system, follow the steps in examples/pipeline_demo.ipynb replacing the synthetic AnnData object with your data. We recommend then using the downstream analysis tools available in the Waddington-OT package: https://broadinstitute.github.io/wot/.

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

lineageot-0.2.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lineageot-0.2.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file lineageot-0.2.0.tar.gz.

File metadata

  • Download URL: lineageot-0.2.0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3

File hashes

Hashes for lineageot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 881e6f50054e556ef916e880a08d827ac35a1153e0669b684a0f24d5aa7dbf34
MD5 67f67d0f6e1b85edfc4d588060d64687
BLAKE2b-256 b8c5a8684b5d88e4399af9529a44df741174e043d3e0e0652dafeece841d847b

See more details on using hashes here.

File details

Details for the file lineageot-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lineageot-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3

File hashes

Hashes for lineageot-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d8bacd7cf4434cd2342aec4b224b3eba51793edccda1815f3f4e1eb9abc4554
MD5 29bd431ca6c479d073f386ffa89a75b9
BLAKE2b-256 29bd4bc2d17413d83af63501572fedb8310a0a7aac69a6a76ec17c8cab1cc256

See more details on using hashes here.

Supported by

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