Free audit for one project, up to 30 samples. No payment today. Request yours

CodeISB / Blog

Why does my DESeq2 result have NA p-values? (padj NA explained)

2026-11-07 · 6 min read

If your DESeq2 results table has NA in the pvalue or padj column, nothing is broken. DESeq2 sets these values to NA on purpose, for one of three reasons: the gene has no counts, one sample looks like a count outlier, or the gene was removed by independent filtering. Which column is NA tells you which reason applies.

What does NA mean in a DESeq2 results table?

NA means DESeq2 chose not to report a value for that gene. It does not mean the gene is unchanged, and it does not mean the test failed. It is a flag, and the pattern of NAs across the columns tells you why the flag was set.

The three reasons a DESeq2 p-value is NA

The DESeq2 vignette lists three causes. Look at baseMean, pvalue and padj together:

What you seeReasonWhat happened
baseMean is 0, and the fold change, p-value and padj are all NAAll-zero geneEvery sample has zero counts for the gene, so there is nothing to test.
baseMean above 0, and both pvalue and padj are NACount outlierOne sample has a count that pulls the result far more than the others, as measured by Cook’s distance.
pvalue has a number, but padj is NAIndependent filteringThe gene’s mean count is low, so it was left out of the multiple-testing correction.

How do I tell which reason applies to my genes?

Count each pattern. With your results object called res:

  • All-zero genes: sum(res$baseMean == 0)
  • Outlier-flagged genes: sum(is.na(res$pvalue) & res$baseMean > 0)
  • Filtered genes: sum(!is.na(res$pvalue) & is.na(res$padj))

Most of the NAs in a typical table are the first and third kinds, and they are harmless. The second kind deserves a look.

Is independent filtering a problem?

Usually not. By default, DESeq2 picks a cutoff on the mean normalized count that gives the most adjusted p-values below a chosen threshold, and sets padj to NA for genes under that cutoff. Genes with very few reads rarely reach significance anyway, and dropping them makes the correction less strict for the rest. The vignette section on independent filtering covers it, and the default threshold is 0.1.

If you report results at 0.05, say so in the call: results(dds, alpha = 0.05). The filter is tuned to the alpha you give it, so the number of NAs changes with it. You can turn filtering off with independentFiltering = FALSE, but then you should filter low-count genes yourself. Deleting NA rows with na.omit() hides which genes were dropped and why.

What if many genes are flagged as count outliers?

A handful is normal. A large number of outlier flags, concentrated in one sample, points at that sample rather than at the genes. Check three things before changing any DESeq2 setting:

  • Its library size against the others.
  • Its correlation with its own replicates.
  • Where it sits on a PCA plot.

These are the first three checks in our RNA-seq QC checklist, and this guide to reading a PCA plot shows what an outlying sample looks like. A swapped or mislabeled sample can also produce this pattern, which is why the sample swap checks are worth running too.

Two settings are worth knowing. When a group has seven or more replicates, DESeq2 replaces flagged counts automatically instead of setting the p-value to NA, which is controlled by minReplicatesForReplace in the DESeq() documentation. And cooksCutoff = FALSE in results() turns the flagging off, but then a single odd sample can drive a gene’s result without any warning.

What this cannot tell you

An NA explains itself statistically, but it cannot tell you whether the outlying count is a real biological signal, a technical problem or a mislabeled sample. That takes a look at the sample, and sometimes the original reads or the lab records. CodeISB works from the count matrix and the sample sheet, so it can flag a sample that looks wrong, but not why it is wrong.

Common questions

Is an NA p-value the same as not significant?

No. Not significant means a test ran and the evidence was weak. NA means no test result was reported for that gene.

Why is padj NA when the p-value looks fine?

Independent filtering. The gene’s mean count fell below the cutoff, so it was excluded from the adjustment even though a raw p-value exists.

Should I remove NA rows before making plots?

For a volcano plot or heatmap, yes, but first count how many you removed and which kind they were, so you can describe it in your methods.

To see what a check report looks like when something is wrong, open our sample audit report with deliberately planted problems.

Do not find out after it costs you

CodeISB checks your count matrix and sample sheet for swapped samples, weak libraries and batch confounding, and returns a one-page report. No raw reads or patient identifiers needed.

The first audit is free. Current prices hold for 12 months from your first project; later customers pay list.

Get your free audit