Skip to main content

A graph deep learning based tool to align single cell spatial omics data

Project description

stars-badge dev-badge build-badge license-badge docs-badge pypi-badge

scSLAT: single cell spatial alignment tools

scSLAT package implements the SLAT (Spatial Linked Alignment Tool) model to align single cell spatial omics data.

Model architecture

Directory structure

.
├── scSLAT/                  # Main Python package
├── env/                     # Extra environment
├── data/                    # Data files
├── evaluation/              # SLAT evaluation pipeline
├── benchmark/               # Benchmark pipeline
├── case/                    # Case studies in paper
├── docs/                    # Documentation files
├── resource/                # Other useful resource 
├── pyproject.toml           # Python package metadata
└── README.md

Tutorial

Tutorial of scSLAT is here, if you have any question please open an issue on github

Installation

Docker

Dockerfile of scSLAT is available at env/Dockerfile. You can also pull the docker image directly from here by:

docker pull huhansan666666/slat:latest

PyPI

Note Installing scSLAT within a new conda environment is recommended.

First, we create a clean environment and install scSLAT from PyPI. Then we also need install dependencies for pyg manually. We default install with CUDA 11.7. Please refer here for CPU version or different CUDA versions.

Warning old NVIDIA driver may raise error, please update NVIDIA driver to the latest version.

conda create -n scSLAT python=3.8 -y && conda activate scSLAT
pip install scSLAT
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.0.0+cu117.html

Development version

For development purpose, clone this repo and install:

git clone git@github.com:gao-lab/SLAT.git
cd SLAT
pip install -e ".[dev,docs]"
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.0.0+cu117.html

Conda (Ongoing)

We plan to provide a conda package of scSLAT in the near future.

Reproduce manuscript results

  1. Please follow the env/README.md to install all dependencies. Please checkout the repository to v0.2.1 before install scSLAT.
  2. Download and pre-process data follow the data/README.md.
  3. Whole benchmark and evaluation procedure can be found in /benchmark and /evaluation, respectively.
  4. Every case study is recorded in the /case directory in the form of jupyter notebook.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scslat-0.2.1.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

scslat-0.2.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file scslat-0.2.1.tar.gz.

File metadata

  • Download URL: scslat-0.2.1.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for scslat-0.2.1.tar.gz
Algorithm Hash digest
SHA256 aef2c9e535d43641563e5c1217006a822def1ddf24ba9bd30da2c5fc20606ab4
MD5 e43198ee042c44f5caeb9f5cef8cbd97
BLAKE2b-256 e0afbec1845e95e843ad4db4bc0c9c792c660824f3a1719007b55520e3300e94

See more details on using hashes here.

File details

Details for the file scslat-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: scslat-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for scslat-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40cd511cc83acb2b8bbe0c72d23ee42780b90b5aa5e68be3cacbdfcdf007a9c5
MD5 f4099cd54127073609103447bc6ac938
BLAKE2b-256 bda6f27888cb1c77dccda64f09005fd21d289b1b1aab792480dd525bbec5df81

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page