Skip to content

KenLauLab/pCreode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p-Creode

Build Status codecov PyPI version Downloads

Please let us know if you run into any issues or have any questions, through the issues page above or by email: bob.chen@vanderbilt.edu.

The term creode was coined by C.H. Waddington, combining the Greek words for “necessary” and “path” to describe the cell state transitional trajectories that define cell fate specification. Our algorithm aims to identify consensus routes from relatively noisy single-cell data and thus we named this algorithm p- (putative) Creode. Conceptually, p-Creode determines the geometric shape of a collection of dense data points (i.e., a data cloud) in order to reveal the underlying structure of transitional routes. p-Creode is compatible with Python 2 (2.7) and Python 3 (3.7).

Tutorial files: Jupyter notebook

Example: Data file

Installation for Mac or Linux

There are three ways to install p-Creode with Mac/Linux operating systems.

  1. Install from github
git clone git://github.com/KenLauLab/pCreode
cd pCreode
sudo pip install .

With this install, the jupyter notebook tutorial and the example scRNA-seq myeloid data set can be accessed in the notebook and data directories on your machine.

  1. Install from pip
sudo pip install pcreode

Then manually download the juypter notebook and example data file from the folders above. Simply right click on the download button and select "Save link as...".

Homebrew and anaconda install courtesy of Dan Skelly.

  1. Install through brew and github, and generate a contained conda environment for pcreode
brew install igraph
git clone git://github.com/KenLauLab/pCreode
cd pCreode
conda create -n pcreode python=3.7 numpy pandas matplotlib python-igraph jupyter cython
source activate pcreode
pip install .

Mac note:

For Mac users, Cairo may or may not be installed. If you have problems plotting, you need to install Cairo. Please follow the instructions in this link.

In addition, some Mac users have experienced issues installing igraph, here is a link to instructions for a direct install on a Mac

Installation for Windows

The problem with p-Creode installation on a Windows machine is with the python-igraph package, where there seems to be a bug in the setup. Hence, additional steps must be taken.

  1. Install Anaconda

  2. Download the user compile wheels of 2 packages (download the version as appropriate to your Python install) from this link, or follow these direct links to the necessary packages: pyCairo and python-igraph

  3. In Anaconda prompt, go to the directory where the whls are downloaded and install them:

pip install pycairo1.18.1cp37cp37mwin_amd64.whl
pip install python_igraph0.7.1.post6cp37cp37mwin_amd64.whl
  1. Install pcreode from github
git clone git://github.com/KenLauLab/pCreode
cd pCreode
pip install .

If you are having issues with igraph plotting of graphs please try:

conda install -c conda-forge python-igraph

You will still need to manually download the jupyter notebook and example data file from the folders above to be able to run the tutorial.

Tutorial

Please note that our tutorial for pCreode requires Scanpy for its plotting and preprocessing steps. Scanpy, described by Wolf et al., 2018, is a python package for the organization and analysis of large scale scRNA-seq data. Scanpy documentation is available here. Install scanpy with the following command:

pip install scanpy

Once p-Creode is installed you can access the tutorial by command line (conda environment if using PC) with:

jupyter notebook

The downloaded p-Creode tutorial can be opened by using the jupyter interface to find the directory where it was saved. A brief introduction to jupyter notebook can be found here.

Python 2 support and tutorial

pCreode can be run in python 2 as well, please see the python 2 version of the tutorial and its example data file