Sign inSign up

hannshu/stsci

By hannshu

•Updated over 1 year ago

Joint analysis single-cell and spatial transcriptomics data with stSCI

Image
Machine learning & AI
Data science
0

236

hannshu/stsci repository overview

⁠stSCI

Documentation Status

stSCI overview

⁠Overview

Spatial transcriptomics (ST) data reveals the locations of transcriptomes, offering crucial perspectives but at a compromised quality. Integrating ST data with single-cell transcriptomics (SC) data has proven to be an effective strategy for enhancing the quality of ST data, as demonstrated by previous research. We introduce stSCI (ST-SC Integration), a novel computational method that seamlessly fuses SC and ST data into a unified embedding space by incorporating a newly designed fusion module. Utilizing several simulated and real datasets, stSCI demonstrates its performance in batch correction across the two omics data, in clustering, and deconvolution of ST data, as well as in reconstructing spatial coordinates for SC data. Additionally, stSCI shows its potential for annotating ST data using only marker genes and cell types derived from SC data. Moreover, experiment result shows that stSCI performing well with both sequencing-based and imaging-based ST data, highlighting its capability as a powerful tool for comprehensive biological system analysis.

⁠Software dependencies

python==3.10.13
numpy==1.26.4
pandas==2.2.2
matplotlib==3.8.2
scanpy==1.10.1
squidpy==1.4.1
faiss==1.7.4
igraph==0.11.5
scikit-learn==1.5.0
scikit-misc==0.3.1
louvain==0.8.2
scipy==1.12.0
tqdm==4.66.1
pytorch==2.3.1+cu121
torch_geometric==2.5.0
rpy2==3.2.2
R==3.6.1
mclust==6.1.1

⁠Setup stSCI

  1. Download the stSCI image from DockerHub⁠ and setup a container:
docker run --gpus all --name your_container_name -idt hannshu/stsci:latest
  1. Access the container:
docker start your_container_name
docker exec -it your_container_name /bin/bash
  1. Write a python script to run stSCI

The anaconda environment for stSCI will be automatically activate in the container. The stSCI source code is located at /root/stSCI, please run git pull to update the codes before you use. All dependencies of stSCI have been properly installed in this container, including the mclust R package, and the conda environment stSCI will automatically activate when you run the container.

⁠Manually setup:

We suggest you to use the Docker to setup and run stSCI. If you want to manually setup stSCI, we recommend you to use Anaconda⁠ to build the runtime environment.

  1. Clone this repository from Github:
git clone https://github.com/hannshu/stSCI.git
  1. Download dataset repository:
git submodule init
git submodule update
  1. Build the Anaconda environment, the package version of the essential dependencies noted at Software dependencies⁠ section.

  2. Write a python script to run stSCI

⁠Tutorial

Read the Documentation⁠ for detailed tutorials.

Tag summary

Content type

Image

Digest

sha256:4172ec79d…

Size

13.5 GB

Last updated

over 1 year ago

docker pull hannshu/stsci