Inferensys

Glossary

Seurat WNN

Weighted Nearest Neighbor (WNN) analysis in the Seurat framework is an unsupervised method that learns cell-specific modality weights to integrate multimodal single-cell data such as RNA and protein measurements.
Finance professional using AI FP&A copilot on laptop, board presentation visible on screen, home office work session.
MULTIMODAL INTEGRATION

What is Seurat WNN?

Seurat WNN (Weighted Nearest Neighbor) is an unsupervised framework for integrating multimodal single-cell data by learning cell-specific modality weights, enabling a unified analysis of measurements such as RNA expression and surface protein abundance.

Seurat WNN is an unsupervised method that learns cell-specific modality weights to integrate multimodal single-cell data, such as RNA and protein measurements. It constructs a weighted combination of nearest-neighbor graphs from each modality, where the contribution of each data type is optimized per cell based on the predictive power of its local neighborhood. This approach ensures that informative modalities dominate the integrated representation while noisy or uninformative signals are down-weighted.

The algorithm defines a single weighted joint neighbor graph that captures the cellular similarity structure across all modalities. By applying a smoothing function over the multimodal neighbors, WNN generates a unified low-dimensional embedding suitable for clustering, visualization, and trajectory inference. This framework is particularly effective for CITE-seq and other paired multimodal technologies, resolving cellular heterogeneity that is only visible when multiple molecular layers are analyzed simultaneously.

MULTIMODAL INTEGRATION

Key Features of Seurat WNN

Weighted Nearest Neighbor (WNN) analysis extends the Seurat framework to integrate multiple single-cell data modalities—such as RNA and protein—by learning cell-specific modality weights. This unsupervised method constructs a single, unified representation that reflects the relative information content of each modality for every cell.

01

Cell-Specific Modality Weighting

WNN learns a unique weight for each modality in every cell, rather than applying a global weighting scheme. For a cell where RNA data is noisy but protein signal is strong, the protein modality receives higher weight in defining its neighbors. This is achieved by minimizing the within-cluster cross-modality prediction error using a weighted k-nearest neighbor graph.

Per-cell
Weighting Granularity
02

Unsupervised Graph Construction

The algorithm builds a shared nearest neighbor graph by first computing independent k-nearest neighbor graphs for each modality (e.g., RNA expression PCA space and protein ADT CLR space). It then learns modality weights that maximize agreement between these graphs, fusing them into a single weighted multimodal graph without requiring labeled training data.

03

Multimodal Clustering and Visualization

Once the WNN graph is constructed, standard Seurat workflows apply seamlessly. The unified graph is used for Leiden clustering to identify cell populations and as input to UMAP for visualization. This produces a single clustering and embedding that reflects both transcriptomic and epitope-defined cellular heterogeneity.

04

Modality Contribution Analysis

WNN provides tools to inspect the learned modality weights across cell populations. Users can visualize the relative contribution of RNA vs. protein data to the definition of each cluster. This reveals which modality drives the identification of specific cell types—for example, protein markers may dominate for immune subsets where surface markers are definitive.

05

Bridging CITE-seq and scRNA-seq

WNN is the core analytical engine for CITE-seq data within Seurat, simultaneously processing gene expression counts and antibody-derived tag (ADT) counts. It also supports other multimodal pairings, such as scRNA-seq with scATAC-seq, by applying the same weighted nearest neighbor framework to any set of modality-specific distance matrices.

06

Seamless Seurat Integration

WNN is implemented as a native workflow within the Seurat v4+ ecosystem. After creating a Seurat object with multiple assays, the analysis proceeds through a standard pipeline: FindMultiModalNeighbors() computes the weighted graph, and FindClusters() and RunUMAP() operate on the resulting wknn graph. All downstream differential expression and visualization tools remain accessible.

SEURAT WNN EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about Weighted Nearest Neighbor analysis for multimodal single-cell data integration.

Seurat WNN (Weighted Nearest Neighbor) is an unsupervised analysis framework within the Seurat R toolkit that learns cell-specific modality weights to integrate multimodal single-cell data, such as RNA expression and surface protein abundance from CITE-seq. The algorithm constructs a separate k-nearest neighbor graph for each modality, then learns a weighted combination of these graphs where the contribution of each modality varies per cell. For a cell with ambiguous transcriptomic identity but clear protein markers, WNN automatically up-weights the protein modality. The result is a single weighted nearest neighbor graph that captures a unified cellular representation, enabling joint clustering, visualization, and downstream analysis that respects the information content of each modality at the individual cell level.

Multimodal Integration

Applications of Seurat WNN

Seurat's Weighted Nearest Neighbor (WNN) analysis provides an unsupervised framework to integrate multiple single-cell modalities, such as RNA and protein data, by learning cell-specific modality weights. This enables a unified definition of cellular state that leverages the strengths of each data type.

01

Multimodal Cell Clustering

WNN constructs a single nearest-neighbor graph that integrates information from multiple assays (e.g., RNA-seq and ADT). By learning cell-specific modality weights, it down-weights noisy modalities for individual cells, resulting in more robust and biologically meaningful clusters than those derived from a single data type.

02

CITE-seq Data Analysis

A primary application is the analysis of CITE-seq data, which simultaneously measures transcriptomes and surface proteins. WNN resolves cellular heterogeneity by leveraging protein markers for definitive cell-type identification while using mRNA for deep phenotyping, overcoming the sparsity of single-cell RNA data.

03

Multi-Omics Reference Mapping

WNN enables the construction of multimodal reference atlases. New query cells can be projected onto a WNN-defined reference, facilitating automated cell-type annotation and the identification of novel states by comparing across multiple data modalities simultaneously.

04

Identifying Cross-Modal Relationships

The learned modality weights provide direct insight into the information content of each assay for every cell. This allows researchers to identify cell populations where RNA and protein measurements are discordant, revealing post-transcriptional regulation or other biological phenomena.

05

ATAC + RNA Co-Embedding

Beyond protein data, WNN can integrate scRNA-seq and scATAC-seq to link gene expression with chromatin accessibility. This joint analysis defines cell states by both their regulatory potential and transcriptional output, enabling the identification of distal regulators driving cell identity.

06

Supervised Multimodal Analysis

WNN can be extended to a supervised framework to identify multimodal biomarkers. By learning weights that best separate predefined classes, it pinpoints the exact features—whether transcriptomic or proteomic—that define a disease state or treatment response.

MULTIMODAL INTEGRATION COMPARISON

Seurat WNN vs. Other Integration Methods

Comparison of Seurat Weighted Nearest Neighbor analysis against alternative single-cell data integration and multimodal fusion methods.

FeatureSeurat WNNHarmonyscVIMOFA+

Multimodal integration

Unsupervised modality weighting

Cell-specific modality weights

Batch effect correction

Cross-technology alignment

Probabilistic latent representation

Reference-based mapping

Handles missing modalities

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.