Highly Variable Gene Selection (HVG selection) is a feature selection method that identifies the most informative genes exhibiting significant cell-to-cell variation in expression, reducing the dimensionality of single-cell transcriptomic data while preserving the dominant biological signal. By modeling the relationship between mean expression and variance, HVG selection distinguishes genes whose variability exceeds technical noise expectations, typically retaining 1,000–5,000 genes for downstream analysis.
Glossary
Highly Variable Gene Selection

What is Highly Variable Gene Selection?
A critical dimensionality reduction preprocessing step in single-cell analysis that identifies genes with the greatest cell-to-cell expression variance to capture dominant biological signals while filtering out technical noise.
This selection is foundational to workflows in Seurat, Scanpy, and other single-cell frameworks, where the chosen highly variable genes drive principal component analysis (PCA), graph-based clustering, and trajectory inference. Without HVG selection, computational resources are wasted on stochastically expressed or uniformly low-abundance genes, while genuine biological heterogeneity—driven by cell type, cell cycle, or developmental state—remains obscured by the curse of dimensionality.
Key Characteristics of HVG Selection
Highly Variable Gene (HVG) selection is a critical dimensionality reduction step that identifies genes with the greatest cell-to-cell expression variance, preserving the dominant biological signal while filtering out stochastic noise.
Mean-Variance Relationship Modeling
HVG selection corrects for the inherent dependency between a gene's mean expression and its variance. In single-cell data, highly expressed genes naturally show higher absolute variance. Methods like variance-stabilizing transformation (VST) or deviance-based models fit a non-linear curve to this relationship, then select genes that deviate significantly above the expected variance for their expression level. This prevents the selection of highly expressed but uninformative housekeeping genes.
Biological vs. Technical Variance
The core objective is to isolate biological heterogeneity from technical noise. Technical variation arises from:
- Sampling noise: Low capture efficiency in droplet-based systems
- Amplification bias: Uneven PCR amplification across transcripts
- Dropout events: Genes with zero counts due to failed detection
HVG methods model the expected technical variance and select genes where observed variance exceeds this baseline, enriching for genuine biological signal.
Common Selection Algorithms
Three dominant approaches are implemented in standard workflows:
- Seurat v3/v5 VST: Applies variance-stabilizing transformation, bins genes by mean expression, and selects top variance within each bin. Returns 2,000 HVGs by default.
- scran modelGeneVar: Fits a gamma-Poisson GLM to decompose total variance into biological and technical components, selecting genes with positive biological variance.
- Scanpy highly_variable_genes: Implements both dispersion-based (normalized variance over mean) and Pearson residual methods for HVG identification.
Impact on Downstream Analysis
HVG selection directly shapes the latent space used for clustering and visualization:
- PCA input: Only HVGs are used for principal component computation, ensuring PCs capture biological rather than technical variation.
- Graph construction: K-nearest neighbor graphs built on HVG-derived PCs produce more biologically coherent Leiden clusters.
- UMAP/t-SNE: Dimensionality reduction embeddings reflect true cell-type relationships when built from HVG-filtered data.
- Marker gene discovery: Differential expression testing on HVGs reduces multiple-testing burden and enriches for discriminative features.
Selection Thresholds and Sparsity
The number of HVGs selected is a critical hyperparameter:
- Default range: 1,000–5,000 genes, typically 2,000 for 10x Genomics data
- Too few HVGs: Risk excluding rare cell-type-specific genes and subtle biological gradients
- Too many HVGs: Introduce noise, dilute biological signal in PCA, and increase computational cost
- Sparsity consideration: In highly sparse datasets (e.g., Smart-seq2 with low dropout), dispersion-based methods may require adjusted thresholds to avoid selecting genes driven by zero-inflation artifacts.
Flavor Variants and Normalization Dependencies
HVG selection behavior depends critically on upstream normalization:
- Seurat 'vst': Operates on log-normalized data; robust for UMI-based technologies
- Seurat 'mean.var.plot': Legacy dispersion-based method on normalized data
- Scanpy 'seurat_v3': Expects raw counts and applies the count-based VST internally
- Pearson residuals: Applied to raw counts with regularized negative binomial regression, bypassing explicit normalization
Choosing the wrong flavor for your normalization state produces misleading variance estimates and suboptimal gene sets.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about identifying and leveraging the most informative genes in single-cell transcriptomic data.
Highly variable gene (HVG) selection is a feature selection method that identifies a subset of genes exhibiting the greatest cell-to-cell variation in expression, which is used to reduce the dimensionality of single-cell RNA-seq data while preserving the dominant biological signal. It is critical because the vast majority of genes in a typical single-cell dataset are either unexpressed or show minimal variation, contributing only noise. By restricting downstream analyses like Principal Component Analysis (PCA) and clustering to the top 1,000–5,000 HVGs, you dramatically reduce computational overhead, mitigate the 'curse of dimensionality,' and ensure that the primary axes of variation are driven by meaningful biological heterogeneity rather than technical noise or stochastic dropout. The core assumption is that the genes with the highest variance are the most likely to define distinct cell types and states.
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
Understanding highly variable gene selection requires familiarity with the dimensionality reduction techniques, data preprocessing steps, and biological validation methods that surround it in the single-cell analysis pipeline.
Principal Component Analysis (PCA)
A linear dimensionality reduction algorithm that transforms high-dimensional gene expression data into a set of orthogonal principal components capturing the maximum variance. Highly variable gene selection is a critical preprocessing step before PCA to ensure that the components reflect biological heterogeneity rather than technical noise. PCA is often used to verify that selected HVGs capture the dominant axes of variation in the dataset.
Uniform Manifold Approximation and Projection (UMAP)
A nonlinear dimensionality reduction technique that preserves both local and global data structure, widely used to visualize single-cell transcriptomic landscapes. UMAP operates on the principal component space derived from highly variable genes, making HVG selection a foundational step that directly impacts the quality and biological interpretability of the final visualization.
Count Matrix Normalization
A preprocessing step that adjusts raw single-cell gene expression counts to account for differences in sequencing depth and capture efficiency. Normalization must be performed before highly variable gene selection, as unnormalized data would cause HVG algorithms to select genes driven by technical artifacts rather than genuine biological variation. Common methods include library-size normalization and regularized negative binomial regression.
Batch Effect Correction
A computational process that removes technical variation introduced by different experimental batches. If batch effects are not corrected before HVG selection, the algorithm may select genes that distinguish batches rather than cell types. Integration methods like Harmony or scVI are often applied post-normalization but can influence which genes are identified as highly variable.
Cell Cycle Scoring
A computational method that assigns each cell a numerical score representing its progression through the cell cycle phases. Cell cycle genes are often highly variable and can dominate HVG selection, obscuring more biologically interesting signals. Practitioners frequently regress out cell cycle scores or explicitly exclude known cell cycle genes from the HVG list to focus on differentiation-related variation.
scVI (Single-cell Variational Inference)
A deep generative model based on a variational autoencoder that learns a probabilistic latent representation of gene expression. scVI explicitly models batch effects and zero-inflation while identifying biologically meaningful variation. Unlike traditional HVG selection, scVI operates on the full gene set and learns a latent space that implicitly performs feature selection, often outperforming mean-variance-based HVG methods.

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