Inferensys

Glossary

Data Integration

Data integration is the computational alignment of multiple single-cell datasets to remove batch effects while preserving true biological variation across conditions or experiments.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
COMPUTATIONAL ALIGNMENT

What is Data Integration?

Data integration is the computational process of combining multiple single-cell datasets to harmonize technical variation while preserving biological heterogeneity.

Data integration computationally aligns disparate single-cell datasets to remove batch effects—systematic non-biological variation introduced by different experimental runs, reagents, or sequencing lanes—while preserving true biological variation across conditions, donors, or time points. This process typically involves identifying shared cell populations across datasets, learning a common latent space representation, and applying a correction function that harmonizes the data without over-mixing distinct cell types. Foundational algorithms include mutual nearest neighbors (MNN) matching, canonical correlation analysis (CCA), and deep generative models like scVI.

Effective integration is a prerequisite for any comparative single-cell analysis, enabling robust differential expression testing and cell type annotation across conditions. The central challenge is distinguishing technical noise from meaningful biological shifts, such as disease-specific transcriptional programs. Integration methods are benchmarked using metrics like kBET and LISI to verify that batch effects are removed while cell-type separation is maintained. Downstream applications include constructing comprehensive cell atlases, identifying rare populations, and performing cross-study meta-analysis.

COMPUTATIONAL ALIGNMENT

Key Characteristics of Data Integration

Data integration in single-cell analysis involves computationally aligning multiple datasets to remove technical batch effects while preserving true biological variation. The following characteristics define robust integration strategies.

01

Batch Effect Correction

The primary goal of integration is to remove systematic, non-biological variation introduced by technical factors such as different experimental runs, reagents, or sequencing lanes. Algorithms learn a correction vector that aligns datasets in a shared latent space.

  • Linear methods (e.g., ComBat, limma) model batch effects as additive/multiplicative shifts
  • Deep learning methods (e.g., scVI, trVAE) use variational autoencoders to learn non-linear corrections
  • Mutual nearest neighbors (MNN) identifies matching cell pairs across batches to estimate the correction
  • Failure to correct batch effects leads to false discoveries in differential expression and spurious clustering driven by technical artifacts
MNN-based
Pioneered by Haghverdi et al. 2018
02

Preservation of Biological Variation

A successful integration must not over-correct and erase genuine biological signals. The distinction between wanted variation (cell type, disease state, developmental stage) and unwanted variation (batch, donor, protocol) is context-dependent.

  • k-nearest-neighbor batch effect test (kBET) quantifies local batch mixing without assuming discrete clusters
  • Average silhouette width (ASW) measures how well integrated cells maintain their cell-type identity
  • Local inverse Simpson's index (LISI) evaluates the diversity of batch labels in a cell's local neighborhood
  • Over-correction manifests as homogeneous embeddings where distinct cell types are artificially merged
LISI
Key metric for integration quality
03

Anchor-Based Alignment

Many state-of-the-art methods identify anchors—cells in similar biological states across datasets—to guide the alignment process. These mutual nearest neighbors serve as reference points for computing the transformation that maps one dataset onto another.

  • Seurat v3+ uses canonical correlation analysis (CCA) to find anchors in a shared correlation space
  • scAlign learns an encoder-decoder mapping between datasets using anchor pairs
  • Harmony iteratively clusters cells and applies soft-clustering-based correction without explicit anchors
  • Anchor-based methods scale well to large atlases with millions of cells by subsampling representative reference cells
CCA-based
Seurat's anchor finding method
04

Scalability to Atlas-Scale Data

Modern integration methods must handle datasets with millions of cells spanning dozens of batches. Computational efficiency is achieved through approximate nearest neighbor search, out-of-memory computation, and subsampling strategies.

  • scVI uses stochastic variational inference with mini-batching to train on arbitrary numbers of cells
  • BBKNN replaces the full k-nearest neighbor graph with a batch-balanced variant computed per batch
  • Online iNMF (used in LIGER) processes data incrementally without loading the full matrix into RAM
  • GPU acceleration via RAPIDS and PyTorch enables sub-hour integration of million-cell datasets
1M+ cells
Scalable to atlas-scale
05

Multimodal and Cross-Species Integration

Advanced integration extends beyond aligning multiple scRNA-seq datasets to fusing different data modalities and even cross-species comparisons. This requires mapping features into a shared latent space where correspondences can be established.

  • Multimodal integration combines scRNA-seq with scATAC-seq, CITE-seq protein data, or spatial transcriptomics
  • Cross-species integration maps homologous genes to compare cell types between mouse, human, and other model organisms
  • TotalVI jointly models RNA and protein counts in CITE-seq data using a single probabilistic framework
  • SATURN uses protein language models to map genes across evolutionarily distant species without relying on one-to-one orthology
Cross-modality
RNA + ATAC + Protein
06

Reference-Based Mapping

Rather than integrating all datasets simultaneously, reference mapping projects new query datasets onto a pre-built, well-annotated reference atlas. This enables rapid annotation and avoids recomputing the full integration with each new sample.

  • Symphony builds a compressed reference from a Harmony-integrated atlas for rapid query mapping
  • scArches fine-tunes a pre-trained scVI or trVAE model on new data with minimal retraining
  • Azimuth provides a web-based interface for mapping human PBMC and motor cortex queries to reference atlases
  • Reference mapping is essential for clinical deployment where new patient samples must be analyzed against a standardized reference
< 1 min
Query mapping time
COMPARATIVE ANALYSIS

Data Integration vs. Related Concepts

Distinguishing computational data integration from related single-cell preprocessing and analysis steps

FeatureData IntegrationNormalizationBatch Effect CorrectionMultimodal Integration

Primary objective

Align multiple datasets into a shared latent space while preserving biological variation

Scale counts within a single dataset to enable cross-cell comparisons

Remove technical variation from known batch sources

Fuse disparate data types into a unified representation

Input data scope

Multiple datasets from different experiments, labs, or technologies

Single count matrix from one experiment

Single or multiple datasets with known batch labels

Multiple assays measuring different modalities on the same cells

Handles cross-technology differences

Preserves biological variation

Explicitly modeled and retained

Not applicable

Risk of overcorrection removing true signal

Depends on anchor-based or joint learning approach

Common algorithms

Harmony, scVI, MNN, CCA, Scanorama

Library-size scaling, SCTransform, scran

ComBat, limma, regression-based methods

WNN, MOFA+, TotalVI, Seurat v5 bridge integration

Output representation

Corrected low-dimensional embeddings or corrected count matrix

Normalized expression matrix

Corrected expression matrix

Joint latent space or weighted nearest-neighbor graph

Typical position in workflow

After per-dataset QC and normalization, before clustering

Immediately after QC filtering

After normalization, before or during integration

After per-modality processing, before joint analysis

Requires reference dataset

DATA INTEGRATION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about aligning and integrating single-cell sequencing datasets to remove batch effects while preserving biological variation.

Data integration is the computational process of aligning multiple single-cell datasets—often generated across different laboratories, time points, or technology platforms—into a shared, batch-corrected latent space. The primary objective is to remove non-biological systematic variation, known as batch effects, while preserving true biological heterogeneity such as distinct cell types, states, and disease-specific transcriptional programs. Integration algorithms typically operate by first identifying shared sources of variation across datasets, often through canonical correlation analysis (CCA) or mutual nearest neighbor (MNN) detection, and then applying a transformation that harmonizes the data distributions. Methods like Harmony iteratively correct for batch-specific effects by clustering cells and applying a soft-clustering-based correction, while Seurat's CCA-based integration identifies cross-dataset anchor correspondences to project datasets into a unified space. The output is a corrected expression matrix or a low-dimensional embedding where cells group by biological identity rather than technical origin, enabling joint downstream analyses such as clustering, differential expression testing, and trajectory inference across the combined cohort.

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.