Skip to main content

Spatial Transcriptome Heterogeneity Dissection of Brain Regions with Dual Graph Contrastive Learning

Project description

stDCL

Recent advances in spatial transcriptomics have enabled simultaneous preservation of high-throughput gene expression profiles and spatial context, enabling the high-resolution exploration of distinct regional characterization in brain tissue. However, the intricate spatial structure of brain poses challenges in capturing spatial heterogeneity effectively and deciphering internal regulatory mechanisms accurately. Here, we develop stDCL, a dual graph contrastive learning method to identify spatial domains from spatial transcriptomics data. stDCL adaptively incorporates gene expression data and spatial information via a graph embedding autoencoder, thereby preserving critical information within latent embedding representations. Then, we propose dual graph contrastive learning to train the model, ensuring that the latent embedding representation closely resembles the actual spatial distribution and exhibits cluster similarity. Benchmarking stDCL against other state-of-the-art clustering methods using cerebral cortex datasets demonstrates its superior accuracy and effectiveness in identifying spatial domains. Our analysis of the imputation matrices generated by stDCL reveals its capability to reconstruct spatial hierarchical structures and refine differential expression assessments. Furthermore, we illustrate the central role of stDCL in elucidating gene regulation, spatial heterogeneity, and developmental patterns in the brain. Additionally, stDCL can also be instrumental in annotating disease-associated cellular phenotypes in Alzheimer's disease, unraveling the regulatory mechanisms.

System Requirements

Hardware requirements

stDCL package requires only a standard computer with enough RAM to support the in-memory operations.

Software requirements

OS Requirements

This package is supported for Linux. The package has been tested on the following systems:

  • Linux: Ubuntu 18.04

Python Dependencies

stDCL mainly depends on the Python scientific stack.

numpy
scipy
torch
scikit-learn
pandas
scanpy

For specific setting, please see requirements or environment.

Installation Guide:

Install from PyPi

$ conda create -n stDCL_env python=3.8.15
$ conda activate stDCL_env
$ pip install -r requirements.txt
$ pip install stDCL

Install from Conda

$ conda env create -f environment.yaml

Usage

stDCL is a dual graph contrastive learning method for identifing spatial domains, which can be used to:

We also provide step-by-step tutorials to analyze spatial transcriptomic datasets.

Data Availability

The real data sets we used can be download in data.

License

This project is covered under the MIT License.

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

stDCL-1.0.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stDCL-1.0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file stDCL-1.0.1.tar.gz.

File metadata

  • Download URL: stDCL-1.0.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.9 tqdm/4.41.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for stDCL-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d216cc7efbaf85979e43523fde57a5872623e30face0adfb7c014ddeafec20ce
MD5 1b21b25b18048eb6b0b334c8a9b85be4
BLAKE2b-256 6b571bb849305ba8d6477ca5ee36d58452d4e8405f2a2ae7e09ebc95402f7380

See more details on using hashes here.

File details

Details for the file stDCL-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: stDCL-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.9 tqdm/4.41.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for stDCL-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c492c13cb36c8f688fccb748febb914641ef397b46d8660e5c43a99775271afe
MD5 fc0ad987a3e9f41917b508757a067d3c
BLAKE2b-256 8992a4814b425321a79287ae676a42bf6e46825a957de5108167549341a09221

See more details on using hashes here.

Supported by

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