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.2.tar.gz (26.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.2.2-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quest_niche-0.2.2.tar.gz
  • Upload date:
  • Size: 26.9 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.2.tar.gz
Algorithm Hash digest
SHA256 b5a55d3725dc251e55a501aeb66f94d78c64491e24d11fb37031c312b9520a97
MD5 0d1cfe150e6b2569941fdfab35394396
BLAKE2b-256 85a492334c7c57de36242a89eb3a88c766e07c6900f26aaa3ca9445d3621caab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quest_niche-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 26.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06a34e80396df3e47297be9d12217b33abd2d41db5c3803373db3851f544b5bf
MD5 a4f2239e52598df0815ca5779771085e
BLAKE2b-256 b24d3798b3d3716c426d0597865fb46e77500953dce738f02d178402ceffbfa4

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