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.
Glossary
Data Integration

What is Data Integration?
Data integration is the computational process of combining multiple single-cell datasets to harmonize technical variation while preserving biological heterogeneity.
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.
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.
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
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
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
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
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
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
Data Integration vs. Related Concepts
Distinguishing computational data integration from related single-cell preprocessing and analysis steps
| Feature | Data Integration | Normalization | Batch Effect Correction | Multimodal 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 |
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Mastering data integration requires understanding the core computational challenges and solutions that enable the harmonization of heterogeneous single-cell datasets.
Batch Effect
The primary adversary that data integration algorithms seek to overcome. Batch effects are non-biological systematic variations introduced by technical factors—different experimental runs, reagents, sequencing lanes, or technicians—that confound true biological signal. Without correction, cells cluster by technical origin rather than cell type. Integration methods model and remove these effects while preserving biological variability across conditions or disease states.
Mutual Nearest Neighbors (MNN)
A foundational concept in single-cell integration where cells from different batches are considered corresponding if they are mutual nearest neighbors in a shared feature space. MNN pairs identify overlapping biological populations across datasets, defining anchor points for batch correction. This principle underpins algorithms like fastMNN and Scanorama, which use these anchors to estimate and subtract batch-specific variation vectors without assuming a global linear correction model.
Canonical Correlation Analysis (CCA)
A statistical dimensionality reduction technique adapted for single-cell integration to identify shared correlation structures between datasets. Unlike PCA, which finds variance within a single matrix, CCA finds linear combinations of features that maximize correlation across two datasets. In the Seurat integration workflow, CCA identifies a conserved biological subspace, enabling the alignment of cells from different conditions into a common reference before downstream clustering and differential expression analysis.
Harmony
An iterative, soft-clustering algorithm that integrates single-cell data by correcting principal component embeddings. Harmony alternates between clustering cells into diverse groups and applying dataset-specific linear correction factors to each cluster centroid. This approach is computationally efficient, scales to large atlases, and does not require a designated reference dataset. It is particularly effective for integrating complex experimental designs with multiple overlapping batch variables.
scVI (Single-Cell Variational Inference)
A deep generative model that uses variational autoencoders to learn a latent representation of single-cell data while explicitly modeling batch effects. scVI treats gene expression counts as samples from a zero-inflated negative binomial distribution conditioned on batch annotations and latent biological variables. This probabilistic framework provides uncertainty estimates, supports differential expression testing, and enables scArches for reference mapping—projecting new query cells onto an existing integrated atlas without retraining.
Integration Evaluation Metrics
Quantitative measures to assess whether integration successfully mixed batches while preserving biological structure. Key metrics include:
- kBET: Tests if the local batch label distribution matches the global distribution, measuring mixing quality.
- ASW (Average Silhouette Width): Evaluates whether cells cluster by cell type rather than batch after integration.
- LISI (Local Inverse Simpson's Index): Separately quantifies batch mixing (iLISI) and cell-type separation (cLISI) in local neighborhoods.
- Graph connectivity: Measures whether cells of the same type from different batches are connected in a nearest-neighbor graph.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us