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.
- Download the stSCI image from DockerHub and setup a container:
docker run --gpus all --name your_container_name -idt hannshu/stsci:latest
- Access the container:
docker start your_container_name
docker exec -it your_container_name /bin/bash
- 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.
- Note: Please make sure
NVIDIA Container Toolkit
is properly installed on your host device. (Or follow this instruction to setup NVIDIA Container Toolkit first)
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.
- Clone this repository from Github:
git clone https://github.com/hannshu/stSCI.git
- Download dataset repository:
git submodule init
git submodule update
-
Build the Anaconda environment, the package version of the essential dependencies noted at Software dependencies section.
-
Write a python script to run stSCI
Read the Documentation for detailed tutorials.