Projecting RNA measurements onto single cell atlases to extract cell type-specific expression profiles using scProjection. Refer to our paper:https://www.nature.com/articles/s41467-023-40744-6
First follow the install instructions below, at the bottom of the page, before following the tutorials.
Tutorial 1: Deconvolution of CellBench mixtures
Tutorial 2: Deconvolution of spatial MERFISH data
Tutorial 3: Projection of pseudo bulk data
Tutorial 4: Imputation of gene expression patterns of spatial osmFISH data
pip3 install scProjection
The install time should be less than 30 min.
scProjection requires: Python 3. This is a guide to installing python on different operating systems.
- Download Python 3
- Make sure pip is included in the installation.
- sudo apt update
- sudo apt install python3-dev python3-pip
- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
- brew update
- brew install python # Python 3
scProjection also requires: tensorflow, tensorflow-probability, sklearn and numpy. It is generally easier to setup the dependencies using a virtual environment which can be done as follows:
## Create the virtual environment
virtualenv -p python3 pyvTf2
## Launch the virtual environment
source ./pyvTf2/bin/activate
## Setup dependencies
pip3 install tensorflow
pip3 install tensorflow-probability
pip3 install scikit-learn
pip3 install numpy
## Install scProjection
pip3 install scProjection