Skip to content

a computational framework to identify and characterize cell niches from spatial omics data at single-cell resolution

License

Notifications You must be signed in to change notification settings

ZJUFanLab/scNiche

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scNiche v1.0.0

Identification and characterization of cell niches in tissue from spatial omics data at single-cell resolution

python >=3.9 DOI

scNiche is a computational framework to identify and characterize cell niches from single-cell spatial omics data

avatar

Requirements and Installation

anndata 0.10.1 pandas 1.5.0 squidpy 1.2.3 scanpy 1.9.1 dgl 1.1.0+cu113 torch 1.21.1+cu113 matplotlib 3.6.2 seaborn 0.13.0

Create and activate Python environment

For scNiche, the Python version need is over 3.9. If you have already installed a lower version of Python, consider installing Anaconda, and then you can create a new environment.

conda create -n scniche python=3.9
conda activate scniche

Install PyTorch and DGL

We developed scNiche in a CUDA 11.3 environment. Here is an example of installing PyTorch and DGL with CUDA11.3:

# install PyTorch
pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113

# install DGL
pip install dgl==1.1.0+cu113 -f https://data.dgl.ai/wheels/cu113/repo.html

The version of PyTorch and DGL should be suitable to the CUDA version of your machine. You can find the appropriate version on the PyTorch and DGL website.

Install other requirements

cd scNiche-main
pip install -r requirements.txt

Install scNiche

python setup.py build
python setup.py install

Tutorials (identify cell niches)

scNiche requires the single-cell spatial omics data (stored as .h5ad format) as input, where cell population label of each cell needs to be provided.

Here are examples of scNiche on simulated and biological datasets:

Tutorials (characterize cell niches)

scNiche also offers a downstream analytical framework for characterizing cell niches more comprehensively.

Here are examples of scNiche on two biological datasets:

About

scNiche was developed by Jingyang Qian. Should you have any questions, please contact Jingyang Qian at qianjingyang@zju.edu.cn.

About

a computational framework to identify and characterize cell niches from spatial omics data at single-cell resolution

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published