Skip to main content

Querying functional and structural niches on spatial transcriptomics data

Project description

Querying functional and structural niches on spatial transcriptomics data

Overview

Cells in multicellular organisms coordinate to form functional and structural niches. With spatial transcriptomics enabling gene expression profiling in spatial contexts, it has been revealed that spatial niches serve as cohesive and recurrent units in physiological and pathological processes. These observations suggest universal tissue organization principles encoded by conserved niche patterns, and call for a query-based niche analytical paradigm beyond current computational tools. In this work, we defined the Niche Query Task, which is to identify similar niches across ST samples given a niche of interest (NOI). We further developed QueST, a specialized method for solving this task. QueST models each niche as a subgraph, uses contrastive learning to learn discriminative niche embeddings, and incorporates adversarial training to mitigate batch effects. In simulations and benchmark datasets, QueST outperformed existing methods repurposed for niche querying, accurately capturing niche structures in heterogeneous environments and demonstrating strong generalizability across diverse sequencing platforms. Applied to tertiary lymphoid structures in renal and lung cancers, QueST revealed functionally distinct niches associated with patient prognosis and uncovered conserved and divergent spatial architectures across cancer types. These results demonstrate that QueST enables systematic, quantitative profiling of spatial niches across samples, providing a powerful tool to dissect spatial tissue architecture in health and disease.

Getting started

Installation

We recommend using a conda environment

conda create -n quest python==3.9.19

Install necessary dependencies first before the installation of QueST

conda activate quest
pip install -r requirements.txt

Finally, QueST is available on PyPI and can be installed via

pip install quest-niche

Usage

See detailed usage on Read the Docs website.

Data Availability

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

quest_niche-0.1.4.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

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

quest_niche-0.1.4-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file quest_niche-0.1.4.tar.gz.

File metadata

  • Download URL: quest_niche-0.1.4.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for quest_niche-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e4b186bc663f25d3e4e2da9510ee4b28e3dffbca6db0aaaa908b3c1ca8874bff
MD5 b48eca94d1788428a751666004db15b7
BLAKE2b-256 4fd05a1472d2d55fbfee30fe22ade4fbd6e432d82d89dac61d3f33ee2109a87b

See more details on using hashes here.

File details

Details for the file quest_niche-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: quest_niche-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for quest_niche-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f7b0f143819bd2275c5801bfeff24c3ce5b811f36ba8920ead2cc86c99b1be
MD5 1e5ffdf947076034122335a712d8b0c4
BLAKE2b-256 f56150ea8b8186addc1d1766b754edd53d209ca61ce179f72d9f2f6adc7ac000

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