Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu Setty committed Nov 22, 2017
0 parents commit c60872e
Show file tree
Hide file tree
Showing 13 changed files with 3,072 additions and 0 deletions.
340 changes: 340 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Palantir
------

Palantir is an algorithm to align cells along differentiation trajectories. Palantir models differentiation as a stochastic process where stem cells differentiate to terminally differentiated cells by a series of steps through a low dimensional phenotypic manifold. Palantir effectively captures the continuity in cell states and the stochasticity in cell fate determination. Palantir has been designed to work with multidimensional single cell data from diverse technologies such as Mass cytometry and single cell RNA-seq.


#### Installation and dependencies
1. Palantir has been implemented in Python3 and can be installed using:

$> git clone git://github.com/ManuSetty/palantir.git
$> cd palantir
$> sudo -H pip3 install .

2. Palantir depends on a number of `python3` packages available on pypi and these dependencies are listed in `setup.py`
All the dependencies will be automatically installed using the above commands

3. To uninstall:

$> sudo -H pip3 uninstall palantir

4. If you would like to determine gene expression trends, please install <a href="https://cran.r-project.org"> R <a> programming language and the R package <a href="https://cran.r-project.org/web/packages/gam/">GAM </a>. You will also need to install the rpy2 module using
$> sudo -H pip3 install rpy2.

#### Usage

##### Command line
A tutorial on Palantir usage and results visualization for single cell RNA-seq data can be found in this notebook: http://nbviewer.jupyter.org/github/ManuSetty/palantir/blob/master/notebooks/Palantir_sample_notebook.ipynb


#### Citations
bioRxiv submission is in the works.
Binary file added data/marrow_sample_scseq_counts.csv.gz
Binary file not shown.
Binary file added data/sample_tsne.p
Binary file not shown.
1,397 changes: 1,397 additions & 0 deletions notebooks/Palantir_sample_notebook.ipynb

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import os
import sys
import shutil
from subprocess import call
from setuptools import setup
from warnings import warn

if sys.version_info.major != 3:
raise RuntimeError('Palantir requires Python 3')
if sys.version_info.minor < 6:
warn('Analysis methods were developed using Python 3.6')


# install GraphDiffusion
if shutil.which('pip3'):
call(['pip3', 'install', 'git+https://github.com/pkathail/GraphDiffusion.git'])
call(['pip3', 'install', 'git+https://github.com/jacoblevine/PhenoGraph.git'])


setup(name='palantir',
description='Palantir for modeling continuous cell state and cell fate choices in single cell data',
url='https://github.com/manusetty/palantir',
author='Manu Setty',
author_email='[email protected]',
package_dir={'': 'src'},
packages=['palantir'],
install_requires=[
'numpy>=1.13.0',
'pandas>=0.21.0',
'scipy>=1.0.0',
'sklearn',
'networkx>=2.0',
'joblib',
'fcsparser',
'GraphDiffusion',
'phenograph'
],
)
8 changes: 8 additions & 0 deletions src/palantir/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from . import core
from . import presults
from . import io
from . import preprocess
from . import utils
from . import plot

__version__ = "1.0"
Loading

0 comments on commit c60872e

Please sign in to comment.