← Back to list

Selection of Highly Variable Genes (HVG’s) in scRNA-seq

Faraz Ahmed in Byte Sized Machine Learning · 2024-03-03 06:14 · 31 claps · 2.1 min read paywalled
#bioinformatics #single-cell-analysis #10x-genomics #hvg #data-science
Open on Medium ↗
Wiki topics: ML · Machine Learning BIN · Bioinformatics GEN · Genomics & Sequencing 🔬 · Science · General 🏛️ · Politics

Selection of Highly Variable Genes (HVG’s) in scRNA-seq datasets

A take on Heteroskedasticity in scRNA-seq data-sets

For context, when performing Single-Cell RNA sequencing analysis, a pivotal step is finding the Highly Variable Genes or HVGs. These HVGs are important as they directly influence the downstream analysis steps such as clustering.

Over the years, many methods have been developed to select for HVGs, however, it turns out that there is an intrinsic aspect pertaining to these data that must be corrected before HVGs can be properly selected.

Why do we need to select for HVGs in the first place?

In reality, there are tens and thousands of genes that are sequenced in each cell, however, the underlying challenge is the sparse nature of the data generated by single-cell experiments (Most cells have zero counts associated with a given gene). These zeros are primarily derived from drop-out events alongside other technical limitations of the technology.

In addition, a majority of the genes across all cells are highly correlated. Therefore, it makes sense to focus on genes that are highly variable across cells (typically top 2000 - top 5000 genes). These are the genes that drive the main signal in our dataset. Selecting for HVGs not only makes the data less sparse in comparison to the original count matrix, but also facilitates the downstream computational steps to be more efficient.

The problem:

image source: https://ouyanglab.com/singlecell/basic.html

image source: https://ouyanglab.com/singlecell/basic.html

It may be easier to conceptually understand the problem through visualization. Let's take a look at the left panel in the above figure. In this panel, we have plotted the relationship of a gene’s average expression with its observed variance. Each dot here is a gene, the x-axis is the average expression of that gene and the y-axis is the observed variance associated with that gene.

In this panel, we observe that there is a very strong positive relationship between a gene’s average expression and its observed variance. In other words, highly expressed genes have high variances associated with them and vice versa. This phenomenon is often referred to as heteroskedasticity within the data and must be corrected before proceeding with any downstream analysis steps.

In short, the dependance of a gene’s expression with its observed variance is what needs to be corrected prior to HVG selection.

The Solution:

A very common way to correct this problem is by applying a Variance Stabilizing Transformation (VST) to the data, and we see in the right panel of the above figure that once VST is applied, the relationship of observed variance at any given level of average expression for a gene has been removed/standardized.

If you like this article, please let me know and we can start a series on scRNA-seq analysis and explore these concepts together =)


메타데이터
post_id
647c8eee3845
slug
selection-of-highly-variable-genes-hvgs-in-scrna-seq-647c8eee3845
url
https://medium.com/byte-sized-machine-learning/selection-of-highly-variable-genes-hvgs-in-scrna-seq-647c8eee3845
canonical_url
https://medium.com/byte-sized-machine-learning/selection-of-highly-variable-genes-hvgs-in-scrna-seq-647c8eee3845
author_url
https://medium.com/@farazxcii
status
ok
fetched_at
2026-06-09 15:37:30