forked from dpeerlab/Palantir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Manu Setty
committed
Nov 22, 2017
0 parents
commit c60872e
Showing
13 changed files
with
3,072 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.