Skip to main content

SpaCon

image

Overview

The brain’s structure and function arise from its complex molecular composition and neural connectivity, yet the relationship between cell-type-specific gene expression and brain-wide connectivity is not well understood. By integrating single-cell resolution spatial transcriptomics and connectomics, we reveal a tight coupling between gene expression and anatomical connectivity in the cortico-thalamic circuit, and identify specific gene expression in axons of the corpus callosum that reflect their cortical origins. Building on these findings, we developed SpaCon, a graph attention autoencoder that uses a tunable hyperparameter to flexibly integrate global connectivity with local gene expression. To enable analysis at the whole-brain scale, SpaCon introduces an efficient neighbor sampling strategy that drastically reduces computational requirements without compromising performance. This architecture allows the model to identify functionally relevant three-dimensional domains defined by both molecular identity and shared connectivity patterns, even when spatially distant. Validated across diverse datasets and species, SpaCon significantly enhances the prediction of connectivity from gene expression and improves the spatial classification of neuronal subtypes. SpaCon thus provides a powerful, scalable, and versatile framework for understanding the complex relationship between transcriptome and connectome.

Main software dependencies

  • torch==2.0.1
  • torch-geometric==2.3.1
  • numpy==1.22.3
  • scanpy==1.8.2
  • anndata==0.9.1
  • pandas==1.5.3
  • rpy2==3.5.12
  • scipy==1.10.1

Tutorials

Raw data

The raw data used in this study can be accessed as follows: MERFISH dataset of mouse brain is available at https://alleninstitute.github.io/abc_atlas_access/descriptions/Zhuang_dataset.html. Slide-seq dataset of mouse brain is available at https://www.braincelldata.org/. Stereo-seq dataset of mouse brain is available at https://doi.org/10.12412/BSDC.1699433096.20001. Allen structural connectivity data is available at https://connectivity.brain-map.org. MERFISH cell segmentation and decoded results of mouse brain data is available at https://download.brainimagelibrary.org/29/3c/293cc39ceea87f6d/processed_data/.

Our processed data can be found in the tutorial above.

Metadata

Release files for spacon 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spacon 0.1.3
File Size Uploaded
spacon-0.1.3.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spacon 0.1.3
File Interpreter ABI Platform
spacon-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 36.0 kB

Release files / spacon-0.1.3.tar.gz

Download URL spacon-0.1.3.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a487cff79332ba534e7de2e26c5ae854421e2e0e55de0f95921fc61cc4687d26
BLAKE2b-256 checksum
How to use checksums
572a2c49b88f33df7e3c7e6b071b7a85bca6a13e89729637fae5a387fea110fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release files / spacon-0.1.3-py3-none-any.whl

Download URL spacon-0.1.3-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8788c4e983fbbd3fd9e0c8b7000fcfffc3b46d1670453757336c5ea9f663108
BLAKE2b-256 checksum
How to use checksums
17050e3692dcd468d8135159b5e1f261f2057eef85461308e568f6c54b1c7fd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page