bioRxiv Science⌕ Search

bioRxiv · 10.1101/2025.04.26.650724

Neighborhood nonnegative matrix factorization identifies patterns and spatially-variable genes in large-scale spatial transcriptomics data

Abstract

Tissues consist of multi-cellular neighborhoods in which different cell types express correlated gene programs due to shared signaling environments. Methods for identifying these spatial neighborhoods may be powerful, but currently do not scale to existing data sets of millions of cells and often artificially divide tissues into distinct neighborhoods with hard borders. To better identify multi-cellular microenvironments with shared gene programs in large-scale spatial genomics data, we developed a method that combines nonnegative matrix factorization (NMF) with Gaussian smoothing across cells in space. Our spatially-aware dimension reduction, neighborhood NMF (NNMF), identifies known and unknown interactions among diverse cell types organized into complex patterns, from localized structures to broad tissue regions. NNMF has many advantages over currently available methods, including the ability to run on modern large-scale data with thousands of features and multiple tissue samples and with millions of cells. Furthermore, our method is based on probabilistic NMF, which produces soft clusters of landscape signatures that can be understood as overlapping spatially-organized multicellular gene expression programs, allowing more biologically-complete interpretations than overly-simplistic hard clustering methods. In a benchmark dataset of a diverse set of spatial gene expression data with expert tissue labels, compared against related methods, NNMF with K-nearest neighbors clustering shows excellent performance even on hard clustering tasks. On MERFISH human colorectal cancer data, NNMF identifies several immunologically relevant multicellular interaction networks and scales to these data sets with million of cells. NNMF is implemented as an R package available at https://github.com/ragnhildlaursen/NNMF.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Laursen, R., Chen, H., Demaray, J., Pelka, K., Engelhardt, B. E.. 2025-04-27. Neighborhood nonnegative matrix factorization identifies patterns and spatially-variable genes in large-scale spatial transcriptomics data. https://doi.org/10.1101/2025.04.26.650724

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

MicroDUET: a dual-headed genomic foundation model for pathogen surveillance

Pathogen genomic surveillance works from raw reads, assembled genomes and alignments, representations that are slow and costly to compare at scale. Compact embeddings from genomic language models offer an alternative, but surveillance requires resolving both evolutionary ancestry (phylogeny) and phenotypic capability (function) - which need not co-vary. Here we present MicroDUET, which adapts a 26.6-million-parameter ProkBERT backbone with two 3.5-million-parameter adapter heads: a phylogeny head trained contrastively on genome windows from the same microbes, and a function head trained to identify genes across taxa. On held-out retrieval benchmarks, the phylogeny head returned the correct species for 80.3% and 66.6% of cellular and viral queries, and the function head the correct gene family for 97.3% and 97.2%, reaching 74.4% accuracy on an independent antimicrobial resistance-class benchmark. Across all three benchmarks MicroDUET outranked 17 other genomic encoders. Without training on lineage, clade or drug-susceptibility tasks, MicroDUET identified Mycobacterium tuberculosis and mpox virus lineages and clades (0.965, 0.975 accuracy), discriminated rifampicin resistance without lineage adjustment (AUROC 0.985), and retrospectively identified an emerging mpox lineage as anomalous (AUROC 0.974). MicroDUET operates 10^3 - 10^4 times faster than single-threaded sequence-based alignments. MicroDUET therefore provides a compact, reusable representation for scalable pathogen surveillance and sequence triage.

genomics↗

A chromosome-level genome assembly of northern dragonhead, Dracocephalum ruyschiana L., 1753

We present a chromosome-level genome assembly for the vascular plant northern dragonhead, Dracocephalum ruyschiana. The assembly comprises two pseudo-haplotypes, hap1 and hap2, of 661 Mb and 681 Mb, with 93.6% and 92.5%, respectively, scaffolded into seven chromosomes each - in line with the known karyotype. Assembly quality was high, with conserved single-copy ortholog completeness scores of 97.9% and 97.8%, combined k-mer completeness of 98.1%, and 38,141 and 38,617 annotated protein-coding genes for hap1 and hap2, respectively. This assembly provides a high-quality genomic resource for future research and conservation of northern dragonhead, as well as the endangered northern dragonhead sap beetle, which depends on the plant for reproduction and whose genome assembly is described in a complementary genome note.

genomics↗

Elucidating Bat SuperImmunity: Insights from the Bent-Wing Bat Genome Assembly and Multi-Omics Analysis

Bats have evolved a range of unique adaptations, including powered flight, echolocation, and exceptional longevity. They have also attracted considerable scientific attention, particularly since the COVID-19 pandemic, due to their association with a broad diversity of viruses and their potential role in zoonotic transmission and emerging infectious diseases. Despite hosting numerous viruses, bats often exhibit limited clinical manifestations of infection, suggesting the evolution of distinctive mechanisms of immune regulation and tolerance. Understanding the molecular basis of these mechanisms has become a major focus of current research, with genome-wide analyses providing important insights into the genetic adaptations underlying bat immunity. Nevertheless, the regulatory complexity of bat genomes, particularly the contribution of non-coding RNAs and post-transcriptional RNA editing, remains comparatively underexplored. Here, we present an integrated multi-omic framework for the common bent-wing bat (Miniopterus schreibersii), combining a contiguous chromosome-scale genome assembly with multi-tissue transcriptomic profiling, long non-coding RNA (lncRNA) identification and synteny analysis, endogenous viral elements (EVE) mapping, and same-individual RNA editomic analyses. This study provides a comprehensive resource for investigating genome organization, transcriptional regulation, evolutionary relationships, and post-transcriptional modifications in this species. In particular, it offers an opportunity to explore the potential contribution of non-coding regulatory elements and RNA editing to the molecular mechanisms underlying viral interactions and immune regulation in bats. Collectively, these resources provide a valuable foundation for advancing our understanding of bat genome evolution and the regulatory mechanisms potentially associated with their distinctive responses to viral infections.

genomics↗