Reported DESeq2 bug flips gene up/down direction in published RNA-seq papers
The author says Gemini 4 Neon, run overnight in the antigravity CLI on an old cancer RNA-seq[2] project, found a bug in DESeq2[1], an R package cited more than 107,567 times for finding genes that differ between groups. According to the author, the bug has been in lfcShrink() since April 2017 and silently turns genes from up to down. The author describes how, when a group has 7 or more replicates, DESeq() replaces outlier counts for its calculations and then restores the raw counts, and lfcShrink() reads those raw counts back in while keeping the replaced values. As a result, one row can show log2FC[3] = +4.51 next to a Wald statistic of −8.36.
The author says a DESeq2 issue filed on 1 October 2026 described the same source lines and was closed as intended behavior. In 48 simulation tests under single-sample spikes, the author reports 0.0% coverage of the 95% interval. Across 16 TCGA cohorts, the author counts 1,301 statistically significant sign reversals, and one breast cancer biopsy changes MYH7 by 9.17 log2 units.
The author audited 12 recent studies with at least 7 replicates per group and says that 11 of them had significant genes flip sign, while broad multi-gene themes held. The author says the papers' authors followed the official vignette, and that the author's own review used separate Claude and Codex sessions. Code, a 5-line fix and an audit script are said to be in the linked reply.
Read the original x.comDiscussion
Discussion
Commenters are mostly skeptical or joking. One asked why the title names Gemini while the text mentions Claude, and another shared a plain-language summary produced by Gemini. Others note that clinical impact would take years of testing.
Primary sources and details
- Primary source DESeq2 vignette (devel), lfcShrink and DESeq usage bioconductor.org
- Primary source Original DESeq2 paper (Love, Huber, Anders 2014) pmc.ncbi.nlm.nih.gov
- Tool DESeq2 source vignette on GitHub (devel branch) github.com
- Tool DESeq2 GitHub repository, where the issue is tracked github.com
- Tool DESeq2 Bioconductor package page bioconductor.org
Sources
-
X
Gemini Neon finds bug in widely-used RNA sequencing analysis (DESeq2), potentially affecting 100k+ papers


