Moderated Estimation of Fold Change and Dispersion for RNA-seq Data with DESeq2 — TEI-tagged view

Michael I. Love, Wolfgang Huber, Simon Anders · 2014 · genetics · doi:10.1186/s13059-014-0550-8 · full text at the source · TEI xml · tagged edition · index · concepts · authors
Where this record's text came from. faceted 2026-08 by reading the locally held text (xml); every evidence string verified as an exact substring of that text before merging. Source is the Genome Biology XML rendered to text, so displayed equations appear as LaTeX preamble blocks and inline citations carry padded brackets ('[ 4 ]', '( 6 )'); quotes preserve that spacing exactly. Replication status is 'replicated' solely on the paper's own statement that an independent benchmark by Zhou et al. found the same sensitivity advantage. The contrast with edgeR ('The approach of DESeq2 differs from that of edgeR [ 3 ]') was not coded as 'contradicts' because it is a design difference, not a disputed finding. 2026-08-12, 2026-08-25 and 2026-08-28 schema-0.3 passes: every quote verified as an exact substring of the staged text and anchored at merge time; concept terms verified present; every edge endpoint an existing node. Update, 15 September 2026: EXCEPTION, measured with the merge gate's own predicate (Paper.locate): 2 quote(s) on this record are not found as one exact string in the current staged text - content_tags.statistics[18].evidence, content_tags.statistics[3].evidence. The sentence above does not hold for them as written. Where a row records why - the quote is grounded in another copy of the paper, joins two passages with an ellipsis, or differs from the staged text by extraction noise - that note stays on the row.
1 quote on this page breaks a word across a line. The PDF this text was extracted from hyphenated a word at the end of a printed line — adversar- ial, repre- sentations — and the extractor kept the hyphen and the space. The quotes keep them because a quote is reproduced exactly or it proves nothing: the break is the typesetter’s, not the author’s. A search of this page will not find the affected words.
2 quotations on this page contain a reference number where the paper printed a superscript. This journal style prints citations as raised numerals — parameters12,13 — and the extraction flattened them into the line, so the sentence reads parameters 12 , 13 . The digits are citation markers and not part of what the author wrote. The quotes keep them for the same reason they keep every other extraction fault: a quote is reproduced exactly or it proves nothing.
2 quotes on this page were cut from a different copy of this article. This project holds two extractions of this paper: the plain text every other quote here is anchored in, and the publisher’s own HTML edition, which we are not licensed to republish. They are verbatim in the second and cannot be found in the first — not because the tagging is wrong, but because the extraction damaged the passage: a page number dropped into the middle of a number, a formula moved out of its sentence, a ligature where two letters belong. The record names the copy for each one. The quote is the paper’s; the extraction is not.
Other fields define these differently the same word, defined another way in another discipline
false-discovery-rate 6 fields · sample size 5 fields · null hypothesis 3 fields · standard-deviation 3 fields · statistical-power 2 fields · DESeq2 2 fields · and 9 more →
Tags on this paper every tag the record carries, whether or not the words occur in the text below — a number is how many papers in the corpus carry that tag; a tag with no number is unique to this paper
differential expression2 RNA-seq5 negative binomial model2 statistical model2 negative binomial3 gamma-Poisson2 dispersion shrinkage3 size factors count data DESeq22 method for differential analysis of count data generalized linear model6 logarithmic fold change2 maximum-likelihood estimates2 MAP estimates bias-variance trade-off Wald test likelihood ratio test7 independent filtering2 composite null hypotheses Cook’s distance rlog transformation variance-stabilizing transformation edgeR2 agreement between the two independent sample groups R/Bioconductor package system-or-tool-building173

Colour legend

Heidelberg<placeName>A place — city or country tied to the work.
Genome Biology<title level="j">A work — the journal / venue title.
2014<date>A year or date.

Michael I. LovepersName, Wolfgang HuberpersName, Simon AnderspersName (2014date). “Moderated Estimation of Fold Change and Dispersion for RNA-seq Data with DESeq2.” Genome Biologytitle·j, HeidelbergplaceName.

Object of study — Count dataterm·dom from high-throughput sequencing, and how to detect systematic differences in gene expression when there are only two or three replicatesterm·key.

Research question — With two or three replicatesterm·key per condition, per-gene variance estimates are too noisy to test with - how can genes be ranked by the strength of an effect rather than by whether it reached significance?

Contribution — Empirical Bayes shrinkageterm·def of both dispersionterm·mth and fold changeterm·key, giving stable effect-sizeterm·stat estimates that support ranking and threshold tests rather than only presence-or-absence testing.

Cross-disciplinary analysis
content-tags & facets: phenomenon · claim-type · cross-domain-transfer · mechanism · claim-relation · replication-status · limitation — grounded in the full text
phenomenondifferential expression in RNA-seq count data — “In comparative high-throughput sequencing assays, a fundamental task is the analysis of count data, such as read counts per gene in RNA-seq, for evidence of systematic changes across experimental conditions.”
claim-typemethod — “We present DESeq2 , a method for differential analysis of count data, using shrinkage estimation for dispersions and fold changes to improve stability and interpretability of estimates.”
method — evidence — “DESeq2 is implemented as a package for the R statistical environment and is available [ 10 ] as part of the Bioconductor project [ 11 ].”
object of study — evidence — “In comparative high-throughput sequencing assays, a fundamental task is the analysis of count data, such as read counts per gene in RNA-seq, for evidence of systematic changes across experimental conditions.”
research question — evidence — “Inferential methods that treat each gene separately suffer here from lack of power, due to the high uncertainty of within-group variance estimates.”
contribution — evidence — “This enables a more quantitative analysis focused on the strength rather than the mere presence of differential expression.”
transferfrom statistics (generalized linear models, empirical Bayes): negative-binomial generalized linear models with empirical-Bayes shrinkage applied to detect differential gene expression in RNA-seq — “using shrinkage estimation for dispersions and fold changes to improve stability”transfers[0]
mechanismempirical-Bayes shrinkage: pool information across thousands of genes to shrink noisy per-gene dispersion and fold-change estimates toward a common trend, stabilizing inference with few replicates — “Empirical Bayes shrinkage for dispersion estimation”mechanisms[0]
mechanismthe small-sample problem is solved by borrowing strength across genes rather than by collecting more samples — “In high-throughput assays, this limitation can be overcome by pooling information across genes, specifically, by exploiting assumptions about the similarity of the variances of different genes measured in the same experiment [ 1 ].”mechanisms[1]
mechanismthe borrowing is conditioned on expression strength: genes of similar average expression are assumed to have similar dispersion, so the pooling is local rather than global — “In DESeq2 , we assume that genes of similar average expression strength have similar dispersion.”mechanisms[2]
mechanismshrinkage moves each noisy per-gene estimate toward a fitted trend, trading a little bias for a large reduction in variance — “We then shrink the gene-wise dispersion estimates toward the values predicted by the curve to obtain final dispersion values (blue arrow heads).”mechanisms[3]
mechanismthe reason for shrinking fold changes too: ranking by effect size is the goal, and raw fold changes for low-count genes are too noisy to rank on — “Ranking by fold change, on the other hand, is complicated by the noisiness of LFC estimates for genes with low counts.”mechanisms[4]
extends the DESeq method (Anders and Huber) — “Here we present DESeq2 , a successor to our DESeq method [ 4”claim_relations[0]
extends DESeq, reference [4] — “Here we present DESeq2 , a successor to our DESeq method [ 4 ].”claim_relations[1]
builds-on DSS, reference [6] — “Our approach is similar to the one used by DSS [ 6 ], in that both methods sequentially estimate a prior distribution for the true dispersion values around the fit, and then provide the maximum a posteriori (MAP) as the final estimate.”claim_relations[2]
replicates the benchmarks of Zhou et al. [34] — “DESeq2 had higher sensitivity compared to the other algorithms, particularly for small fold change (2 or 3), as was also found in benchmarks performed by Zhou et al. [ 34 ].”claim_relations[3]
extends DESeq, the authors' own earlier method — “Here we present DESeq2 , a successor to our DESeq method [ 4 ].”claim_relations[4]
contradicts ranking differentially expressed genes by P value — “However, small changes, even if statistically highly significant, might not be the most interesting candidates for further investigation.”claim_relations[5]
builds-on edgeR, BBSeq, DSS, baySeq and ShrinkBayes - the family of information-sharing dispersion estimators — “edgeR [ 2 , 3 ] moderates the dispersion estimate for each gene toward a common estimate across all genes, or toward a local estimate from genes with similar expression strength, using a weighted conditional likelihood.”claim_relations[6]
sensesignificance - as a hypothesis test result: the fold change is not exactly zero, which the paper treats as a weak thing to know — “The most common approach in the comparative analysis of transcriptomics data is to test the null hypothesis that the logarithmic fold change (LFC) between treatment and control for a gene’s expression is exactly zero, i.e., that the gene is not at all affected by the treatment.”senses[0]
sensesignificance - as biological interest, which the paper says a significant small change can fail to have — “However, small changes, even if statistically highly significant, might not be the most interesting candidates for further investigation.”senses[1]
sensedispersion - as a nuisance parameter to be estimated accurately, since bad estimates corrupt every downstream test — “If used directly, these noisy estimates would compromise the accuracy of differential expression testing.”senses[2]
senseDESeq2 - differential count-data analysis using shrinkage for dispersion and fold-change estimates — “We present DESeq2 , a method for differential analysis of count data, using shrinkage estimation for dispersions and fold changes to improve stability and interpretability of estimates. This enables a more quantitative analysis focused on the strength rather than the mere presence of differential expression”senses[3]
senseGeneralized linear model - per-gene negative-binomial count model — “For each gene, we fit a generalized linear model (GLM) [ 12 ] as follows. We model read counts K ij as following a negative binomial distribution (sometimes also called a gamma-Poisson distribution)”senses[4]
senseLogarithmic fold change - effect-size coefficient estimated first by likelihood and then with an empirical-Bayes prior — “We again employ an empirical Bayes procedure: we first perform ordinary GLM fits to obtain maximum-likelihood estimates (MLEs) for the LFCs and then fit a zero-centered normal distribution to the observed distribution of MLEs over all genes. This distribution is used as a prior on LFCs in a second round of GLM fits, and the MAP estimates are kept as final estimates of LFC”senses[5]
senseMaximum-likelihood estimate - first-round unregularized LFC estimate — “We again employ an empirical Bayes procedure: we first perform ordinary GLM fits to obtain maximum-likelihood estimates (MLEs) for the LFCs and then fit a zero-centered normal distribution to the observed distribution of MLEs over all genes. This distribution is used as a prior on LFCs in a second round of GLM fits, and the MAP estimates are kept as final estimates of LFC”senses[6]
senseMAP estimate - posterior-mode LFC retained after the second model fit — “We again employ an empirical Bayes procedure: we first perform ordinary GLM fits to obtain maximum-likelihood estimates (MLEs) for the LFCs and then fit a zero-centered normal distribution to the observed distribution of MLEs over all genes. This distribution is used as a prior on LFCs in a second round of GLM fits, and the MAP estimates are kept as final estimates of LFC”senses[7]
senseBias-variance trade-off - accepting bias toward zero to reduce high variance and mean-squared error — “The shrinkage of LFC estimates can be described as a bias-variance trade-off [ 18 ]: for genes with little information for LFC estimation, a reduction of the strong variance is bought at the cost of accepting a bias toward zero, and this can result in an overall reduction in mean squared error”senses[8]
senseWald test - standardized shrunken LFC compared with a standard normal distribution — “For significance testing, DESeq2 uses a Wald test: the shrunken estimate of LFC is divided by its standard error, resulting in a z -statistic, which is compared to a standard normal distribution. (See Materials and methods for details.) The Wald test allows testing of individual coefficients, or contrasts of coefficients, without the need to fit a reduced model as with the likelihood ratio test, though the likelihood ratio test is also available as an option in DESeq2”senses[9]
senseLikelihood-ratio test - optional alternative requiring a reduced-model fit — “For significance testing, DESeq2 uses a Wald test: the shrunken estimate of LFC is divided by its standard error, resulting in a z -statistic, which is compared to a standard normal distribution. (See Materials and methods for details.) The Wald test allows testing of individual coefficients, or contrasts of coefficients, without the need to fit a reduced model as with the likelihood ratio test, though the likelihood ratio test is also available as an option in DESeq2”senses[10]
senseIndependent filtering - excluding low-mean genes from multiplicity adjustment to maximize discoveries at target FDR — “DESeq2 uses the average expression strength of each gene, across all samples, as its filter criterion, and it omits all genes with mean normalized counts below a filtering threshold from multiple testing adjustment. DESeq2 by default will choose a threshold that maximizes the number of genes found at a user-specified target FDR”senses[11]
senseComposite null hypothesis - a fold-change threshold included in the test rather than applied after it — “It is therefore desirable to include the threshold in the statistical testing procedure directly, i.e., not to filter post hoc on a reported fold-change estimate , but rather to evaluate statistically directly whether there is sufficient evidence that the LFC is above the chosen threshold”senses[12]
senseCook's distance - scaled coefficient movement after removing and refitting one sample — “A standard outlier diagnostic is Cook’s distance [ 25 ], which is defined within each gene for each sample as the scaled distance that the coefficient vector, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document} $\vec {\beta }_{i}$ \end{document} β → i , of a linear model or GLM would move if the sample were removed and the model refit”senses[13]
senseRlog transformation - depth-aware variance stabilization after accounting for sample size factors — “The rlog transformation accounts for variation in sequencing depth across samples as it represents the logarithm of q ij after accounting for the size factors s ij . This is in contrast to the variance-stabilizing transformation (VST) for overdispersed counts introduced in DESeq [ 4 ]: while the VST is also effective at stabilizing variance, it does not directly take into account differences in size factors”senses[14]
senseVariance-stabilizing transformation - variance stabilizer that does not directly incorporate size-factor differences — “The rlog transformation accounts for variation in sequencing depth across samples as it represents the logarithm of q ij after accounting for the size factors s ij . This is in contrast to the variance-stabilizing transformation (VST) for overdispersed counts introduced in DESeq [ 4 ]: while the VST is also effective at stabilizing variance, it does not directly take into account differences in size factors”senses[15]
senseedgeR - comparison method using a user-adjustable prior-degrees-of-freedom parameter — “The approach of DESeq2 differs from that of edgeR [ 3 ], as DESeq2 estimates the width of the prior distribution from the data and therefore automatically controls the amount of shrinkage based on the observed properties of the data. In contrast, the default steps in edgeR require a user-adjustable parameter, the prior degrees of freedom , which weighs the contribution of the individual gene estimate and edgeR ’s dispersion fit”senses[16]
senseReplicate-split agreement - reproducibility increased by shrinking unsupported large LFCs — “Because the shrinkage moves large LFCs that are not well supported by the data toward zero, the agreement between the two independent sample groups increases considerably. Therefore, shrunken fold-change estimates offer a more reliable basis for quantitative conclusions than normal MLEs”senses[17]
senseDESeq2 software - R package distributed through Bioconductor — “DESeq2 is implemented as a package for the R statistical environment and is available [ 10 ] as part of the Bioconductor project”senses[18]
controla scheme that detects and excludes dispersion outliers before the fit — held — rules out that a single outlying gene skews the dispersion fit and so distorts inference for every other gene — “Furthermore, dispersion outliers could skew the fit and hence a scheme to exclude such outliers is used.”controls[0]
evidence status notethe DESeq method (Anders and Huber) — QUOTE RECOVERED FROM THE PAPER'S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file's own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted. Update, 15 September 2026: CLEARED evidence status='quote-not-in-current-staged-text' - the quote now locates in the current staged text, so the condition the marker recorded no longer holds. — “Here we present DESeq2 , a successor to our DESeq method [ 4”claim_relations[0]
edgegamma-Poisson —same-as→ negative binomial — “We model read counts K ij as following a negative binomial distribution (sometimes also called a gamma-Poisson distribution) with mean μ ij and dispersion α i .”concept_edges[0]
edgedispersion —part-of→ negative binomial — “We model read counts K ij as following a negative binomial distribution (sometimes also called a gamma-Poisson distribution) with mean μ ij and dispersion α i .”concept_edges[1]
auditshrinkage —causes→ dispersion — Audit 2026-09-28: DOUBTFUL - read against its span and kept, but shrinkage acts on the dispersion ESTIMATES; causes 'dispersion' drops 'estimates'. — “We then shrink the gene-wise dispersion estimates toward the values predicted by the curve to obtain final dispersion values (blue arrow heads).”concept_edges[2]
noteshrinkage —causes→ dispersion — DOUBTFUL, found by an audit that read the edge against its span: shrinkage acts on dispersion estimates - 'causes' borderline. The edge is kept live; a reader should weigh it with this in mind. — “We then shrink the gene-wise dispersion estimates toward the values predicted by the curve to obtain final dispersion values (blue arrow heads).”concept_edges[2]
auditdifferential expression —operationalised-as→ count data — Audit 2026-09-28: DOUBTFUL - read against its span and kept, but differential expression is tested on count data; data are not an operationalisation of the test. — “In comparative high-throughput sequencing assays, a fundamental task is the analysis of count data, such as read counts per gene in RNA-seq, for evidence of systematic changes across experimental conditions.”concept_edges[3]
weightdifferential expression —operationalised-as→ count data — 0.9 — “In comparative high-throughput sequencing assays, a fundamental task is the analysis of count data, such as read counts per gene in RNA-seq, for evidence of systematic changes across experimental conditions.”concept_edges[3]
noteDESeq2 —distinct-from→ edgeR — The paper explicitly says the approaches differ and contrasts automatic prior-width estimation with a user-adjustable parameter. — “The approach of DESeq2 differs from that of edgeR [ 3 ], as DESeq2 estimates the width of the prior distribution from the data and therefore automatically controls the amount of shrinkage based on the observed properties of the data. In contrast, the default steps in edgeR require a user-adjustable parameter, the prior degrees of freedom , which weighs the contribution of the individual gene estimate and edgeR ’s dispersion fit”concept_edges[4]
noteWald test —distinct-from→ likelihood ratio test — The paper distinguishes the Wald test by its lack of a reduced-model fit, which the likelihood-ratio test requires. — “For significance testing, DESeq2 uses a Wald test: the shrunken estimate of LFC is divided by its standard error, resulting in a z -statistic, which is compared to a standard normal distribution. (See Materials and methods for details.) The Wald test allows testing of individual coefficients, or contrasts of coefficients, without the need to fit a reduced model as with the likelihood ratio test, though the likelihood ratio test is also available as an option in DESeq2”concept_edges[5]
noterlog transformation —contrasted-with→ variance-stabilizing transformation — The paper uses an explicit 'in contrast to' construction and states the size-factor distinction without hedging. — “The rlog transformation accounts for variation in sequencing depth across samples as it represents the logarithm of q ij after accounting for the size factors s ij . This is in contrast to the variance-stabilizing transformation (VST) for overdispersed counts introduced in DESeq [ 4 ]: while the VST is also effective at stabilizing variance, it does not directly take into account differences in size factors”concept_edges[6]
effect directionshrinkage —causes→ agreement between the two independent sample groups — increases — “Because the shrinkage moves large LFCs that are not well supported by the data toward zero, the agreement between the two independent sample groups increases considerably. Therefore, shrunken fold-change estimates offer a more reliable basis for quantitative conclusions than normal MLEs” — “the agreement between the two independent sample groups increases considerably”concept_edges[7]
noteshrinkage —causes→ agreement between the two independent sample groups — The paper explicitly attributes the increased agreement to shrinkage with a 'Because ... increases' construction. — “Because the shrinkage moves large LFCs that are not well supported by the data toward zero, the agreement between the two independent sample groups increases considerably. Therefore, shrunken fold-change estimates offer a more reliable basis for quantitative conclusions than normal MLEs”concept_edges[7]
outcome (stated by the tagger, no quotation)control — heldcontrols[0]
for which uselimitation — any per-gene reading of the dispersion estimate: the fitted curve DOES NOT REPRESENT DEVIATIONS OF INDIVIDUAL GENES FROM THIS overall trend — “This provides an accurate estimate for the expected dispersion value for genes of a given expression strength but does not represent deviations of individual genes from this overall trend.”limitations[0]
for which uselimitation — outlier handling in small designs: IF THERE ARE TWO OR FEWER REPLICATES FOR A CONDITION, THESE SAMPLES DO NOT CONTRIBUTE TO OUTLIER DETECTION — “However, if there are two or fewer replicates for a condition, these samples do not contribute to outlier detection, as there are insufficient replicates to determine outlier status.”limitations[1]
for which uselimitation — any within-sample ranking of genes after rlog: THE ORDERING OF GENES WITHIN A SAMPLE WILL CHANGE IF NEIGHBORING GENES UNDERGO SHRINKAGE - unlike the VST — “A disadvantage of the rlog transformation with respect to the VST is, however, that the ordering of genes within a sample will change if neighboring genes undergo shrinkage of different strength.”limitations[2]
for which uselimitation — power in the low-count range: the parametrization IS ... MILDLY CONSERVATIVE and can overestimate dispersion there — “Therefore, the parametrization ( 6 ) is a flexible and mildly conservative modeling choice: it is able to pick up dispersion-mean dependence if it is present, while it can lead to a minor loss of power in the low-count range due to a tendency to overestimate dispersion there.”limitations[3]
for which uselimitation — every figure from the real-data benchmark: THE CALLS FROM THE VERIFICATION SET ARE ONLY AN APPROXIMATION OF THE TRUE DIFFERENTIAL STATE, with systematic and stochastic error — “It is important to keep in mind that the calls from the verification set are only an approximation of the true differential state, and the approximation error has a systematic and a stochastic component.”limitations[4]
for which uselimitation — the ranking of algorithms specifically: OUR BENCHMARK ASSUMES THAT THESE AFFECT ALL ALGORITHMS MORE OR LESS EQUALLY AND DO NOT MARKEDLY CHANGE THE RANKING - assumed, untested — “For the systematic errors, our benchmark assumes that these affect all algorithms more or less equally and do not markedly change the ranking of the algorithms.”limitations[5]
for which uselimitation — every shrunken estimate: WE ASSUME THAT GENES OF SIMILAR AVERAGE EXPRESSION STRENGTH HAVE SIMILAR DISPERSION - the estimate for one gene rests on the corpus of genes, not on it — “In DESeq2 , we assume that genes of similar average expression strength have similar dispersion.”limitations[6]
for which uselimitation — the headline count of differentially expressed genes in any study using this method: it DEPENDS AS MUCH ON THE SAMPLE SIZE AND OTHER ASPECTS OF EXPERIMENTAL DESIGN AS IT DOES ON THE BIOLOGY — “Furthermore, the number of genes called significantly differentially expressed depends as much on the sample size and other aspects of experimental design as it does on the biology of the experiment – and well-powered experiments often generate an overwhelmingly long list of hits [ 9 ].”limitations[7]
for which uselimitation — the comparative-performance claims: the benchmark against existing tools is the authors' own, over the alternatives and settings they chose — “We furthermore compare DESeq2 ’s statistical power with existing tools, revealing that our methodology has high sensitivity and precision, while controlling the false positive rate.”limitations[8]
replicationuntested
limitationthe fitted dispersion-mean curve does not capture deviations of individual genes from the overall trend — “This provides an accurate estimate for the expected dispersion value for genes of a given expression strength but does not represent deviations of individual genes from this overall trend.”limitations[0]
limitationOutlier detection is unavailable when a condition has two or fewer replicates. — “However, if there are two or fewer replicates for a condition, these samples do not contribute to outlier detection, as there are insufficient replicates to determine outlier status.”limitations[1]
limitationThe rlog transformation can reorder genes within a sample, unlike the variance-stabilizing transformation. — “A disadvantage of the rlog transformation with respect to the VST is, however, that the ordering of genes within a sample will change if neighboring genes undergo shrinkage of different strength.”limitations[2]
limitationThe dispersion-trend parametrization can lose power in the low-count range by overestimating dispersion there. — “Therefore, the parametrization ( 6 ) is a flexible and mildly conservative modeling choice: it is able to pick up dispersion-mean dependence if it is present, while it can lead to a minor loss of power in the low-count range due to a tendency to overestimate dispersion there.”limitations[3]
limitationThe real-data benchmark's ground truth is only an approximation, carrying both systematic and stochastic error. — “It is important to keep in mind that the calls from the verification set are only an approximation of the true differential state, and the approximation error has a systematic and a stochastic component.”limitations[4]
limitationThe benchmark rests on the untested assumption that systematic errors affect all algorithms equally. — “For the systematic errors, our benchmark assumes that these affect all algorithms more or less equally and do not markedly change the ranking of the algorithms.”limitations[5]
limitationThe shrinkage rests on an assumption about the corpus of genes, not on the data of any single gene - genes of similar expression are assumed to have similar dispersion. — “In DESeq2 , we assume that genes of similar average expression strength have similar dispersion.”limitations[6]
limitationThe paper is explicit that significance counts are as much a function of design as of biology, which limits what any such list means. — “Furthermore, the number of genes called significantly differentially expressed depends as much on the sample size and other aspects of experimental design as it does on the biology of the experiment – and well-powered experiments often generate an overwhelmingly long list of hits [ 9 ].”limitations[7]
limitationThe benchmark against competing tools is the authors' own, comparing their method with the alternatives they describe. — “We furthermore compare DESeq2 ’s statistical power with existing tools, revealing that our methodology has high sensitivity and precision, while controlling the false positive rate.”limitations[8]
Content tags
content-observations: finding · quantity · variable · definition · key-term — grounded in the full text
findingshrunken fold changes are more reproducible than raw MLE estimates — “The shrunken MAP LFCs offer a more reproducible quantification of transcriptional differences than standard MLE LFCs”content_tags.findings[0]
findingshrinkage increases agreement between independent replicate groups — “the agreement between the two independent sample groups increases considerably”content_tags.findings[1]
findingDESeq2 achieves high sensitivity and precision while controlling false positives — “our methodology has high sensitivity and precision, while controlling the false positive rate”content_tags.findings[2]
findinglow-count genes show exaggerated fold-change estimates without correction — “weakly expressed genes seem to show much stronger differences”content_tags.findings[3]
evidence status notefinding — QUOTE RECOVERED FROM THE PAPER'S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file's own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted.content_tags.findings[3]
findingThis enables a more quantitative analysis focused on the strength rather than the mere presence of differential expression. — “This enables a more quantitative analysis focused on the strength rather than the mere presence of differential expression.”content_tags.findings[4]
findingStatistical significance is a poor guide to interest: a highly significant small change may not be worth following. — “However, small changes, even if statistically highly significant, might not be the most interesting candidates for further investigation.”content_tags.findings[5]
findingThe method generalises beyond RNA-seq to any comparative count assay - ChIP-seq, chromosome conformation capture, metagenomic taxon counts. — “This task is general: methods for it are typically also applicable for other comparative HTS assays, including chromatin immunoprecipitation sequencing, chromosome conformation capture, or counting observed taxa in metagenomic studies.”content_tags.findings[6]
findingedgeR moderates each gene's dispersion estimate toward a common estimate across all genes, or a local estimate from genes of similar expression, using a weighted conditional likelihood. — “edgeR [ 2 , 3 ] moderates the dispersion estimate for each gene toward a common estimate across all genes, or toward a local estimate from genes with similar expression strength, using a weighted conditional likelihood.”content_tags.findings[7]
quantity2-3 replicates — typical small sample size per condition in HTS experiments — “often as few as two or three replicates per condition”content_tags.quantities[0]
quantity21 of 100 genes — reproducibility of top hits ranked by unshrunken LFC — “For example, if we sort the genes in the two sample groups of Figure 3 by unshrunken LFC estimates, and consider the 100 genes with the strongest upor down-regulation in group I, we find only 21 of these again among the top”content_tags.quantities[1]
quantity81 of 100 genes — reproducibility of top hits after shrinkage — “However, if we rank the genes by shrunken LFC estimates, the overlap improves to 81 of 100 genes”content_tags.quantities[2]
quantity2 residual standard deviations — outlier threshold above the dispersion curve — “more than 2 residual standard deviations above the curve”content_tags.quantities[3]
quantitytwo or three replicates per condition — the typical sample size that makes per-gene estimation unreliable - the constraint the whole method answers — “Besides the need to account for the specifics of count data, such as non-normality and a dependence of the variance on the mean, a core challenge is the small number of samples in typical HTS experiments – often as few as two or three replicates per condition.”content_tags.quantities[4]
variabledispersion parameter (models within-group variance of counts) — “the dispersion parameter α i , which describes the variance of counts”content_tags.variables[0]
evidence status notevariable — QUOTE RECOVERED FROM THE PAPER'S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file's own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted.content_tags.variables[0]
variablelogarithmic fold change (LFC) (effect size tested for differential expression) — “the logarithmic fold change (LFC) between treatment”content_tags.variables[1]
variablesize factor (normalization for sequencing depth across samples) — “which then accounts for differences in sequencing”content_tags.variables[2]
evidence status notevariable — QUOTE RECOVERED FROM THE PAPER'S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file's own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted.content_tags.variables[2]
variablesample size (controls the strength of shrinkage) — “as the sample size increases, the shrinkage decreases in strength”content_tags.variables[6]
variabledegrees of freedom (controls the strength of shrinkage) — “as the sample size increases, the shrinkage decreases in strength”content_tags.variables[7]
definitionnegative binomial distribution — “a negative binomial distribution (sometimes also called a gamma-Poisson distribution)”content_tags.definitions[0]
evidence status notedefinition — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.definitions[0]
definitionheteroskedasticity — “This heteroskedasticity (variance of LFCs depending on mean count)”content_tags.definitions[1]
evidence status notedefinition — QUOTE RECOVERED FROM THE PAPER'S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file's own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted.content_tags.definitions[1]
definitionbias-variance trade-off — “The shrinkage of LFC estimates can be described as a bias-variance trade-off”content_tags.definitions[2]
definitionempirical Bayes shrinkage — “We then shrink the gene-wise dispersion estimates toward the values predicted by the curve to obtain final dispersion values (blue arrow heads).”content_tags.definitions[3]
definitionnull hypothesis — “The most common approach in the comparative analysis of transcriptomics data is to test the null hypothesis that the logarithmic fold change (LFC) between treatment and control for a gene’s expression is exactly zero, i.e., that the gene is not at all affected by the treatment.”content_tags.definitions[5]
definitionsize factors — “To estimate these size factors , the DESeq2 package offers the median-of-ratios method already used in DESeq [ 4 ].”content_tags.definitions[6]
key-termsRNA-seq, differential expression, dispersion, fold change, shrinkage estimation, empirical Bayes, negative binomial, count data, generalized linear model, maximum a posteriori, read counts, shrinkage, gamma-Poisson, size factors, false discovery rates, replicates
Concepts
terms this paper carries, each with the sentence it was cut from — the layer that joins one paper to another. Terms with no quote yet are on CONCEPTS.html.
conceptdifferential expression — “The most common approach in the comparative analysis of transcriptomics data is to test the null hypothesis that the logarithmic fold change (LFC) between treatment and control for a gene’s expression is exactly zero, i.e., that the gene is not at all affected by the treatment.”concepts[0]
conceptnegative binomial — not defined in this paper's own words; the count distribution with a mean and a dispersion, used because read counts are non-normal and their variance grows with the mean — “We model read counts K ij as following a negative binomial distribution (sometimes also called a gamma-Poisson distribution) with mean μ ij and dispersion α i .”concepts[4]
conceptgamma-Poisson — not defined in this paper's own words; the other name for the same distribution, stated as such by the paper — “We model read counts K ij as following a negative binomial distribution (sometimes also called a gamma-Poisson distribution) with mean μ ij and dispersion α i .”concepts[5]
conceptdispersion — not defined in this paper's own words; the parameter carrying within-group variability between replicates, whose estimation is the paper's central difficulty — “Accurate estimation of the dispersion parameter α i is critical for the statistical inference of differential expression.”concepts[6]
conceptshrinkage — not defined in this paper's own words; pulling a noisy per-unit estimate toward a value fitted across all units, buying stability at the cost of a little bias — “We then shrink the gene-wise dispersion estimates toward the values predicted by the curve to obtain final dispersion values (blue arrow heads). We use an empirical Bayes approach ( Materials and methods ), which lets the strength of shrinkage depend (i) on an estimate”concepts[7]
conceptsize factors — not defined in this paper's own words; per-sample scaling that absorbs differences in sequencing depth before any comparison is made — “To estimate these size factors , the DESeq2 package offers the median-of-ratios method already used in DESeq [ 4 ].”concepts[8]
conceptcount data — not defined in this paper's own words; non-normal integer measurements whose variance depends on the mean - the data type that forces the whole modelling choice — “Besides the need to account for the specifics of count data, such as non-normality and a dependence of the variance on the mean, a core challenge is the small number of samples in typical HTS experiments – often as few as two or three replicates per condition.”concepts[9]
conceptDESeq2 — not defined in this paper's own words; differential count-data analysis using shrinkage estimates for dispersion and fold change — “We present DESeq2 , a method for differential analysis of count data, using shrinkage estimation for dispersions and fold changes to improve stability and interpretability of estimates. This enables a more quantitative analysis focused on the strength rather than the mere presence of differential expression”concepts[10]
conceptmethod for differential analysis of count data — not defined in this paper's own words; the class of count-data comparison method instantiated by DESeq2 — “We present DESeq2 , a method for differential analysis of count data, using shrinkage estimation for dispersions and fold changes to improve stability and interpretability of estimates. This enables a more quantitative analysis focused on the strength rather than the mere presence of differential expression”concepts[11]
conceptgeneralized linear model — not defined in this paper's own words; per-gene model fitted to read counts under a negative-binomial distribution — “For each gene, we fit a generalized linear model (GLM) [ 12 ] as follows. We model read counts K ij as following a negative binomial distribution (sometimes also called a gamma-Poisson distribution)”concepts[12]
conceptlogarithmic fold change — not defined in this paper's own words; log-scale expression change whose noisy estimates DESeq2 shrinks — “We again employ an empirical Bayes procedure: we first perform ordinary GLM fits to obtain maximum-likelihood estimates (MLEs) for the LFCs and then fit a zero-centered normal distribution to the observed distribution of MLEs over all genes. This distribution is used as a prior on LFCs in a second round of GLM fits, and the MAP estimates are kept as final estimates of LFC”concepts[13]
conceptmaximum-likelihood estimates — not defined in this paper's own words; first-round unregularized fold-change estimates used to fit the prior — “We again employ an empirical Bayes procedure: we first perform ordinary GLM fits to obtain maximum-likelihood estimates (MLEs) for the LFCs and then fit a zero-centered normal distribution to the observed distribution of MLEs over all genes. This distribution is used as a prior on LFCs in a second round of GLM fits, and the MAP estimates are kept as final estimates of LFC”concepts[14]
conceptMAP estimates — not defined in this paper's own words; posterior-mode fold-change estimates retained after applying the prior — “We again employ an empirical Bayes procedure: we first perform ordinary GLM fits to obtain maximum-likelihood estimates (MLEs) for the LFCs and then fit a zero-centered normal distribution to the observed distribution of MLEs over all genes. This distribution is used as a prior on LFCs in a second round of GLM fits, and the MAP estimates are kept as final estimates of LFC”concepts[15]
conceptbias-variance trade-off — not defined in this paper's own words; variance reduction purchased with bias toward zero for poorly informed fold changes — “The shrinkage of LFC estimates can be described as a bias-variance trade-off [ 18 ]: for genes with little information for LFC estimation, a reduction of the strong variance is bought at the cost of accepting a bias toward zero, and this can result in an overall reduction in mean squared error”concepts[16]
conceptWald test — not defined in this paper's own words; DESeq2 significance test comparing a standardized shrunken LFC with a standard normal distribution — “For significance testing, DESeq2 uses a Wald test: the shrunken estimate of LFC is divided by its standard error, resulting in a z -statistic, which is compared to a standard normal distribution. (See Materials and methods for details.) The Wald test allows testing of individual coefficients, or contrasts of coefficients, without the need to fit a reduced model as with the likelihood ratio test, though the likelihood ratio test is also available as an option in DESeq2”concepts[17]
conceptlikelihood ratio test — not defined in this paper's own words; optional DESeq2 test requiring a reduced-model fit — “For significance testing, DESeq2 uses a Wald test: the shrunken estimate of LFC is divided by its standard error, resulting in a z -statistic, which is compared to a standard normal distribution. (See Materials and methods for details.) The Wald test allows testing of individual coefficients, or contrasts of coefficients, without the need to fit a reduced model as with the likelihood ratio test, though the likelihood ratio test is also available as an option in DESeq2”concepts[18]
conceptindependent filtering — not defined in this paper's own words; omitting low-mean genes from multiple-testing adjustment using an independently chosen filter — “DESeq2 uses the average expression strength of each gene, across all samples, as its filter criterion, and it omits all genes with mean normalized counts below a filtering threshold from multiple testing adjustment. DESeq2 by default will choose a threshold that maximizes the number of genes found at a user-specified target FDR”concepts[19]
conceptcomposite null hypotheses — not defined in this paper's own words; null hypotheses incorporating a non-zero fold-change threshold directly into testing — “It is therefore desirable to include the threshold in the statistical testing procedure directly, i.e., not to filter post hoc on a reported fold-change estimate , but rather to evaluate statistically directly whether there is sufficient evidence that the LFC is above the chosen threshold. DESeq2 offers tests for composite null hypotheses of the form | β ir |≤ θ , where β ir is the shrunken LFC from the estimation procedure described above.”concepts[20]
conceptCook’s distance — not defined in this paper's own words; outlier diagnostic measuring how far model coefficients move when one sample is removed — “A standard outlier diagnostic is Cook’s distance [ 25 ], which is defined within each gene for each sample as the scaled distance that the coefficient vector, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document} $\vec {\beta }_{i}$ \end{document} β → i , of a linear model or GLM would move if the sample were removed and the model refit”concepts[21]
conceptrlog transformation — not defined in this paper's own words; regularized-log transformation that incorporates sequencing-depth size factors — “The rlog transformation accounts for variation in sequencing depth across samples as it represents the logarithm of q ij after accounting for the size factors s ij . This is in contrast to the variance-stabilizing transformation (VST) for overdispersed counts introduced in DESeq [ 4 ]: while the VST is also effective at stabilizing variance, it does not directly take into account differences in size factors”concepts[22]
conceptvariance-stabilizing transformation — not defined in this paper's own words; variance-stabilizing transformation contrasted with rlog because it does not directly account for size-factor differences — “The rlog transformation accounts for variation in sequencing depth across samples as it represents the logarithm of q ij after accounting for the size factors s ij . This is in contrast to the variance-stabilizing transformation (VST) for overdispersed counts introduced in DESeq [ 4 ]: while the VST is also effective at stabilizing variance, it does not directly take into account differences in size factors”concepts[23]
conceptedgeR — not defined in this paper's own words; comparison method whose shrinkage strength depends on a user-adjustable prior-degrees-of-freedom parameter — “The approach of DESeq2 differs from that of edgeR [ 3 ], as DESeq2 estimates the width of the prior distribution from the data and therefore automatically controls the amount of shrinkage based on the observed properties of the data. In contrast, the default steps in edgeR require a user-adjustable parameter, the prior degrees of freedom , which weighs the contribution of the individual gene estimate and edgeR ’s dispersion fit”concepts[24]
conceptagreement between the two independent sample groups — not defined in this paper's own words; cross-split reproducibility increased when unsupported large fold changes are shrunk — “Because the shrinkage moves large LFCs that are not well supported by the data toward zero, the agreement between the two independent sample groups increases considerably. Therefore, shrunken fold-change estimates offer a more reliable basis for quantitative conclusions than normal MLEs”concepts[25]
conceptR/Bioconductor package — not defined in this paper's own words; the software-package form in which DESeq2 is implemented and distributed — “DESeq2 is implemented as a package for the R statistical environment and is available [ 10 ] as part of the Bioconductor project”concepts[26]
Statistics — cross-field join keys
field-invariant statistical terms, used in their statistical sense (gated on a number / symbol / test). A p-value or a standard deviation means the SAME thing in physics, biology, psychology and sociology — so these are the strongest cross-field join keys. Grounded verbatim.
Bayesian — “DSS [ 6 ] uses a Bayesian approach to provide an estimate for the dispersion for individual genes that accounts for the heterogeneity of dispersion values for different genes”content_tags.statistics[0]
evidence status noteBayesian — QUOTE RECOVERED FROM THE PAPER'S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file's own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[0]
R-squared R² as written: adjusted R — “The adjusted Rand index [ 37 ] was used to compare a hierarchical clustering based on various distances with the true cluster membership”content_tags.statistics[1]
evidence status noteR-squared — QUOTE RECOVERED FROM THE PAPER'S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file's own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[1]
chi-square χ² as written: χ 2 — “The sampling distribution of a dispersion estimator is approximately a scaled χ 2 distribution with m − p degrees of freedom, with m the number of samples and p the number of coefficients.”content_tags.statistics[2]
evidence status notechi-square — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[2]
degrees-of-freedom df — “The sampling distribution of a dispersion estimator is approximately a scaled χ 2 distribution with m − p degrees of freedom, with m the number of samples and p the number of coefficients.”content_tags.statistics[4]
evidence status notedegrees-of-freedom — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[4]
effect-size d as written: effect sizes — “developed a statistical framework to facilitate gene ranking and visualization based on stable estimation of effect sizes (LFCs), as well as testing of differential expression with respect to user-defined thresholds of biological significance”content_tags.statistics[5]
evidence status noteeffect-size — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[5]
hypothesis-testing as written: hypothesis tests — “shrunken fold changes and their estimates of standard error, including improved gene ranking and visualization, hypothesis tests above and below a threshold, and the regularized logarithm transformation for quality assessment and clustering”content_tags.statistics[7]
evidence status notehypothesis-testing — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[7]
mean μ as written: mean of — “1 and the rlog transformation, showing that the rlog both stabilizes the variance through the range of the mean of counts and helps to find meaningful patterns in the data.”content_tags.statistics[8]
evidence status notemean — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[8]
median — “The median sensitivity estimates were typically between 0.2 and 0.4 for all algorithms.”content_tags.statistics[9]
null-hypothesis H0 — “The most common approach in the comparative analysis of transcriptomics data is to test the null hypothesis that the logarithmic fold change (LFC) between treatment and control for a gene’s expression is exactly zero”content_tags.statistics[10]
evidence status notenull-hypothesis — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[10]
p-value p — “Often the goal of differential analysis is to produce a list of genes passing multiple-test adjustment, ranked by P value.”content_tags.statistics[11]
sample-size n/N — “Furthermore, the number of genes called significantly differentially expressed depends as much on the sample size and other aspects of experimental design as it does on the biology of the experiment – and well-powered experiments often generate an overwhelmingly long list of hits [ 9 ].”content_tags.statistics[13]
evidence status notesample-size — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[13]
standard-deviation SD/σ as written: standard deviations — “DESeq2 handles these cases by using the gene-wise estimate instead of the shrunken estimate when the former is more than 2 residual standard deviations above the curve.”content_tags.statistics[14]
standard-error SE — “features by describing a number of applications possible with shrunken fold changes and their estimates of standard error, including improved gene ranking and visualization, hypothesis tests above and below a threshold, and the regularized”content_tags.statistics[15]
evidence status notestandard-error — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[15]
statistical-significance — “For small-scale experiments, statistical significance is often a much stricter requirement than biological significance, thereby relieving the researcher from the need to decide on a threshold for biological significance.”content_tags.statistics[17]
evidence status notestatistical-significance — QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.content_tags.statistics[17]
variance σ² — “Empirical Bayes shrinkage for dispersion estimation Within-group variability, i.e., the variability between repli- cates, is modeled by the dispersion parameter αi, which describes the variance of counts via Var Kij = μij + αiμ2 ij.” [checked against the archived source, not this rendering]content_tags.statistics[18]
not machine-vouchedvariance — not-in-our-copy - The quote is in the original web page we fetched for this paper, but not in the text we tag against, which was extracted differently. Checked with ligatures, hyphens, spacing and punctuation set aside.content_tags.statistics[18]
negative-binomial NB(μ, α) — “We model read counts K ij as following a negative binomial distribution (sometimes also called a gamma-Poisson distribution) with mean μ ij and dispersion α i .”content_tags.statistics[19]
empirical-bayes shrinkage — “We then shrink the gene-wise dispersion estimates toward the values predicted by the curve to obtain final dispersion values (blue arrow heads).”content_tags.statistics[20]
false-discovery-rate FDR — “baySeq [ 7 ] and ShrinkBayes [ 8 ] estimate priors for a Bayesian model over all genes, and then provide posterior probabilities or false discovery rates (FDRs) for differential expression.”content_tags.statistics[21]
statistical-power 1-β — “We furthermore compare DESeq2 ’s statistical power with existing tools, revealing that our methodology has high sensitivity and precision, while controlling the false positive rate.”content_tags.statistics[22]
Second readings
a facet read a second time, independently, from its own sentence — and whether the two readings agree
methodsystem-or-tool-building — a second reading reaching the same value; recorded: system-or-tool-building — “We present DESeq2 , a method for differential analysis of count data, using shrinkage estimation for dispersions and fold changes to improve stability and interpretability of estimates.”alternatives.method
phenomenonunstable per-gene variance estimates in small-replicate sequencing experiments — a second reading DIFFERING from the recorded value; recorded: differential expression in RNA-seq count data — “For controlled experiments, however, sample sizes tend to be smaller (experimental designs with as little as two or three replicates are common and reasonable), resulting in highly variable dispersion estimates for each gene.”alternatives.phenomenon

Full text — tagged

The reference list is not part of the text we hold for this paper. Our copy was extracted from the publisher's page and the bibliography did not survive that extraction, so the article below ends before its references. Nothing has been removed by us.

Abstract. In comparative high-throughput sequencing assays, a fundamental task is the analysis of count dataterm·dom, such as read countsterm·key per gene in RNA-seqterm·mth, for evidence of systematic changes across experimental conditions. Small replicateterm·key numbers, discreteness, large dynamic range and the presence of outliers require a suitable statistical approach. We present DESeq2term , a method for differential analysis of count dataterm, using shrinkage estimationterm·key for dispersionsterm·mth and fold changesterm·key to improve stability and interpretability of estimates. This enables a more quantitative analysis focused on the strength rather than the mere presence of differential expressionterm·dom. The DESeq2term package is available at http://www.bioconductor.org/packages/release/bioc/html/DESeq2term.html. Electronic supplementary material The online version of this article (doi:10.1186/s13059-014-0550-8) contains supplementary material, which is available to authorized users. Background The rapid adoption of high-throughput sequencing (HTS) technologies for genomic studies has resulted in a need for statistical methods to assess quantitative differences between experiments. An important task here is the analysis of RNA sequencing (RNA-seqterm·mth) data with the aim of finding genes that are differentially expressed across groups of samples. This task is general: methods for it are typically also applicable for other comparative HTS assays, including chromatin immunoprecipitation sequencing, chromosome conformation capture, or counting observed taxa in metagenomic studies. Besides the need to account for the specifics of count dataterm·dom, such as non-normality and a dependence of the variance on the mean, a core challenge is the small number of samples in typical HTS experiments – often as few as two or three replicatesterm·key per condition. Inferential methods that treat each gene separately suffer here from lack of power, due to the high uncertainty of within-group variance estimates. In high-throughput assays, this limitation can be overcome by pooling information across genes, specifically, by exploiting assumptions about the similarity of the variances of different genes measured in the same experiment [ 1 ]. Many methods for differential expressionterm·dom analysis of RNA-seqterm·mth data perform such information sharing across genes for variance (or, equivalently, dispersionterm·mth) estimation. edgeRterm [ 2 , 3 ] moderates the dispersionterm·mth estimate for each gene toward a common estimate across all genes, or toward a local estimate from genes with similar expression strength, using a weighted conditional likelihood. Our DESeq method [ 4 ] detects and corrects dispersionterm·mth estimates that are too low through modeling of the dependence of the dispersionterm·mth on the average expression strength over all samples. BBSeq [ 5 ] models the dispersionterm·mth on the mean, with the mean absolute deviation of dispersionterm·mth estimates used to reduce the influence of outliers. DSS [ 6 ] uses a Bayesianterm·stat approach to provide an estimate for the dispersionterm·mth for individual genes that accounts for the heterogeneity of dispersionterm·mth values for different genes. baySeq [ 7 ] and ShrinkBayes [ 8 ] estimate priors for a Bayesianterm·stat model over all genes, and then provide posterior probabilities or false discovery ratesterm·key (FDRs) for differential expressionterm·dom. The most common approach in the comparative analysis of transcriptomics data is to test the null hypothesisterm·def that the logarithmic fold change (LFC)term·var between treatment and control for a gene’s expression is exactly zero, i.e., that the gene is not at all affected by the treatment. Often the goal of differential analysis is to produce a list of genes passing multiple-test adjustment, ranked by P valueterm·stat. However, small changes, even if statistically highly significant, might not be the most interesting candidates for further investigation. Ranking by fold changeterm·key, on the other hand, is complicated by the noisiness of LFC estimates for genes with low counts. Furthermore, the number of genes called significantly differentially expressed depends as much on the sample sizeterm·var and other aspects of experimental design as it does on the biology of the experiment – and well-powered experiments often generate an overwhelmingly long list of hits [ 9 ]. We, therefore, developed a statistical framework to facilitate gene ranking and visualization based on stable estimation of effect sizesterm·stat (LFCs), as well as testing of differential expressionterm·dom with respect to user-defined thresholds of biological significance. Here we present DESeq2term , a successor to our DESeq method [ 4 ]. DESeq2term integrates methodological advances with several novel features to facilitate a more quantitative analysis of comparative RNA-seqterm·mth data using shrinkageterm·mth estimators for dispersionterm·mth and fold changeterm·key. We demonstrate the advantages of DESeq2term ’s new features by describing a number of applications possible with shrunken fold changesterm·key and their estimates of standard errorterm·stat, including improved gene ranking and visualization, hypothesis teststerm·stat above and below a threshold, and the regularized logarithm transformation for quality assessment and clustering of overdispersed count dataterm·dom. We furthermore compare DESeq2term ’s statistical powerterm·stat with existing tools, revealing that our methodology has high sensitivity and precision, while controlling the false positive rate. DESeq2term is available [ 10 ] as an R/Bioconductor packageterm [ 11 ]. Results and discussion Model and normalization The starting point of a DESeq2term analysis is a count matrix K with one row for each gene i and one column for each sample j . The matrix entries K ij indicate the number of sequencing reads that have been unambiguously mapped to a gene in a sample. Note that although we refer in this paper to counts of reads in genes, the methods presented here can be applied as well to other kinds of HTS count dataterm·dom. For each gene, we fit a generalized linear modelterm (GLM) [ 12 ] as follows. We model read countsterm·key K ij as following a negative binomial distributionterm·def (sometimes also called a gamma-Poissonterm·mth distribution) with mean μ ij and dispersionterm·mth α i . The mean is taken as a quantity q ij , proportional to the concentration of cDNA fragments from the gene in the sample, scaled by a normalization factor s ij , i.e., μ ij = s ij q ij . For many applications, the same constant s j can be used for all genes in a sample, which then accounts for differences in sequencing depth between samples. To estimate these size factorsterm·mth , the DESeq2term package offers the median-of-ratios method already used in DESeq [ 4 ]. However, it can be advantageous to calculate gene-specific normalization factors s ij to account for further sources of technical biases such as differing dependence on GC content, gene length or the like, using published methods [ 13 , 14 ], and these can be supplied instead. We use GLMs with a logarithmic link, log 2 q ij = ∑ r x jr β ir , with design matrix elements x jr and coefficients β ir . In the simplest case of a comparison between two groups, such as treated and control samples, the design matrix elements indicate whether a sample j is treated or not, and the GLM fit returns coefficients indicating the overall expression strength of the gene and the log 2 fold changeterm·key between treatment and control. The use of linear models, however, provides the flexibility to also analyze more complex designs, as is often useful in genomic studies [ 15 ]. Empirical Bayes shrinkageterm·def for dispersionterm·mth estimation Within-group variability, i.e., the variability between replicatesterm·key, is modeled by the dispersion parameterterm·var α i , which describes the variance of counts via Var K ij = μ ij + α i μ ij 2 . Accurate estimation of the dispersion parameterterm·var α i is critical for the statistical inference of differential expressionterm·dom. For studies with large sample sizesterm·var this is usually not a problem. For controlled experiments, however, sample sizesterm·var tend to be smaller (experimental designs with as little as two or three replicatesterm·key are common and reasonable), resulting in highly variable dispersionterm·mth estimates for each gene. If used directly, these noisy estimates would compromise the accuracy of differential expressionterm·dom testing. One sensible solution is to share information across genes. In DESeq2term , we assume that genes of similar average expression strength have similar dispersionterm·mth. We here explain the concepts of our approach using as examples a dataset by Bottomly et al. [ 16 ] with RNA-seqterm·mth data for mice of two different strains and a dataset by Pickrell et al. [ 17 ] with RNA-seqterm·mth data for human lymphoblastoid cell lines. For the mathematical details, see Materials and methods . We first treat each gene separately and estimate gene-wise dispersionterm·mth estimates (using maximum likelihood), which rely only on the data of each individual gene (black dots in Figure 1 ). Next, we determine the location parameter of the distribution of these estimates; to allow for dependence on average expression strength, we fit a smooth curve, as shown by the red line in Figure 1 . This provides an accurate estimate for the expected dispersionterm·mth value for genes of a given expression strength but does not represent deviations of individual genes from this overall trend. We then shrink the gene-wise dispersionterm·mth estimates toward the values predicted by the curve to obtain final dispersionterm·mth values (blue arrow heads). We use an empirical Bayesterm·key approach ( Materials and methods ), which lets the strength of shrinkageterm·mth depend (i) on an estimate of how close true dispersionterm·mth values tend to be to the fit and (ii) on the degrees of freedomterm·var: as the sample sizeterm·var increases, the shrinkageterm·mth decreases in strength, and eventually becomes negligible. Our approach therefore accounts for gene-specific variation to the extent that the data provide this information, while the fitted curve aids estimation and testing in less information-rich settings. Figure 1 Shrinkage estimationterm·key of dispersionterm·mth. Plot of dispersionterm·mth estimates over the average expression strength (A) for the Bottomly et al. [ 16 ] dataset with six samples across two groups and (B) for five samples from the Pickrell et al. [ 17 ] dataset, fitting only an intercept term. First, gene-wise MLEs are obtained using only the respective gene’s data (black dots). Then, a curve (red) is fit to the MLEs to capture the overall trend of dispersion-mean dependence. This fit is used as a prior mean for a second estimation round, which results in the final MAP estimatesterm of dispersionterm·mth (arrow heads). This can be understood as a shrinkageterm·mth (along the blue arrows) of the noisy gene-wise estimates toward the consensus represented by the red line. The black points circled in blue are detected as dispersionterm·mth outliers and not shrunk toward the prior (shrinkageterm·mth would follow the dotted line). For clarity, only a subset of genes is shown, which is enriched for dispersionterm·mth outliers. Additional file 1 : Figure S1 displays the same data but with dispersionsterm·mth of all genes shown. MAP, maximum a posterioriterm·key ; MLE, maximum-likelihood estimateterm. Our approach is similar to the one used by DSS [ 6 ], in that both methods sequentially estimate a prior distribution for the true dispersionterm·mth values around the fit, and then provide the maximum a posterioriterm·key (MAP) as the final estimate. It differs from the previous implementation of DESeq , which used the maximum of the fitted curve and the gene-wise dispersionterm·mth estimate as the final estimate and tended to overestimate the dispersionsterm·mth (Additional file 1 : Figure S2). The approach of DESeq2term differs from that of edgeRterm [ 3 ], as DESeq2term estimates the width of the prior distribution from the data and therefore automatically controls the amount of shrinkageterm·mth based on the observed properties of the data. In contrast, the default steps in edgeRterm require a user-adjustable parameter, the prior degrees of freedomterm·var , which weighs the contribution of the individual gene estimate and edgeRterm ’s dispersionterm·mth fit. Note that in Figure 1 a number of genes with gene-wise dispersionterm·mth estimates below the curve have their final estimates raised substantially. The shrinkageterm·mth procedure thereby helps avoid potential false positives, which can result from underestimates of dispersionterm·mth. If, on the other hand, an individual gene’s dispersionterm·mth is far above the distribution of the gene-wise dispersionterm·mth estimates of other genes, then the shrinkageterm·mth would lead to a greatly reduced final estimate of dispersionterm·mth. We reasoned that in many cases, the reason for extraordinarily high dispersionterm·mth of a gene is that it does not obey our modeling assumptions; some genes may show much higher variability than others for biological or technical reasons, even though they have the same average expression levels. In these cases, inference based on the shrunken dispersionterm·mth estimates could lead to undesirable false positive calls. DESeq2term handles these cases by using the gene-wise estimate instead of the shrunken estimate when the former is more than 2 residual standard deviationsterm·stat above the curve. Empirical Bayes shrinkageterm·def for fold-change estimation A common difficulty in the analysis of HTS data is the strong variance of LFC estimates for genes with low read countterm·key. We demonstrate this issue using the dataset by Bottomly et al. [ 16 ]. As visualized in Figure 2 A, weakly expressed genes seem to show much stronger differences between the compared mouse strains than strongly expressed genes. This phenomenon, seen in most HTS datasets, is a direct consequence of dealing with count dataterm·dom, in which ratios are inherently noisier when counts are low. This heteroskedasticityterm·def (variance of LFCs depending on mean count) complicates downstream analysis and data interpretation, as it makes effect sizesterm·stat difficult to compare across the dynamic range of the data. Figure 2 Effect of shrinkageterm·mth on logarithmic fold changeterm estimates. Plots of the (A) MLE (i.e., no shrinkageterm·mth) and (B) MAP estimateterm (i.e., with shrinkageterm·mth) for the LFCs attributable to mouse strain, over the average expression strength for a ten vs eleven sample comparison of the Bottomly et al. [ 16 ] dataset. Small triangles at the top and bottom of the plots indicate points that would fall outside of the plotting window. Two genes with similar mean count and MLE logarithmic fold changeterm are highlighted with green and purple circles. (C) The counts (normalized by size factorsterm·mth s j ) for these genes reveal low dispersionterm·mth for the gene in green and high dispersionterm·mth for the gene in purple. (D) Density plots of the likelihoods (solid lines, scaled to integrate to 1) and the posteriors (dashed lines) for the green and purple genes and of the prior (solid black line): due to the higher dispersionterm·mth of the purple gene, its likelihood is wider and less peaked (indicating less information), and the prior has more influence on its posterior than for the green gene. The stronger curvature of the green posterior at its maximum translates to a smaller reported standard errorterm·stat for the MAP LFC estimate (horizontal error bar). adj., adjusted; LFC, logarithmic fold changeterm; MAP, maximum a posterioriterm·key ; MLE, maximum-likelihood estimateterm. DESeq2term overcomes this issue by shrinking LFC estimates toward zero in a manner such that shrinkageterm·mth is stronger when the available information for a gene is low, which may be because counts are low, dispersionterm·mth is high or there are few degrees of freedomterm·var. We again employ an empirical Bayesterm·key procedure: we first perform ordinary GLM fits to obtain maximum-likelihood estimatesterm (MLEs) for the LFCs and then fit a zero-centered normal distribution to the observed distribution of MLEs over all genes. This distribution is used as a prior on LFCs in a second round of GLM fits, and the MAP estimatesterm are kept as final estimates of LFC. Furthermore, a standard errorterm·stat for each estimate is reported, which is derived from the posterior’s curvature at its maximum (see Materials and methods for details). These shrunken LFCs and their standard errorsterm·stat are used in the Wald teststerm for differential expressionterm·dom described in the next section. The resulting MAP LFCs are biased toward zero in a manner that removes the problem of exaggerated LFCs for low counts. As Figure 2 B shows, the strongest LFCs are no longer exhibited by genes with weakest expression. Rather, the estimates are more evenly spread around zero, and for very weakly expressed genes (with less than one read per sample on average), LFCs hardly deviate from zero, reflecting that accurate LFC estimates are not possible here. The strength of shrinkageterm·mth does not depend simply on the mean count, but rather on the amount of information available for the fold changeterm·key estimation (as indicated by the observed Fisher information; see Materials and methods ). Two genes with equal expression strength but different dispersionsterm·mth will experience a different amount of shrinkageterm·mth (Figure 2 C,D). The shrinkageterm·mth of LFC estimates can be described as a bias-variance trade-offterm [ 18 ]: for genes with little information for LFC estimation, a reduction of the strong variance is bought at the cost of accepting a bias toward zero, and this can result in an overall reduction in mean squared error, e.g., when comparing to LFC estimates from a new dataset. Genes with high information for LFC estimation will have, in our approach, LFCs with both low bias and low variance. Furthermore, as the degrees of freedomterm·var increase, and the experiment provides more information for LFC estimation, the shrunken estimates will converge to the unshrunken estimates. We note that other Bayesianterm·stat efforts toward moderating fold changesterm·key for RNA-seqterm·mth include hierarchical models [ 8 , 19 ] and the GFOLD (or generalized fold changeterm·key) tool [ 20 ], which uses a posterior distribution of LFCs. The shrunken MAP LFCs offer a more reproducible quantification of transcriptional differences than standard MLE LFCs. To demonstrate this, we split the Bottomly et al. samples equally into two groups, I and II, such that each group contained a balanced split of the strains, simulating a scenario where an experiment (samples in group I) is performed, analyzed and reported, and then independently replicated (samples in group II). Within each group, we estimated LFCs between the strains and compared between groups I and II, using the MLE LFCs (Figure 3 A) and using the MAP LFCs (Figure 3 B). Because the shrinkageterm·mth moves large LFCs that are not well supported by the data toward zero, the agreement between the two independent sample groupsterm increases considerably. Therefore, shrunken fold-change estimates offer a more reliable basis for quantitative conclusions than normal MLEs. Figure 3 Stability of logarithmic fold changesterm. DESeq2term is run on equally split halves of the data of Bottomly et al. [ 16 ], and the LFCs from the halves are plotted against each other. (A) MLEs, i.e., without LFC shrinkageterm·mth. (B) MAP estimatesterm, i.e., with shrinkageterm·mth. Points in the top left and bottom right quadrants indicate genes with a change of sign of LFC. Red points indicate genes with adjusted P valueterm·stat <0.1. The legend displays the root-mean-square error of the estimates in group I compared to those in group II. LFC, logarithmic fold changeterm; MAP, maximum a posterioriterm·key ; MLE, maximum-likelihood estimateterm; RMSE, root-mean-square error. This makes shrunken LFCs also suitable for ranking genes, e.g., to prioritize them for follow-up experiments. For example, if we sort the genes in the two sample groups of Figure 3 by unshrunken LFC estimates, and consider the 100 genes with the strongest upor down-regulation in group I, we find only 21 of these again among the top 100 upor down-regulated genes in group II. However, if we rank the genes by shrunken LFC estimates, the overlap improves to 81 of 100 genes (Additional file 1 : Figure S3). A simpler often used method is to add a fixed number (pseudocount) to all counts before forming ratios. However, this requires the choice of a tuning parameter and only reacts to one of the sources of uncertainty, low counts, but not to gene-specific dispersionterm·mth differences or sample sizeterm·var. We demonstrate this in the Benchmarks section below. Hypothesis teststerm·stat for differential expressionterm·dom After GLMs are fit for each gene, one may test whether each model coefficient differs significantly from zero. DESeq2term reports the standard errorterm·stat for each shrunken LFC estimate, obtained from the curvature of the coefficient’s posterior (dashed lines in Figure 2 D) at its maximum. For significance testing, DESeq2term uses a Wald testterm: the shrunken estimate of LFC is divided by its standard errorterm·stat, resulting in a z -statistic, which is compared to a standard normal distribution. (See Materials and methods for details.) The Wald testterm allows testing of individual coefficients, or contrasts of coefficients, without the need to fit a reduced model as with the likelihood ratio testterm, though the likelihood ratio testterm is also available as an option in DESeq2term . The Wald testterm P valuesterm·stat from the subset of genes that pass an independent filteringterm step, described in the next section, are adjusted for multiple testing using the procedure of Benjamini and Hochberg [ 21 ]. Automatic independent filteringterm Due to the large number of tests performed in the analysis of RNA-seqterm·mth and other genome-wide experiments, the multiple testing problem needs to be addressed. A popular objective is control or estimation of the FDR. Multiple testing adjustment tends to be associated with a loss of power, in the sense that the FDR for a set of genes is often higher than the individual P valuesterm·stat of these genes. However, the loss can be reduced if genes that have little or no chance of being detected as differentially expressed are omitted from the testing, provided that the criterion for omission is independent of the test statistic under the null hypothesisterm·def [ 22 ] (see Materials and methods ). DESeq2term uses the average expression strength of each gene, across all samples, as its filter criterion, and it omits all genes with mean normalized counts below a filtering threshold from multiple testing adjustment. DESeq2term by default will choose a threshold that maximizes the number of genes found at a user-specified target FDR. In Figures 2 A,B and 3 , genes found in this way to be significant at an estimated FDR of 10% are depicted in red. Depending on the distribution of the mean normalized counts, the resulting increase in power can be substantial, sometimes making the difference in whether or not any differentially expressed genes are detected. Hypothesis teststerm·stat with thresholds on effect sizeterm·stat Specifying minimum effect sizeterm·stat Most approaches to testing for differential expressionterm·dom, including the default approach of DESeq2term , test against the null hypothesisterm·def of zero LFC. However, if any biological processes are genuinely affected by the difference in experimental treatment, this null hypothesisterm·def implies that the gene under consideration is perfectly decoupled from these processes. Due to the high interconnectedness of cells’ regulatory networks, this hypothesis is, in fact, implausible, and arguably wrong for many if not most genes. Consequently, with sufficient sample sizeterm·var, even genes with a very small but non-zero LFC will eventually be detected as differentially expressed. A change should therefore be of sufficient magnitude to be considered biologically significant . For small-scale experiments, statistical significanceterm·stat is often a much stricter requirement than biological significance, thereby relieving the researcher from the need to decide on a threshold for biological significance. For well-powered experiments, however, a statistical test against the conventional null hypothesisterm·def of zero LFC may report genes with statistically significant changes that are so weak in effect strength that they could be considered irrelevant or distracting. A common procedure is to disregard genes whose estimated LFC β ir is below some threshold, | β ir |≤ θ . However, this approach loses the benefit of an easily interpretable FDR, as the reported P valueterm·stat and adjusted P valueterm·stat still correspond to the test of zero LFC. It is therefore desirable to include the threshold in the statistical testing procedure directly, i.e., not to filter post hoc on a reported fold-change estimate , but rather to evaluate statistically directly whether there is sufficient evidence that the LFC is above the chosen threshold. DESeq2term offers tests for composite null hypothesesterm of the form | β ir |≤ θ , where β ir is the shrunken LFC from the estimation procedure described above. (See Materials and methods for details.) Figure 4 A demonstrates how such a thresholded test gives rise to a curved decision boundary: to reach significance, the estimated LFC has to exceed the specified threshold by an amount that depends on the available information. We note that related approaches to generate gene lists that satisfy both statistical and biological significance criteria have been previously discussed for microarray data [ 23 ] and recently for sequencing data [ 19 ]. Figure 4 Hypothesis testingterm·stat involving non-zero thresholds. Shown are plots of the estimated fold changeterm·key over average expression strength (“minus over average”, or MA-plots) for a ten vs eleven comparison using the Bottomly et al. [ 16 ] dataset, with highlighted points indicating low adjusted P valuesterm·stat. The alternate hypotheses are that logarithmic (base 2) fold changesterm·key are (A) greater than 1 in absolute value or (B) less than 1 in absolute value. adj., adjusted. Specifying maximum effect sizeterm·stat Sometimes, a researcher is interested in finding genes that are not, or only very weakly, affected by the treatment or experimental condition. This amounts to a setting similar to the one just discussed, but the roles of the null and alternative hypotheses are swapped. We are here asking for evidence of the effect being weak, not for evidence of the effect being zero, because the latter question is rarely tractable. The meaning of weak needs to be quantified for the biological question at hand by choosing a suitable threshold θ for the LFC. For such analyses, DESeq2term offers a test of the composite null hypothesisterm·def | β ir |≥ θ , which will report genes as significant for which there is evidence that their LFC is weaker than θ . Figure 4 B shows the outcome of such a test. For genes with very low read countterm·key, even an estimate of zero LFC is not significant, as the large uncertainty of the estimate does not allow us to exclude that the gene may in truth be more than weakly affected by the experimental condition. Note the lack of LFC shrinkageterm·mth: to find genes with weak differential expressionterm·dom, DESeq2term requires that the LFC shrinkageterm·mth has been disabled. This is because the zero-centered prior used for LFC shrinkageterm·mth embodies a prior belief that LFCs tend to be small, and hence is inappropriate here. Detection of count outliers Parametric methods for detecting differential expressionterm·dom can have gene-wise estimates of LFC overly influenced by individual outliers that do not fit the distributional assumptions of the model [ 24 ]. An example of such an outlier would be a gene with single-digit counts for all samples, except one sample with a count in the thousands. As the aim of differential expressionterm·dom analysis is typically to find consistently upor down-regulated genes, it is useful to consider diagnostics for detecting individual observations that overly influence the LFC estimate and P valueterm·stat for a gene. A standard outlier diagnostic is Cook’s distanceterm [ 25 ], which is defined within each gene for each sample as the scaled distance that the coefficient vector, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document} $\vec {\beta }_{i}$ \end{document} β → i , of a linear model or GLM would move if the sample were removed and the model refit. DESeq2term flags, for each gene, those samples that have a Cook’s distanceterm greater than the 0.99 quantile of the F ( p , m − p ) distribution, where p is the number of model parameters including the intercept, and m is the number of samples. The use of the F distribution is motivated by the heuristic reasoning that removing a single sample should not move the vector \(\vec {\beta }_{i}\) β → i outside of a 99% confidence region around \(\vec {\beta }_{i}\) β → i fit using all the samples [ 25 ]. However, if there are two or fewer replicatesterm·key for a condition, these samples do not contribute to outlier detection, as there are insufficient replicatesterm·key to determine outlier status. How should one deal with flagged outliers? In an experiment with many replicatesterm·key, discarding the outlier and proceeding with the remaining data might make best use of the available data. In a small experiment with few samples, however, the presence of an outlier can impair inference regarding the affected gene, and merely ignoring the outlier may even be considered data cherry-picking – and therefore, it is more prudent to exclude the whole gene from downstream analysis. Hence, DESeq2term offers two possible responses to flagged outliers. By default, outliers in conditions with six or fewer replicatesterm·key cause the whole gene to be flagged and removed from subsequent analysis, including P valueterm·stat adjustment for multiple testing. For conditions that contain seven or more replicatesterm·key, DESeq2term replaces the outlier counts with an imputed value, namely the trimmed mean over all samples, scaled by the size factorterm·var, and then re-estimates the dispersionterm·mth, LFCs and P valuesterm·stat for these genes. As the outlier is replaced with the value predicted by the null hypothesisterm·def of no differential expressionterm·dom, this is a more conservative choice than simply omitting the outlier. When there are many degrees of freedomterm·var, the second approach avoids discarding genes that might contain true differential expressionterm·dom. Additional file 1 : Figure S4 displays the outlier replacement procedure for a single gene in a seven by seven comparison of the Bottomly et al. [ 16 ] dataset. While the original fitted means are heavily influenced by a single sample with a large count, the corrected LFCs provide a better fit to the majority of the samples. Regularized logarithm transformation For certain analyses, it is useful to transform data to render them homoskedastic. As an example, consider the task of assessing sample similarities in an unsupervised manner using a clustering or ordination algorithm. For RNA-seqterm·mth data, the problem of heteroskedasticityterm·def arises: if the data are given to such an algorithm on the original count scale, the result will be dominated by highly expressed, highly variable genes; if logarithm-transformed data are used, undue weight will be given to weakly expressed genes, which show exaggerated LFCs, as discussed above. Therefore, we use the shrinkageterm·mth approach of DESeq2term to implement a regularized logarithm transformation (rlog), which behaves similarly to a log2 transformation for genes with high counts, while shrinking together the values for different samples for genes with low counts. It therefore avoids a commonly observed property of the standard logarithm transformation, the spreading apart of data for genes with low counts, where random noise is likely to dominate any biologically meaningful signal. When we consider the variance of each gene, computed across samples, these variances are stabilized – i.e., approximately the same, or homoskedastic – after the rlog transformationterm, while they would otherwise strongly depend on the mean counts. It thus facilitates multivariate visualization and ordinations such as clustering or principal component analysis that tend to work best when the variables have similar dynamic range. Note that while the rlog transformationterm builds upon on our LFC shrinkageterm·mth approach, it is distinct from and not part of the statistical inference procedure for differential expressionterm·dom analysis described above, which employs the raw counts, not transformed data. The rlog transformationterm is calculated by fitting for each gene a GLM with a baseline expression (i.e., intercept only) and, computing for each sample, shrunken LFCs with respect to the baseline, using the same empirical Bayesterm·key procedure as before ( Materials and methods ). Here, however, the sample covariate information (e.g. treatment or control) is not used, so that all samples are treated equally. The rlog transformationterm accounts for variation in sequencing depth across samples as it represents the logarithm of q ij after accounting for the size factorsterm·mth s ij . This is in contrast to the variance-stabilizing transformationterm (VST) for overdispersed counts introduced in DESeq [ 4 ]: while the VST is also effective at stabilizing variance, it does not directly take into account differences in size factorsterm·mth; and in datasets with large variation in sequencing depth (dynamic range of size factorsterm·mth \(\gtrsim\) ≳ 4) we observed undesirable artifacts in the performance of the VST. A disadvantage of the rlog transformationterm with respect to the VST is, however, that the ordering of genes within a sample will change if neighboring genes undergo shrinkageterm·mth of different strength. As with the VST, the value of rlog( K ij ) for large counts is approximately equal to log2( K ij / s j ). Both the rlog transformationterm and the VST are provided in the DESeq2term package. We demonstrate the use of the rlog transformationterm on the RNA-seqterm·mth dataset of Hammer et al. [ 26 ], wherein RNA was sequenced from the dorsal root ganglion of rats that had undergone spinal nerve ligation and controls, at 2 weeks and at 2 months after the ligation. The count matrix for this dataset was downloaded from the ReCount online resource [ 27 ]. This dataset offers more subtle differences between conditions than the Bottomly et al. [ 16 ] dataset. Figure 5 provides diagnostic plots of the normalized counts under the ordinary logarithm with a pseudocount of 1 and the rlog transformationterm, showing that the rlog both stabilizes the variance through the range of the mean ofterm·stat counts and helps to find meaningful patterns in the data. Figure 5 Variance stabilization and clustering after rlog transformationterm. Two transformations were applied to the counts of the Hammer et al. [ 26 ] dataset: the logarithm of normalized counts plus a pseudocount, i.e. f ( K ij )= log2( K ij / s j +1), and the rlog. The gene-wise standard deviationterm·stat of transformed values is variable across the range of the mean ofterm·stat counts using the logarithm (A) , while relatively stable using the rlog (B) . A hierarchical clustering on Euclidean distances and complete linkage using the rlog (D) transformed data clusters the samples into the groups defined by treatment and time, while using the logarithm-transformed counts (C) produces a more ambiguous result. sd, standard deviationterm·stat. Gene-level analysis We here present DESeq2term for the analysis of per-gene counts, i.e., the total number of reads that can be uniquely assigned to a gene. In contrast, several algorithms [ 28 , 29 ] work with probabilistic assignments of reads to transcripts, where multiple, overlapping transcripts can originate from each gene. It has been noted that the total read countterm·key approach can result in false detection of differential expressionterm·dom when in fact only transcript isoform lengths change, and even in a wrong sign of LFCs in extreme cases [ 28 ]. However, in our benchmark, discussed in the following section, we found that LFC sign disagreements between total read countterm·key and probabilistic-assignment-based methods were rare for genes that were differentially expressed according to either method (Additional file 1 : Figure S5). Furthermore, if estimates for average transcript length are available for the conditions, these can be incorporated into the DESeq2term framework as geneand sample-specific normalization factors. In addition, the approach used in DESeq2term can be extended to isoform-specific analysis, either through generalized linear modeling at the exon level with a gene-specific mean as in the DEXSeq package [ 30 ] or through counting evidence for alternative isoforms in splice graphs [ 31 , 32 ]. In fact, the latest release version of DEXSeq now uses DESeq2term as its inferential engine and so offers shrinkage estimationterm·key of dispersionterm·mth and effect sizesterm·stat for an exon-level analysis, too. Comparative benchmarks To assess how well DESeq2term performs for standard analyses in comparison to other current methods, we used a combination of simulations and real data. The negative-binomial-based approaches compared were DESeq (old) [ 4 ], edgeRterm [ 33 ], edgeRterm with the robust option [ 34 ], DSS [ 6 ] and EBSeq [ 35 ]. Other methods compared were the voom normalization method followed by linear modeling using the limma package [ 36 ] and the SAMseq permutation method of the samr package [ 24 ]. For the benchmarks using real data, the Cuffdiff 2 [ 28 ] method of the Cufflinks suite was included. For version numbers of the software used, see Additional file 1 : Table S3. For all algorithms returning P valuesterm·stat, the P valuesterm·stat from genes with non-zero sum of read countsterm·key across samples were adjusted using the Benjamini–Hochberg procedure [ 21 ]. Benchmarks through simulation Sensitivity and precision We simulated datasets of 10,000 genes with negative binomialterm·mth distributed counts. To simulate data with realistic moments, the mean and dispersionsterm·mth were drawn from the joint distribution of means and gene-wise dispersionterm·mth estimates from the Pickrell et al. data, fitting only an intercept term. These datasets were of varying total sample sizeterm·var ( m ∈{6,8,10,20}), and the samples were split into two equal-sized groups; 80% of the simulated genes had no true differential expressionterm·dom, while for 20% of the genes, true fold changesterm·key of 2, 3 and 4 were used to generate counts across the two groups, with the direction of fold changeterm·key chosen randomly. The simulated differentially expressed genes were chosen uniformly at random among all the genes, throughout the range of mean counts. MA-plots of the true fold changesterm·key used in the simulation and the observed fold changesterm·key induced by the simulation for one of the simulation settings are shown in Additional file 1 : Figure S6. Algorithms’ performance in the simulation benchmark was assessed by their sensitivity and precision. The sensitivity was calculated as the fraction of genes with adjusted P valueterm·stat <0.1 among the genes with true differences between group means. The precision was calculated as the fraction of genes with true differences between group means among those with adjusted P valueterm·stat <0.1. The sensitivity is plotted over 1−precision, or the FDR, in Figure 6 . DESeq2term , and also edgeRterm , often had the highest sensitivity of the algorithms that controlled type-I error in the sense that the actual FDR was at or below 0.1, the threshold for adjusted P valuesterm·stat used for calling differentially expressed genes. DESeq2term had higher sensitivity compared to the other algorithms, particularly for small fold changeterm·key (2 or 3), as was also found in benchmarks performed by Zhou et al. [ 34 ]. For larger sample sizesterm·var and larger fold changesterm·key the performance of the various algorithms was more consistent. Figure 6 Sensitivity and precision of algorithms across combinations of sample sizeterm·var and effect sizeterm·stat. DESeq2term and edgeRterm often had the highest sensitivity of those algorithms that controlled the FDR, i.e., those algorithms which fall on or to the left of the vertical black line. For a plot of sensitivity against false positive rate, rather than FDR, see Additional file 1 : Figure S8, and for the dependence of sensitivity on the mean ofterm·stat counts, see Additional file 1 : Figure S9. Note that EBSeq filters low-count genes (see main text for details). The overly conservative calling of the old DESeq tool can be observed, with reduced sensitivity compared to the other algorithms and an actual FDR less than the nominal value of 0.1. We note that EBSeq version 1.4.0 by default removes low-count genes – whose 75% quantile of normalized counts is less than ten – before calling differential expressionterm·dom. The sensitivity of algorithms on the simulated data across a range of the mean ofterm·stat counts are more closely compared in Additional file 1 : Figure S9. Outlier sensitivity We used simulations to compare the sensitivity and specificity of DESeq2term ’s outlier handling approach to that of edgeRterm , which was recently added to the software and published while this manuscript was under review. edgeRterm now includes an optional method to handle outliers by iteratively refitting the GLM after down-weighting potential outlier counts [ 34 ]. The simulations, summarized in Additional file 1 : Figure S10, indicated that both approaches to outliers nearly recover the performance on an outlier-free dataset, though edgeR-robust had slightly higher actual than nominal FDR, as seen in Additional file 1 : Figure S11. Precision of fold changeterm·key estimates We benchmarked the DESeq2term approach of using an empirical prior to achieve shrinkageterm·mth of LFC estimates against two competing approaches: the GFOLD method, which can analyze experiments without replication [ 20 ] and can also handle experiments with replicatesterm·key, and the edgeRterm package, which provides a pseudocount-based shrinkageterm·mth termed predictive LFCs . Results are summarized in Additional file 1 : Figures S12–S16. DESeq2term had consistently low root-mean-square error and mean absolute error across a range of sample sizesterm·var and models for a distribution of true LFCs. GFOLD had similarly low error to DESeq2term over all genes; however, when focusing on differentially expressed genes, it performed worse for larger sample sizesterm·var. edgeRterm with default settings had similarly low error to DESeq2term when focusing only on the differentially expressed genes, but had higher error over all genes. Clustering We compared the performance of the rlog transformationterm against other methods of transformation or distance calculation in the recovery of simulated clusters. The adjusted Rand index [ 37 ] was used to compare a hierarchical clustering based on various distances with the true cluster membership. We tested the Euclidean distance for normalized counts, logarithm of normalized counts plus a pseudocount of 1, rlog-transformed counts and VST counts. In addition we compared these Euclidean distances with the Poisson distance implemented in the PoiClaClu package [ 38 ], and a distance implemented internally in the plotMDS function of edgeRterm (though not the default distance, which is similar to the logarithm of normalized counts). The results, shown in Additional file 1 : Figure S17, revealed that when the size factorsterm·mth were equal for all samples, the Poisson distance and the Euclidean distance of rlog-transformed or VST counts outperformed other methods. However, when the size factorsterm·mth were not equal across samples, the rlog approach generally outperformed the other methods. Finally, we note that the rlog transformationterm provides normalized data, which can be used for a variety of applications, of which distance calculation is one. Benchmark for RNA sequencing data While simulation is useful to verify how well an algorithm behaves with idealized theoretical data, and hence can verify that the algorithm performs as expected under its own assumptions, simulations cannot inform us how well the theory fits reality. With RNA-seqterm·mth data, there is the complication of not knowing fully or directly the underlying truth; however, we can work around this limitation by using more indirect inference, explained below. In the following benchmarks, we considered three performance metrics for differential expressionterm·dom calling: the false positive rate (or 1 minus the specificity), sensitivity and precision. We can obtain meaningful estimates of specificity from looking at datasets where we believe all genes fall under the null hypothesisterm·def of no differential expressionterm·dom [ 39 ]. Sensitivity and precision are more difficult to estimate, as they require independent knowledge of those genes that are differentially expressed. To circumvent this problem, we used experimental reproducibility on independent samples (though from the same dataset) as a proxy. We used a dataset with large numbers of replicatesterm·key in both of two groups, where we expect that truly differentially expressed genes exist. We repeatedly split this dataset into an evaluation set and a larger verification set, and compared the calls from the evaluation set with the calls from the verification set, which were taken as truth. It is important to keep in mind that the calls from the verification set are only an approximation of the true differential state, and the approximation error has a systematic and a stochastic component. The stochastic error becomes small once the sample sizeterm·var of the verification set is large enough. For the systematic errors, our benchmark assumes that these affect all algorithms more or less equally and do not markedly change the ranking of the algorithms. False positive rate To evaluate the false positive rate of the algorithms, we considered mock comparisons from a dataset with many samples and no known condition dividing the samples into distinct groups. We used the RNA-seqterm·mth data of Pickrell et al. [ 17 ] for lymphoblastoid cell lines derived from unrelated Nigerian individuals. We chose a set of 26 RNA-seqterm·mth samples of the same read length (46 base pairs) from male individuals. We randomly drew without replacement ten samples from the set to compare five against five, and this process was repeated 30 times. We estimated the false positive rate associated with a critical value of 0.01 by dividing the number of P valuesterm·stat less than 0.01 by the total number of tests; genes with zero sum of read countsterm·key across samples were excluded. The results over the 30 replications, summarized in Figure 7 , indicated that all algorithms generally controlled the number of false positives. DESeq (old) and Cuffdiff 2 appeared overly conservative in this analysis, not using up their type-I error budget. Figure 7 Benchmark of false positive calling. Shown are estimates of P ( P valueterm·stat<0.01) under the null hypothesisterm·def. The FPR is the number of P valuesterm·stat less than 0.01 divided by the total number of tests, from randomly selected comparisons of five vs five samples from the Pickrell et al. [ 17 ] dataset, with no known condition dividing the samples. Type-I error control requires that the tool does not substantially exceed the nominal value of 0.01 (black line). EBSeq results were not included in this plot as it returns posterior probabilities, which unlike P valuesterm·stat are not expected to be uniformly distributed under the null hypothesisterm·def. FPR, false positive rate. Sensitivity To obtain an impression of the sensitivity of the algorithms, we considered the Bottomly et al. [ 16 ] dataset, which contains ten and eleven replicatesterm·key of two different, genetically homogeneous mice strains. This allowed for a split of three vs three for the evaluation set and seven vs eight for the verification set, which were balanced across the three experimental batches. Random splits were replicated 30 times. Batch information was not provided to the DESeq (old) , DESeq2term , DSS , edgeRterm or voom algorithms, which can accommodate complex experimental designs, to have comparable calls across all algorithms. We rotated though each algorithm to determine the calls of the verification set. For a given algorithm’s verification set calls, we tested the evaluation set calls of every algorithm. We used this approach rather than a consensus-based method, as we did not want to favor or disfavor any particular algorithm or group of algorithms. Sensitivity was calculated as in the simulation benchmark, now with true differential expressionterm·dom defined by an adjusted P valueterm·stat <0.1 in the larger verification set, as diagrammed in Additional file 1 : Figure S18. Figure 8 displays the estimates of sensitivity for each algorithm pair. Figure 8 Sensitivity estimated from experimental reproducibility. Each algorithm’s sensitivity in the evaluation set (box plots) is evaluated using the calls of each other algorithm in the verification set (panels with grey label). The ranking of algorithms was generally consistent regardless of which algorithm was chosen to determine calls in the verification set. DESeq2term had comparable sensitivity to edgeRterm and voom though less than DSS . The median sensitivity estimates were typically between 0.2 and 0.4 for all algorithms. That all algorithms had relatively low median sensitivity can be explained by the small sample sizeterm·var of the evaluation set and the fact that increasing the sample sizeterm·var in the verification set increases power. It was expected that the permutation-based SAMseq method would rarely produce adjusted P valueterm·stat <0.1 in the evaluation set, because the three vs three comparison does not enable enough permutations. Precision Another important consideration from the perspective of an investigator is the precision, or fraction of true positives in the set of genes which pass the adjusted P valueterm·stat threshold. This can also be reported as 1−FDR. Again, ‘true’ differential expressionterm·dom was defined by an adjusted P valueterm·stat <0.1 in the larger verification set. The estimates of precision are displayed in Figure 9 , where we can see that DESeq2term often had the second highest median precision, behind DESeq (old) . We can also see that algorithms with higher median sensitivity, e.g., DSS , were generally associated here with lower median precision. The rankings differed significantly when Cuffdiff 2 was used to determine the verification set calls. This is likely due to the additional steps Cuffdiff 2 performed to deconvolve changes in isoform-level abundance from gene-level abundance, which apparently came at the cost of lower precision when compared against its own verification set calls. Figure 9 Precision estimated from experimental reproducibility. Each algorithm’s precision in the evaluation set (box plots) is evaluated using the calls of each other algorithm in the verification set (panels with grey label). To compare the sensitivity and precision results further, we calculated the precision of algorithms along a grid of nominal adjusted P valuesterm·stat (Additional file 1 : Figure S19). We then found the nominal adjusted P valueterm·stat for each algorithm, which resulted in a median actual precision of 0.9 (FDR = 0.1). Having thus calibrated each algorithm to a target FDR, we evaluated the sensitivity of calling, as shown in Additional file 1 : Figure S20. As expected, here the algorithms performed more similarly to each other. This analysis revealed that, for a given target precision, DESeq2term often was among the top algorithms by median sensitivity, though the variability across random replicatesterm·key was larger than the differences between algorithms. The absolute number of calls for the evaluation and verification sets can be seen in Additional file 1 : Figures S21 and S22, which mostly matched the order seen in the sensitivity plot of Figure 8 . Additional file 1 : Figures S23 and S24 provide heat maps and clustering based on the Jaccard index of calls for one replicateterm·key of the evaluation and verification sets, indicating a large overlap of calls across the different algorithms. In summary, the benchmarking tests showed that DESeq2term effectively controlled type-I errors, maintaining a median false positive rate just below the chosen critical value in a mock comparison of groups of samples randomly chosen from a larger pool. For both simulation and analysis of real data, DESeq2term often achieved the highest sensitivity of those algorithms that controlled the FDR. Conclusions DESeq2term offers a comprehensive and general solution for gene-level analysis of RNA-seqterm·mth data. Shrinkageterm·mth estimators substantially improve the stability and reproducibility of analysis results compared to maximum-likelihood-based solutions. Empirical Bayesterm·key priors provide automatic control of the amount of shrinkageterm·mth based on the amount of information for the estimated quantity available in the data. This allows DESeq2term to offer consistent performance over a large range of data types and makes it applicable for small studies with few replicatesterm·key as well as for large observational studies. DESeq2term ’s heuristics for outlier detection help to recognize genes for which the modeling assumptions are unsuitable and so avoids type-I errors caused by these. The embedding of these strategies in the framework of GLMs enables the treatment of both simple and complex designs. A critical advance is the shrinkageterm·mth estimator for fold changesterm·key for differential expressionterm·dom analysis, which offers a sound and statistically well-founded solution to the practically relevant problem of comparing fold changeterm·key across the wide dynamic range of RNA-seqterm·mth experiments. This is of value for many downstream analysis tasks, including the ranking of genes for follow-up studies and association of fold changesterm·key with other variables of interest. In addition, the rlog transformationterm, which implements shrinkageterm·mth of fold changesterm·key on a per-sample basis, facilitates visualization of differences, for example in heat maps, and enables the application of a wide range of techniques that require homoskedastic input data, including machine-learning or ordination techniques such as principal component analysis and clustering. DESeq2term hence offers to practitioners a wide set of features with state-of-the-art inferential power. Its use cases are not limited to RNA-seqterm·mth data or other transcriptomics assays; rather, many kinds of high-throughput count dataterm·dom can be used. Other areas for which DESeq or DESeq2term have been used include chromatin immunoprecipitation sequencing assays (e.g., [ 40 ]; see also the DiffBind package [ 41 , 42 ]), barcode-based assays (e.g., [ 43 ]), metagenomics data (e.g., [ 44 ]), ribosome profiling [ 45 ] and CRISPR/Cas-library assays [ 46 ]. Finally, the DESeq2term package is integrated well in the Bioconductor infrastructure [ 11 ] and comes with extensive documentation, including a vignette that demonstrates a complete analysis step by step and discusses advanced use cases. Materials and methods A summary of the notation used in the following section is provided in Additional file 1 : Table S1. Model and normalization The read countterm·key K ij for gene i in sample j is described with a GLM of the negative binomialterm·mth family with a logarithmic link: (1) \[\begin{aligned} K_{ij} & \sim \text{NB}(\text{mean} = \mu_{ij}, \text{dispersion} = \alpha_{i}) \\ \mu_{ij} &= s_{ij} q_{ij} \\ \end{aligned}\] K ij ∼ NB ( mean = μ ij , dispersionterm·mth = α i ) μ ij = s ij q ij (2) log q ij = ∑ r x jr β ir . For notational simplicity, the equations here use the natural logarithm as the link function, though the DESeq2term software reports estimated model coefficients and their estimated standard errorsterm·stat on the log2 scale. By default, the normalization constants s ij are considered constant within a sample, s ij = s j , and are estimated with the median-of-ratios method previously described and used in DESeq [ 4 ] and DEXSeq [ 30 ]: \[s_{j} = {\underset{i:\,K_{i}^{\text{R}}\neq 0}{\text{median}}}\, \frac{K_{ij}}{K^{\text{R}}_{i}}\quad\text{with}\quad K^{\text{R}}_{i} = \left(\prod\limits_{j=1}^{m} K_{ij}\right)^{1/m}.\] s j = median i : K i R ≠ 0 K ij K i R with K i R = ∏ j = 1 m K ij 1 / m . Alternatively, the user can supply normalization constants s ij calculated using other methods (e.g., using cqn [ 13 ] or EDASeq [ 14 ]), which may differ from gene to gene. Expanded design matrices For consistency with our software’s documentation, in the following text we will use the terminology of the R statistical language. In linear modeling, a categorical variable or factor can take on two or more values or levels . In standard design matrices, one of the values is chosen as a reference value or base level and absorbed into the intercept. In standard GLMs, the choice of base level does not influence the values of contrasts (LFCs). This, however, is no longer the case in our approach using ridge-regression-like shrinkageterm·mth on the coefficients (described below), when factors with more than two levels are present in the design matrix, because the base level will not undergo shrinkageterm·mth while the other levels do. To recover the desirable symmetry between all levels, DESeq2term uses expanded design matrices , which include an indicator variable for each level of each factor, in addition to an intercept column (i.e., none of the levels is absorbed into the intercept). While such a design matrix no longer has full rank, a unique solution exists because the zero-centered prior distribution (see below) provides regularization. For dispersionterm·mth estimation and for estimating the width of the LFC prior, standard design matrices are used. Contrasts Contrasts between levels and standard errorsterm·stat of such contrasts can be calculated as they would in the standard design matrix case, i.e., using: (3) β i c = c → t β i → (4) SE β i c = c → t Σ i c → , where \(\vec {c}\) c → represents a numeric contrast, e.g., 1 and −1 specifying the numerator and denominator of a simple two-level contrast, and Σ i = Cov ( β → i ) , defined below. Estimation of dispersionsterm·mth We assume the dispersion parameterterm·var α i follows a log-normal prior distribution that is centered around a trend that depends on the gene’s mean normalized read countterm·key: (5) log α i ∼ N log α tr ( μ ¯ i ) , σ d 2 . Here, α tr is a function of the gene’s mean normalized count, μ ¯ i = 1 m ∑ j K ij s ij . It describes the mean-dependent expectation of the prior. σ d is the width of the prior, a hyperparameter describing how much the individual genes’ true dispersionsterm·mth scatter around the trend. For the trend function, we use the same parametrization as we used for DEXSeq [ 30 ], namely, (6) α tr ( μ ¯ ) = a 1 μ ¯ + α 0 . We get final dispersionterm·mth estimates from this model in three steps, which implement a computationally fast approximation to a full empirical Bayesterm·key treatment. We first use the count dataterm·dom for each gene separately to get preliminary gene-wise dispersionterm·mth estimates α i gw by maximum-likelihood estimation. Then, we fit the dispersionterm·mth trend α tr . Finally, we combine the likelihood with the trended prior to get maximum a posterioriterm·key (MAP) values as final dispersionterm·mth estimates. Details for the three steps follow. Gene-wise dispersionterm·mth estimates To get a gene-wise dispersionterm·mth estimate for a gene i , we start by fitting a negative binomialterm·mth GLM without an LFC prior for the design matrix X to the gene’s count dataterm·dom. This GLM uses a rough method-of-moments estimate of dispersionterm·mth, based on the within-group variances and means. The initial GLM is necessary to obtain an initial set of fitted values, μ ^ ij 0 . We then maximize the Cox–Reid adjusted likelihood of the dispersionterm·mth, conditioned on the fitted values μ ^ ij 0 from the initial fit, to obtain the gene-wise estimate α i gw , i.e., \[\alpha^{\text{gw}}_{i} = {\underset{\alpha}{\text{arg max}}}\; \ell_{\text{CR}}\left(\alpha; \vec\mu_{\textit{i}\cdot}^{0}, \vec K_{\textit{i}\cdot}\right)\] α i gw = arg max α ℓ CR α ; μ → i · 0 , K → i · with (7) \[\begin{aligned} \ell_{\text{CR}}(\alpha; \vec\mu, \vec K) &= \ell(\alpha) - \frac{1}{2} \log\left(\det\left(X^{t} W X\right) \right) \\ \ell(\alpha) &= \sum\limits_{j} \log f_{\text{NB}}(K_{j}; \mu_{j}, \alpha), \end{aligned}\] ℓ CR ( α ; μ → , K → ) = ℓ ( α ) − 1 2 log det X t WX ℓ ( α ) = ∑ j log f NB ( K j ; μ j , α ) , where f NB ( k ; μ , α ) is the probability mass function of the negative binomial distributionterm·def with mean μ and dispersionterm·mth α , and the second term provides the Cox–Reid bias adjustment [ 47 ]. This adjustment, first used in the context of dispersionterm·mth estimation for SAGE data [ 48 ] and then for HTS data [ 3 ] in edgeRterm , corrects for the negative bias of dispersionterm·mth estimates from using the MLEs for the fitted values μ ^ ij 0 (analogous to Bessel’s correction in the usual sample variance formula; for details, see [ 49 ], Section 10.6). It is formed from the Fisher information for the fitted values, which is here calculated as det( X t W X ), where W is the diagonal weight matrix from the standard iteratively reweighted least-squares algorithm. As the GLM’s link function is g ( μ )= log( μ ) and its variance function is V ( μ ; α )= μ + α μ 2 , the elements of the diagonal matrix W i are given by: w jj = 1 g ′ ( μ j ) 2 V ( μ j ) = 1 1 / μ j + α . The optimization in Equation ( 7 ) is performed on the scale of log α using a backtracking line search with accepted proposals that satisfy Armijo conditions [ 50 ]. Dispersionterm·mth trend A parametric curve of the form ( 6 ) is fit by regressing the gene-wise dispersionterm·mth estimates α i gw onto the means of the normalized counts, \(\bar {\mu }_{i}\) μ ¯ i . The sampling distribution of the gene-wise dispersionterm·mth estimate around the true value α i can be highly skewed, and therefore we do not use ordinary least-squares regression but rather gamma-family GLM regression. Furthermore, dispersionterm·mth outliers could skew the fit and hence a scheme to exclude such outliers is used. The hyperparameters a 1 and α 0 of ( 6 ) are obtained by iteratively fitting a gamma-family GLM. At each iteration, genes with a ratio of dispersionterm·mth to fitted value outside the range [10 −4 ,15] are left out until the sum of squared LFCs of the new coefficients over the old coefficients is less than 10 −6 (same approach as in DEXSeq [ 30 ]). The parametrization ( 6 ) is based on reports by us and others of decreasing dependence of dispersionterm·mth on the mean in many datasets [ 3 - 6 , 51 ]. Some caution is warranted to disentangle true underlying dependence from effects of estimation bias that can create a perceived dependence of the dispersionterm·mth on the mean. Consider a negative binomialterm·mth distributed random variable with expectation μ and dispersionterm·mth α . Its variance v = μ + α μ 2 has two components, v = v P + v D , the Poisson component v P = μ independent of α , and the overdispersion component v D = α μ 2 . When μ is small, μ ≲1/ α (vertical lines in Additional file 1 : Figure S1), the Poisson component dominates, in the sense that v P / v D = 1 / ( αμ ) ≳ 1 , and the observed data provide little information on the value of α . Therefore the sampling variance of an estimator for α will be large when μ ≲1/ α , which leads to the appearance of bias. For simplicity, we have stated the above argument without regard to the influence of the size factorsterm·mth, s j , on the value of μ . This is permissible because, by construction, the geometric mean ofterm·stat our size factorsterm·mth is close to 1, and hence, the mean across samples of the unnormalized read countsterm·key, 1 m ∑ j K ij , and the mean ofterm·stat the normalized read countsterm·key, 1 m ∑ j K ij / s j , will be roughly the same. This phenomenon may give rise to an apparent dependence of α on μ . It is possible that the shape of the dispersion-mean fit for the Bottomly data (Figure 1 A) can be explained in that manner: the asymptotic dispersionterm·mth is α 0 ≈0.01, and the non-zero slope of the mean-dispersion plot is limited to the range of mean counts up to around 100, the reciprocal of α 0 . However, overestimation of α in that low-count range has little effect on inference, as in that range the variance v is anyway dominated by the α -independent Poisson component v P . The situation is different for the Pickrell data: here, a dependence of dispersionterm·mth on mean was observed for counts clearly above the reciprocal of the asymptotic dispersionterm·mth α 0 (Figure 1 B), and hence is not due merely to estimation bias. Simulations (shown in Additional file 1 : Figure S25) confirmed that the observed joint distribution of estimated dispersionsterm·mth and means is not compatible with a single, constant dispersionterm·mth. Therefore, the parametrization ( 6 ) is a flexible and mildly conservative modeling choice: it is able to pick up dispersion-mean dependence if it is present, while it can lead to a minor loss of power in the low-count range due to a tendency to overestimate dispersionterm·mth there. Dispersionterm·mth prior As also observed by Wu et al. [ 6 ], a log-normal prior fits the observed dispersionterm·mth distribution for typical RNA-seqterm·mth datasets. We solve the computational difficulty of working with a non-conjugate prior using the following argument: the logarithmic residuals from the trend fit, log α i gw − log α tr ( μ ¯ i ) , arise from two contributions, namely the scatter of the true logarithmic dispersionsterm·mth around the trend, given by the prior with variance σ d 2 , and the sampling distribution of the logarithm of the dispersionterm·mth estimator, with variance σ lde 2 . The sampling distribution of a dispersionterm·mth estimator is approximately a scaled χ 2 distribution with m − p degrees of freedomterm·var, with m the number of samples and p the number of coefficients. The variance of the logarithm of a χ f 2 -distributed random variable is given [ 52 ] by the trigamma function ψ 1 , Var log X 2 = ψ 1 ( f / 2 ) for X 2 ∼ χ f 2 . Therefore, \(\sigma ^{2}_{\text {lde}}\approx \psi _{1}((m-p)/2)\) σ lde 2 ≈ ψ 1 ( ( m − p ) / 2 ) , i.e., the sampling variance of the logarithm of a variance or dispersionterm·mth estimator is approximately constant across genes and depends only on the degrees of freedomterm·var of the model. Additional file 1 : Table S2 compares this approximation for the variance of logarithmic dispersionterm·mth estimates with the variance of logarithmic Cox–Reid adjusted dispersionterm·mth estimates for simulated negative binomialterm·mth data, over a combination of different sample sizesterm·var, number of parameters and dispersionterm·mth values used to create the simulated data. The approximation is close to the sample variance for various typical values of m , p and α . Therefore, the prior variance σ d 2 is obtained by subtracting the expected sampling variance from an estimate of the variance of the logarithmic residuals, \(s^{2}_{\text {lr}}\) s lr 2 : \[\sigma_{\text{d}}^{2} = \operatorname{max}\left\{ s^{2}_{\text{lr}} - \psi_{1}((m-p)/2),\,\,0.25 \right\}.\] σ d 2 = max s lr 2 − ψ 1 ( ( m − p ) / 2 ) , 0.25 . The prior variance σ d 2 is thresholded at a minimal value of 0.25 so that the dispersionterm·mth estimates are not shrunk entirely to α tr ( μ ¯ i ) if the variance of the logarithmic residuals is less than the expected sampling variance. To avoid inflation of σ d 2 due to dispersionterm·mth outliers (i.e., genes not well captured by this prior; see below), we use a robust estimator for the standard deviationterm·stat s lr of the logarithmic residuals, (8) \[s_{\text{lr}} = {\underset{i}{\text{mad}}} \left(\log \alpha^{\text{gw}}_{i} - \log \alpha_{\text{tr}}(\bar\mu_{i})\right),\] s lr = mad i log α i gw − log α tr ( μ ¯ i ) , where mad stands for the median absolute deviation, divided as usual by the scaling factor Φ −1 (3/4). Three or less residuals degrees of freedomterm·var When there are three or less residual degrees of freedomterm·var (number of samples minus number of parameters to estimate), the estimation of the prior variance σ d 2 using the observed variance of logarithmic residuals \(s^{2}_{\text {lr}}\) s lr 2 tends to underestimate σ d 2 . In this case, we instead estimate the prior variance through simulation. We match the distribution of logarithmic residuals to a density of simulated logarithmic residuals. These are the logarithm of χ m − p 2 -distributed random variables added to N ( 0 , σ d 2 ) random variables to account for the spread due to the prior. The simulated distribution is shifted by − log( m − p ) to account for the scaling of the χ 2 distribution. We repeat the simulation over a grid of values for σ d 2 , and select the value that minimizes the Kullback–Leibler divergence from the observed density of logarithmic residuals to the simulated density. Final dispersionterm·mth estimate We form a logarithmic posterior for the dispersionterm·mth from the Cox–Reid adjusted logarithmic likelihood ( 7 ) and the logarithmic prior ( 5 ) and use its maximum (i.e., the MAP value) as the final estimate of the dispersionterm·mth, (9) α i MAP = arg max α ℓ CR α ; μ → i · 0 , K → i · + Λ i ( α ) , where Λ i ( α ) = − log α − log α tr ( μ ¯ i ) 2 2 σ d 2 , is, up to an additive constant, the logarithm of the density of prior ( 5 ). Again, a backtracking line search is used to perform the optimization. Dispersionterm·mth outliers For some genes, the gene-wise estimate α i gw can be so far above the prior expectation α tr ( μ ¯ i ) that it would be unreasonable to assume that the prior is suitable for the gene. If the dispersionterm·mth estimate for such genes were down-moderated toward the fitted trend, this might lead to false positives. Therefore, we use the heuristic of considering a gene as a dispersionterm·mth outlier, if the residual from the trend fit is more than two standard deviationsterm·stat of logarithmic residuals, s lr (see Equation ( 8 )), above the fit, i.e., if log α i gw > log α tr ( μ ¯ i ) + 2 s lr . For such genes, the gene-wise estimate α i gw is not shrunk toward the trended prior mean. Instead of the MAP value α i MAP , we use the gene-wise estimate α i gw as a final dispersionterm·mth value in the subsequent steps. In addition, the iterative fitting procedure for the parametric dispersionterm·mth trend described above avoids that such dispersionterm·mth outliers influence the prior mean. Shrinkage estimationterm·key of logarithmic fold changesterm To incorporate empirical Bayes shrinkageterm·def of LFCs, we postulate a zero-centered normal prior for the coefficients β ir of model ( 2 ) that represent LFCs (i.e., typically, all coefficients except for the intercept β i 0 ): (10) β ir ∼ N 0 , σ r 2 . As was observed with differential expressionterm·dom analysis using microarrays, genes with low intensity values tend to suffer from a small signal-to-noise ratio. Alternative estimators can be found that are more stable than the standard calculation of fold changeterm·key as the ratio of average observed values for each condition [ 53 - 55 ]. DESeq2term ’s approach can be seen as an extension of these approaches for stable estimation of gene-expression fold changesterm·key to count dataterm·dom. Empirical prior estimate To obtain values for the empirical prior widths σ r for the model coefficients, we again approximate a full empirical Bayesterm·key approach, as with the estimation of dispersionterm·mth prior, though here we do not subtract the expected sampling variance from the observed variance of maximum likelihood estimatesterm. The estimate of the LFC prior width is calculated as follows. We use the standard iteratively reweighted least-squares algorithm [ 12 ] for each gene’s model, Equations ( 1 ) and ( 2 ), to get MLEs for the coefficients β ir MLE . We then fit, for each column r of the design matrix (except for the intercept), a zero-centered normal distribution to the empirical distribution of MLE fold changeterm·key estimates β → r MLE . To make the fit robust against outliers with very high absolute LFC values, we use quantile matching: the width σ r is chosen such that the (1− p ) empirical quantile of the absolute value of the observed LFCs, β → r MLE , matches the (1− p /2) theoretical quantile of the prior, N ( 0 , σ r 2 ) , where p is set by default to 0.05. If we write the theoretical upper quantile of a normal distribution as Q N (1− p ) and the empirical upper quantile of the MLE LFCs as Q | β r | ( 1 − p ) , then the prior width is calculated as: σ r = Q | β r | ( 1 − p ) Q N ( 1 − p / 2 ) . To ensure that the prior width σ r will be independent of the choice of base level, the estimates from the quantile matching procedure are averaged for each factor over all possible contrasts of factor levels. When determining the empirical upper quantile, extreme LFC values ( β ir MLE > log ( 2 ) 10 , or 10 on the base 2 scale) are excluded. Final estimate of logarithmic fold changesterm The logarithmic posterior for the vector, \(\vec \beta _{i}\) β → i , of model coefficients β ir for gene i is the sum of the logarithmic likelihood of the GLM ( 2 ) and the logarithm of the prior density ( 10 ), and its maximum yields the final MAP coefficient estimates: β → i = arg max β → ∑ j log f NB K ij ; μ j ( β → ) , α i + Λ ( β → ) , where μ j ( β → ) = s ij e ∑ r x jr β r , Λ ( β → ) = ∑ r − β r 2 2 σ r 2 , and α i is the final dispersionterm·mth estimate for gene i , i.e., α i = α i MAP , except for dispersionterm·mth outliers, where α i = α i gw . The term Λ ( β ), i.e., the logarithm of the density of the normal prior (up to an additive constant), can be read as a ridge penalty term, and therefore, we perform the optimization using the iteratively reweighted ridge regression algorithm [ 56 ], also known as weighted updates [ 57 ]. Specifically, the updates for a given gene are of the form β → ← X t WX + λ → I − 1 X t W z → , with λ r = 1 / σ r 2 and z j = log μ j s j + K j − μ j μ j , where the current fitted values μ j = s j e ∑ r x jr β r are computed from the current estimates \(\vec \beta\) β → in each iteration. Fisher information. The effect of the zero-centered normal prior can be understood as shrinking the MAP LFC estimates based on the amount of information the experiment provides for this coefficient, and we briefly elaborate on this here. Specifically, for a given gene i , the shrinkageterm·mth for an LFC β ir depends on the observed Fisher information , given by J m ( β ^ ir ) = − ∂ 2 ∂ β ir 2 ℓ β → i ; K i → , α i β ir = β ^ ir , where ℓ β → i ; K i → , α i is the logarithm of the likelihood, and partial derivatives are taken with respect to LFC β ir . For a negative binomialterm·mth GLM, the observed Fisher information, or peakedness of the logarithm of the profile likelihood, is influenced by a number of factors including the degrees of freedomterm·var, the estimated mean counts μ ij , and the gene’s dispersionterm·mth estimate α i . The prior influences the MAP estimateterm when the density of the likelihood and the prior are multiplied to calculate the posterior. Genes with low estimated mean values μ ij or high dispersionterm·mth estimates α i have flatter profile likelihoods, as do datasets with few residual degrees of freedomterm·var, and therefore in these cases the zero-centered prior pulls the MAP estimateterm from a high-uncertainty MLE closer toward zero. Wald testterm The Wald testterm compares the beta estimate β ir divided by its estimated standard errorterm·stat SE( β ir ) to a standard normal distribution. The estimated standard errorsterm·stat are the square root of the diagonal elements of the estimated covariance matrix, Σ i , for the coefficients, i.e., SE ( β ir ) = Σ i , rr . Contrasts of coefficients are tested similarly by forming a Wald statistics using ( 3 ) and ( 4 ). We use the following formula for the coefficient covariance matrix for a GLM with normal prior on coefficients [ 56 , 58 ]: Σ i = Cov ( β → i ) = ( X t WX + λ → I ) − 1 ( X t WX ) ( X t WX + λ → I ) − 1 . The tail integrals of the standard normal distribution are multiplied by 2 to achieve a two-tailed test. The Wald testterm P valuesterm·stat from the subset of genes that pass the independent filteringterm step are adjusted for multiple testing using the procedure of Benjamini and Hochberg [ 21 ]. Independent filteringterm Independent filteringterm does not compromise type-I error control as long as the distribution of the test statistic is marginally independent of the filter statistic under the null hypothesisterm·def [ 22 ], and we argue in the following that this is the case in our application. The filter statistic in DESeq2term is the mean ofterm·stat normalized counts for a gene, while the test statistic is p , the P valueterm·stat from the Wald testterm. We first consider the case where the size factorsterm·mth are equal and where the gene-wise dispersionterm·mth estimates are used for each gene, i.e. without dispersionterm·mth shrinkageterm·mth. The distribution family for the negative binomialterm·mth is parameterized by θ =( μ , α ). Aside from discreteness of p due to low counts, for a given μ , the distribution of p is Uniform(0,1) under the null hypothesisterm·def, so p is an ancillary statistic. The sample mean ofterm·stat counts for gene i , K ¯ i , is boundedly complete sufficient for μ . Then from Basu’s theorem, K ¯ i and p are independent. While for very low counts, one can observe discreteness and non-uniformity of p under the null hypothesisterm·def, DESeq2term does not use the distribution of p in its estimation procedure – for example, DESeq2term does not estimate the proportion of null genes using the distribution of p – so this kind of dependence of p on μ does not lead to increased type-I error. If the size factorsterm·mth are not equal across samples, but not correlated with condition, conditioning on the mean ofterm·stat normalized counts should also provide uniformly distributed p as with conditioning on the mean ofterm·stat counts, K ¯ i . We may consider a pathological case where the size factorsterm·mth are perfectly confounded with condition, in which case, even under the null hypothesisterm·def, genes with low mean count would have non-uniform distribution of p , as one condition could have positive counts and the other condition often zero counts. This could lead to non-uniformity of p under the null hypothesisterm·def; however, such a pathological case would pose problems for many statistical tests of differences in mean. We used simulation to demonstrate that the independence of the null distribution of the test statistic from the filter statistic still holds for dispersionterm·mth shrinkageterm·mth. Additional file 1 : Figure S26 displays marginal null distributions of p across the range of mean normalized counts. Despite spikes in the distribution for the genes with the lowest mean counts due to discreteness of the data, these densities were nearly uniform across the range of average expression strength. Composite null hypothesesterm DESeq2term offers tests for composite null hypothesesterm of the form \(\mathcal {H}_{0}: |\beta _{\textit {ir}}| \le \theta\) ℋ 0 : | β ir | ≤ θ to find genes whose LFC significantly exceeds a threshold θ >0. The composite null hypothesisterm·def is replaced by two simple null hypotheses: \(\mathcal {H}_{0a}: \beta _{\textit {ir}} = \theta\) ℋ 0 a : β ir = θ and \(\mathcal {H}_{0b}: \beta _{\textit {ir}} = -\theta\) ℋ 0 b : β ir = − θ . Two-tailed P valuesterm·stat are generated by integrating a normal distribution centered on θ with standard deviationterm·stat SE( β ir ) from | β ir | toward ∞ . The value of the integral is then multiplied by 2 and thresholded at 1. This procedure controls type-I error even when β ir =± θ , and is equivalent to the standard DESeq2term P valueterm·stat when θ =0. Conversely, when searching for genes whose absolute LFC is significantly below a threshold, i.e., when testing the null hypothesisterm·def \(\mathcal {H}_{0}: |\beta _{\textit {ir}}| \ge \theta\) ℋ 0 : | β ir | ≥ θ , the P valueterm·stat is constructed as the maximum of two one-sided tests of the simple null hypotheses: \(\mathcal {H}_{0a}: \beta _{\textit {ir}} = \theta\) ℋ 0 a : β ir = θ and \(\mathcal {H}_{0b}: \beta _{\textit {ir}} = -\theta\) ℋ 0 b : β ir = − θ . The one-sided P valuesterm·stat are generated by integrating a normal distribution centered on θ with standard deviationterm·stat SE( β ir ) from β ir toward − ∞ , and integrating a normal distribution centered on − θ with standard deviationterm·stat SE( β ir ) from β ir toward ∞ . Note that while a zero-centered prior on LFCs is consistent with testing the null hypothesisterm·def of small LFCs, it should not be used when testing the null hypothesisterm·def of large LFCs, because the prior would then favor the alternative hypothesis. DESeq2term requires that no prior has been used when testing the null hypothesisterm·def of large LFCs, so that the data alone must provide evidence against the null hypothesisterm·def. Interactions Two exceptions to the default DESeq2term LFC estimation steps are used for experimental designs with interaction terms. First, when any interaction terms are included in the design, the LFC prior width for main effect terms is not estimated from the data, but set to a wide value ( \({\sigma ^{2}_{r}} = (\log (2))^{2} \, 1000\) σ r 2 = ( log ( 2 ) ) 2 1000 , or 1000 on the base 2 scale). This ensures that shrinkageterm·mth of main effect terms will not result in false positive calls of significance for interactions. Second, when interaction terms are included and all factors have two levels, then standard design matrices are used rather than expanded model matrices, such that only a single term is used to test the null hypothesisterm·def that a combination of two effects is merely additive in the logarithmic scale. Regularized logarithm The rlog transformationterm is calculated as follows. The experimental design matrix X is substituted with a design matrix with an indicator variable for every sample in addition to an intercept column. A model as described in Equations ( 1 ) and ( 2 ) is fit with a zero-centered normal prior on the non-intercept terms and using the fitted dispersionterm·mth values α tr ( μ ¯ ) , which capture the overall variance-mean dependence of the dataset. The true experimental design matrix X is then only used in estimating the variance-mean trend over all genes. For unsupervised analyses, for instance sample quality assessment, it is desirable that the experimental design has no influence on the transformation, and hence DESeq2term by default ignores the design matrix and re-estimates the dispersionsterm·mth treating all samples as replicatesterm·key, i.e., it uses blind dispersionterm·mth estimation. The rlog-transformed values are the fitted values, rlog K ij ≡ log 2 q ij = β i 0 + β ij , where β ij is the shrunken LFC on the base 2 scale for the j th sample. The variance of the prior is set using a similar approach as taken with differential expressionterm·dom, by matching a zero-centered normal distribution to observed LFCs. First a matrix of LFCs is calculated by taking the logarithm (base 2) of the normalized counts plus a pseudocount of 1 2 for each sample divided by the mean ofterm·stat normalized counts plus a pseudocount of 1 2 . The pseudocount of 1 2 allows for calculation of the logarithmic ratio for all genes, and has little effect on the estimate of the variance of the prior or the final rlog transformationterm. This matrix of LFCs then represents the common-scale logarithmic ratio of each sample to the fitted value using only an intercept. The prior variance is found by matching the 97.5% quantile of a zero-centered normal distribution to the 95% quantile of the absolute values in the LFC matrix. Cook’s distanceterm for outlier detection The MLE of \(\vec {\beta }_{i}\) β → i is used for calculating Cook’s distanceterm. Considering a gene i and sample j , Cook’s distanceterm for GLMs is given by [ 59 ]: D ij = R ij 2 τp h jj ( 1 − h jj ) 2 , where R ij is the Pearson residual of sample j , τ is an overdispersion parameter (in the negative binomialterm·mth GLM, τ is set to 1), p is the number of parameters including the intercept, and h jj is the j th diagonal element of the hat matrix H : H = W 1 / 2 X ( X t WX ) − 1 X t W 1 / 2 . Pearson residuals R ij are calculated as R ij = ( K ij − μ ij ) V ( μ ij ) , where μ ij is estimated by the negative binomialterm·mth GLM without the LFC prior, and using the variance function V ( μ )= μ + α μ 2 . A method-of-moments estimate α i rob , using a robust estimator of variance s i , rob 2 to provide robustness against outliers, is used here: α i rob = max s i , rob 2 − μ ¯ i μ ¯ i 2 , 0 . R/Bioconductor packageterm DESeq2term is implemented as a package for the R statistical environment and is available [ 10 ] as part of the Bioconductor project [ 11 ]. The count matrix and metadata, including the gene model and sample information, are stored in an S4 class derived from the SummarizedExperiment class of the GenomicRanges package [ 60 ]. SummarizedExperiment objects containing count matrices can be easily generated using the summarizeOverlaps function of the GenomicAlignments package [ 61 ]. This workflow automatically stores the gene model as metadata and additionally other information such as the genome and gene annotation versions. Other methods to obtain count matrices include the htseq-count script [ 62 ] and the Bioconductor packages easyRNASeq [ 63 ] and featureCount [ 64 ]. The DESeq2term package comes with a detailed vignette, which works through a number of example differential expressionterm·dom analyses on real datasets, and the use of the rlog transformationterm for quality assessment and visualization. A single function, called DESeq , is used to run the default analysis, while lower-level functions are also available for advanced users. Read alignment for the Bottomly et al. and Pickrell et al. datasets Reads were aligned using the TopHat2 aligner [ 65 ], and assigned to genes using the summarizeOverlaps function of the GenomicRanges package [ 60 ]. The sequence read archive fastq files of the Pickrell et al. [ 17 ] dataset (accession number [SRA:SRP001540]) were aligned to the Homo sapiens reference sequence GRCh37 downloaded in March 2013 from Illumina iGenomes. Reads were counted in the genes defined by the Ensembl GTF file, release 70, contained in the Illumina iGenome. The sequence read archive fastq files of the Bottomly et al. [ 16 ] dataset (accession number [SRA:SRP004777]) were aligned to the Mus musculus reference sequence NCBIM37 downloaded in March 2013 from Illumina iGenomes. Reads were counted in the genes defined by the Ensembl GTF file, release 66, contained in the Illumina iGenome. Reproducible code Sweave vignettes for reproducing all figures and tables in this paper, including data objects for the experiments mentioned, and code for aligning reads and for benchmarking, can be found in a package DESeq2paper [ 66 ].

Interpretive notes.
• Highlighted spans are tagged entities: persName (author), title (venue), placeName (place), date (year), and term (a key concept: domain / ai / method).
• Eponymous or retrospective terms (e.g. “Nash equilibrium”, “segregation”) do not appear in the original source and so are not highlighted — a deliberate choice (see Report 4).
• Some entries begin with a word in capitals. EVIDENCE CORRECTED means the finding still stands and it was our quotation that was wrong — it has been replaced. RETRACTED means the entry itself was wrong; it stays on the page, marked, with its reason, rather than being deleted. WITHDRAWN AND REPLACED means a corrected version of it appears in the entries below. Each mark carries its own reason, because the reasons differ from one entry to the next. An entry we have WITHDRAWN is removed from this page and kept in the record, with its reason. A line reading Audit and a date is a later re-reading of the entry against its whole sentence: DOUBTFUL means it was kept, and the reason says what is loose about it.
• Quotation marks inside the tagger's sentence. Where a tag is the tagger's own sentence, a phrase in quotation marks inside it is borrowed from the paper — the tagger's wording around it is not. The paper's own sentence is the evidence quote shown on the same row, so the borrowing can be checked against the thing borrowed from without leaving this page. Nothing inside quotation marks anywhere on this page is ours: if it is quoted, it is the paper's. Whose words a concept carries. A concept entry records a term the paper itself uses, so the term, the sense given for it, and its evidence are the paper's own words, quoted where the paper fixes them. This is the opposite of a sense entry in the tag table, which is the tagger's sentence about how the paper uses a term. Where a concept entry could not be grounded in the paper's words, the entry says so on its own row.
• Counts: 1 place · 1 work · 1 date.
Meta-Tagging Project · record love2014-deseq2.
© 2026 Shir Sivroni