Skip to main content

Genetically informed spatial mapping of cells for complex traits

Project description

gsMap3D

gsMap3D integrates 3D spatial transcriptomics (ST) data with genome-wide association study (GWAS) summary statistics to map cells associated with human complex traits and diseases.


✨ What's New

- Support for 3D ST data mapping  
- Dual-embedding strategy for more accurate gene specificity scoring  
- Full GPU acceleration across all analysis steps

🚀 Features

  • Spatially-aware High-Resolution Trait Mapping
    Maps trait-associated cells at single-cell resolution, offering insights into their spatial distributions.

  • Spatial Region Identification
    Aggregates trait–cell association p-values into trait–tissue region association p-values, prioritizing tissue regions relevant to traits of interest.

  • Putative Causal Genes Identification
    Prioritizes putative causal genes by associating gene expression levels with cell–trait relevance.

  • Scalability
    Employs JAX JIT and GPU/TPU acceleration to scale to million-scale cells (spots) spatial omics datasets.


🧠 Overview of gsMap3D

gsMap3D operates on a four-step process:

1. Gene Specificity Assessment in 3D Spatial Contexts

To address technical noise and capture spatial correlations of gene expression across consecutive ST sections,
gsMap3D constructs batch-corrected dual embeddings of molecular and spatial features. These embeddings jointly model transcriptomic similarity and local spatial context to identify homogeneous cells in 3D space. Gene specificity scores (GSS) are then computed by aggregating normalized gene expression ranks across these 3D homogeneous cells, enabling robust identification of genes that are both highly and specifically expressed in focal cells.

2. Linking Gene Specificity to Genetic Variants

gsMap3D links gene specificity scores to single nucleotide polymorphisms (SNPs) by assigning GSS to SNPs based on their proximity to gene transcription start sites (TSS) and SNP-to-gene epigenetic linking maps, thereby connecting spatially resolved gene expression patterns with trait-associated genetic variation.

3. 3D Spatial S-LDSC for Cell–Trait Association

To quantify cell–trait associations in 3D space, gsMap3D integrates the 3D gene specificity scores with GWAS summary statistics using stratified LD score regression (S-LDSC). This framework enables the estimation of trait relevance for individual cells by associating their stratified LD scores with GWAS signals.

4. Spatial Region–Trait Association Analysis

To evaluate associations between traits and spatial regions, gsMap3D aggregates p-values from cells within a given 3D spatial region using the Cauchy combination test, yielding region-level association statistics that reflect coordinated genetic effects across spatially organized cell populations.

gsMap3D Method Schematic


📚 Documentation

Please see [URL]


📝 How to Cite

If you use gsMap in your studies, please cite:

  • gsMap3D: to be updated.

  • gsMap:
    Song, L., Chen, W., Hou, J., Guo, M. & Yang, J.
    Spatially resolved mapping of cells associated with human complex traits.
    Nature (2025).
    https://doi.org/10.1038/s41586-025-08757-x


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

gsmap3d-0.1.0a3.tar.gz (362.5 kB view details)

Uploaded Source

Built Distribution

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

gsmap3d-0.1.0a3-py3-none-any.whl (395.2 kB view details)

Uploaded Python 3

File details

Details for the file gsmap3d-0.1.0a3.tar.gz.

File metadata

  • Download URL: gsmap3d-0.1.0a3.tar.gz
  • Upload date:
  • Size: 362.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gsmap3d-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 b7d2cba8715da36787786bbac47d9062a7ae75b7d3d4ac4859e17a4ee59a8653
MD5 3ad35da466e8b1cea9635ddf7fd4c771
BLAKE2b-256 0de67cb56604d104eb471417da034862c0de9a3110eb718b998a8627ece9dc16

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsmap3d-0.1.0a3.tar.gz:

Publisher: release.yml on Ganten-Hornby/gsMap3D

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gsmap3d-0.1.0a3-py3-none-any.whl.

File metadata

  • Download URL: gsmap3d-0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 395.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gsmap3d-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 b487f6a32d46d25bb1742a222d61fc4a7eff174bdaf96e3ff32f7eb1ffe181b6
MD5 cf43a18d9ce82cf4a30e95ad25ce307c
BLAKE2b-256 9d5b9dcc822b556784b046efa44f4f683e9460131b23a46ee24e1d1f879823e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsmap3d-0.1.0a3-py3-none-any.whl:

Publisher: release.yml on Ganten-Hornby/gsMap3D

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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