{
  "abstract": "With advances in spatially resolved transcriptomics across platforms and resolutions, it is now possible to measure gene-expression profiles while preserving the tissue microenvironment. Spatial clustering is central to these analyses, and recent graph neural network (GNN)-based approaches have greatly improved their accuracy. Nevertheless, precisely delineating spatial domain boundaries remains a significant challenge. Here we present a novel method CASTLE (Cell-type Aware SpaTial domain detection via contrastive Learning Embedding), by leveraging cell type information for improved spatial domain detection. CASTLE first integrates spatial proximity to construct a spatial graph, refined from cell-type similarity or expression similarity when cell type information is unavailable. Then, a self-supervised, local-context contrastive objective aligns embeddings with their immediate microenvironments. Evaluated across multiple tissues and technology resolutions, CASTLE generally achieves competitive or superior performance across datasets and metrics, with particularly strong accuracy and stability on several benchmarks, and detects spatial domains more accurately and consistently. In downstream analyses, it resolves fine-grained tissue structures and differentiates functional subtypes, supporting more nuanced biological interpretation. Author summary: Spatial transcriptomics allows researchers to measure gene activity while preserving where cells are located in a tissue. A major challenge is to divide tissue into meaningful spatial regions, because these regions often reflect differences in cell types, tissue structure, or disease state. We developed CASTLE, a computational method that improves this process by using information about both spatial location and local cell-type composition. CASTLE builds a biologically informed graph of neighboring spots or cells and learns representations that capture each location’s surrounding tissue environment. Across multiple spatial transcriptomics technologies and tissue types, CASTLE identified spatial domains more accurately and with clearer boundaries than existing methods. In human breast cancer tissue, CASTLE also revealed smaller functional subregions within broader annotated areas, including tumor and stromal compartments with distinct biological programs. These results show that incorporating cell-type information can improve tissue mapping and help researchers better understand tissue organization in health and disease.",
  "abstract_shown": true,
  "affiliations": [
    "Department of Statistics and Probability, Michigan State University, East Lansing, Michigan, United States of America"
  ],
  "article_type": "Research Article",
  "arxiv": null,
  "author_total": 3,
  "authors": [
    {
      "affs": [
        0
      ],
      "name": "Lai Wei",
      "orcid": "0009-0009-6620-5678"
    },
    {
      "affs": [
        0
      ],
      "name": "Aoqi Xie"
    },
    {
      "affs": [
        0
      ],
      "name": "Yuehua Cui",
      "orcid": "0000-0001-8099-1753"
    }
  ],
  "bibtex": "https://research.draconitic.com/paper/49321ddq8e01d.bib",
  "cited_by": 0,
  "doi": "10.1371/journal.pgen.1012365",
  "fulltext_url": "https://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1012365",
  "id": "49321ddq8e01d",
  "issns": [
    "1553-7404",
    "1553-7390"
  ],
  "landing_url": "https://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1012365",
  "language": "en",
  "licence": "CC-BY-4.0",
  "licence_label": "CC BY 4.0",
  "licence_source": "article",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "metadata_licence": null,
  "native_subjects": [
    [
      "heading",
      "Anatomy"
    ],
    [
      "heading",
      "Biology and Life Sciences"
    ],
    [
      "heading",
      "Brain"
    ],
    [
      "heading",
      "Breast Cancer"
    ],
    [
      "heading",
      "Breast Tumors"
    ],
    [
      "heading",
      "Cancers and Neoplasms"
    ],
    [
      "heading",
      "Computational Biology"
    ],
    [
      "heading",
      "Gene Expression"
    ],
    [
      "heading",
      "Genetics"
    ],
    [
      "heading",
      "Genome Analysis"
    ],
    [
      "heading",
      "Genome Annotation"
    ],
    [
      "heading",
      "Genomics"
    ],
    [
      "heading",
      "Hippocampus"
    ],
    [
      "heading",
      "Histology"
    ],
    [
      "heading",
      "Marker Genes"
    ],
    [
      "heading",
      "Medicine and Health Sciences"
    ],
    [
      "heading",
      "Molecular Biology"
    ],
    [
      "heading",
      "Molecular Biology Techniques"
    ],
    [
      "heading",
      "Oncology"
    ],
    [
      "heading",
      "Prefrontal Cortex"
    ],
    [
      "heading",
      "Research Article"
    ],
    [
      "heading",
      "Research and Analysis Methods"
    ],
    [
      "heading",
      "Transcriptome Analysis"
    ],
    [
      "plos",
      "/Biology and life sciences/Anatomy/Brain/Hippocampus"
    ],
    [
      "plos",
      "/Biology and life sciences/Anatomy/Brain/Prefrontal cortex"
    ],
    [
      "plos",
      "/Biology and life sciences/Anatomy/Histology"
    ],
    [
      "plos",
      "/Biology and life sciences/Computational biology/Genome analysis/Genome annotation"
    ],
    [
      "plos",
      "/Biology and life sciences/Computational biology/Genome analysis/Transcriptome analysis"
    ],
    [
      "plos",
      "/Biology and life sciences/Genetics/Gene expression"
    ],
    [
      "plos",
      "/Biology and life sciences/Genetics/Genomics/Genome analysis/Genome annotation"
    ],
    [
      "plos",
      "/Biology and life sciences/Genetics/Genomics/Genome analysis/Transcriptome analysis"
    ],
    [
      "plos",
      "/Biology and life sciences/Molecular biology/Molecular biology techniques/Marker genes"
    ],
    [
      "plos",
      "/Medicine and health sciences/Anatomy/Brain/Hippocampus"
    ],
    [
      "plos",
      "/Medicine and health sciences/Anatomy/Brain/Prefrontal cortex"
    ],
    [
      "plos",
      "/Medicine and health sciences/Anatomy/Histology"
    ],
    [
      "plos",
      "/Medicine and health sciences/Oncology/Cancers and neoplasms/Breast tumors/Breast cancer"
    ],
    [
      "plos",
      "/Research and analysis methods/Molecular biology techniques/Marker genes"
    ]
  ],
  "openalex": null,
  "pdf_url": "https://journals.plos.org/plosgenetics/article/file?id=10.1371/journal.pgen.1012365&type=printable",
  "pmcid": "PMC13787813",
  "pmid": "43043946",
  "published": "2026-11-17",
  "publisher": "Public Library of Science",
  "ris": "https://research.draconitic.com/paper/49321ddq8e01d.ris",
  "sources": [
    {
      "first_seen": "2026-11-18T12:20:06Z",
      "native_id": "10.1371/journal.pgen.1012365",
      "source": "plos",
      "url": "https://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1012365"
    },
    {
      "first_seen": "2026-11-24T12:22:35Z",
      "native_id": "PMC13787813",
      "source": "pmc",
      "url": "https://doi.org/10.1371/journal.pgen.1012365"
    }
  ],
  "subjects": [
    {
      "field": "biochemistry",
      "origin": "heading:Gene Expression",
      "subfield": "molecular-biology"
    },
    {
      "field": "biology",
      "origin": "heading:Computational Biology",
      "subfield": "bioinformatics"
    },
    {
      "field": "biology",
      "origin": "heading:Genetics",
      "subfield": "genetics-genomics"
    },
    {
      "field": "medicine",
      "origin": "heading:Cancers and Neoplasms",
      "subfield": "oncology"
    },
    {
      "field": "medicine",
      "origin": "plos:anatomy",
      "subfield": "physiology"
    }
  ],
  "title": "CASTLE: Cell-type aware SpaTial domain detection via contrastive learning embedding",
  "title_text": "CASTLE: Cell-type aware SpaTial domain detection via contrastive learning embedding",
  "type": "peer-reviewed",
  "updated_at": "2026-11-24T12:22:35Z",
  "url": "https://research.draconitic.com/paper/49321ddq8e01d",
  "venue": "PLOS Genetics",
  "versions": []
}