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.2.3.tar.gz (26.8 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.2.3-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quest_niche-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cd564d39325cb0623b878286b9d0712ca1331cbabeb95e5e4e4c798c0de66f55
MD5 e21b5c517e4f096fad63801c810e3b17
BLAKE2b-256 fcd8b52b005eca9054fd9559eafea76423a42e02299ef71c57880cb89ee53679

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for quest_niche-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1867eddeeb2c6a28e8cd5b3040a10cea1c31cee2542e3ad9e5ce81e55a19cfc2
MD5 0f5437a0ef5d00648c348fc891c753b9
BLAKE2b-256 727c5c79d66fb1084705b9bb1b67543fcf74197efd3358200e686873cac3af65

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