Before you start, write the comparison in one sentence and identify the independent biological replicates. A model cannot separate treatment from batch if every treated sample is in one batch and every control is in another.
1. Set the factor and direction#
On Analysis settings → Comparison, choose the factor, numerator and denominator from the saved sample metadata. The default formula is ~ condition.
A run analyses one contrast. A configuration can hold several, but only the first is tested and written to the results; run a second project, or change the comparison and run again, for another contrast.
2. Choose calling thresholds#
| Setting | What it changes | When to change it / example |
|---|---|---|
| alpha: 0.05 | The adjusted-p threshold used in the selected gene lists. Smaller values impose a stricter evidence cutoff. | Illustration: padj 0.03 with log2FC 1.2 passes the default cutoffs but fails alpha 0.01. This is not a 3% probability that this gene is false. |
| |log2FC|: 1 | Requires a minimum absolute effect size as well as the adjusted-p criterion. A value of 0 disables the fold-change filter. | Illustration: +1 means twofold; -1 means half relative to the denominator. Raising the cutoff can exclude modest effects with strong statistical evidence. |
| DE engine: DESeq2 | Chooses the count-model analysis. limma-voom and edgeR quasi-likelihood are documented alternatives; microarrays use limma. | Use a preselected analysis strategy. Changing engines is a new model analysis, not just a figure style change. |
| DESeq2 minimum count: 10 | Controls low-count filtering before model fitting. | Review low-count treatment for your study rather than repeatedly changing it to obtain more hits. |
| Shrinkage: apeglm | Regularizes effect-size estimates; ashr and normal are supported alternatives. | Use a justified estimator. The published volcano and direction lists use unshrunken effects; shrinkage is not the volcano x-axis setting. |
The main up/down lists require padj < alpha and the inclusive raw-effect screen |log2FC| ≥ threshold; an exactly zero effect is neutral when the threshold is zero. BH control concerns the p-value rejection set under its assumptions. Adding a raw fold-change screen does not guarantee the same FDR for the final subset. The informational padj_lfc_ge_threshold column tests an effect-size threshold and does not enter the main calls. See what adjusted p-values mean.
3. Include justified covariates#
Use Design helper to select relevant sample columns and build an additive formula, such as ~ batch + condition. This estimates the condition comparison while modelling recorded batch structure. It does not erase confounding or manufacture information.
| Setting | What it changes | When to change it / example |
|---|---|---|
| Reference level | Determines the baseline level used in model coding. | Use a biologically meaningful baseline and inspect the explicit numerator/denominator rather than relying only on level order. |
| Text batch labels b1 / b2 | Represents distinct categories. | Use for two sequencing batches. |
| Numeric covariate 1 / 2 / 3 | Fits a continuous linear trend rather than separate categories. | Use only if a numeric trend is intended; for numbered batches, use text labels. |
| Additional covariates | Changes the fitted adjustment and consumes model information. | Include measured, relevant factors; adding every column is not automatically better. |
4. Save and validate#
Save settings and run the input/design checks. Review rank and replication warnings and investigate any aliased factors.
Supported formula syntax#
Every local DE engine requires one one-sided R formula beginning with ~. DESeq2 supports formula operators and the transformations I, log, log2, log10, log1p, sqrt, abs, scale and poly. Arbitrary function calls are refused. A parsed formula must still define an identifiable model and the comparison you intend.
edgeR, limma-voom and microarray limma accept only additive bare sample-sheet variables, including the contrast factor, plus intercept terms 0, 1 and -1. For example, ~ batch + condition is supported and fitted through the documented group-means matrix. Transformations such as log(age), interactions, nesting, dot expansion and variable removal such as ~ condition + age - age are refused. A missing contrast factor is refused rather than inserted. Preserve scientifically required terms when choosing an engine.
This guard runs at the R differential-expression stage before fitting. The Python pre-run checks do not yet reproduce every formula restriction, so a prior validation pass is not proof that an arbitrary typed formula is supported. Review pre-0.35.0 alternative-engine results whose requested formulas used these constructs; see upgrade guidance.
Advanced: interactions and model scope
DESeq2 can fit a typed interaction, but BulkSeq Studio exposes only a factor, numerator and denominator contrast. If that comparison factor participates in an interaction, its main-effect contrast is conditional on the other interacting terms: factor reference levels and zero for numeric covariates. An interaction confined to other covariates does not impose that interpretation on the comparison factor. The design check (08) reports REVIEW_REQUIRED for expanded interaction terms, including nesting, and does not refuse the fit. Arithmetic inside transformations, such as I(age^2) or log(age/2), is not itself an interaction. There is no interaction-coefficient or numeric-contrast selector; testing an interaction requires a separately specified DESeq2 analysis. The alternative count engines and microarray limma accept only additive bare variables and supported intercept terms; transformations, interactions, nesting (including %in%), dot expansion and variable removal are rejected.
The output-stage covariate screen reads the PCA coordinates each locally fitted engine writes, so it runs on DESeq2, edgeR, limma-voom and microarray limma and is skipped only for imported results, which have no expression matrix. Because every engine screens its own coordinates, the same column can be reported differently on different engines. The screen is advisory and does not add terms automatically. See output checks.
Method reference: DESeq2 vignette.
Try an illustrative threshold#
This example is synthetic and changes no project. Both adjusted-p and effect-size criteria must be satisfied.