This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to get fitted per sample means and dispersion from DESeq2?

Hi,

DESeq uses the following model for differential expression analysis:

K_ij ~ NB(mu_ij, alpha_i)

mu_ij = s_j q_ij

log2(q_ij) = x_j. beta_i

Is there a way to access the specific 'mu_ij' and 'alpha_i' values?

I have been looking around and found assays(dds)[['mu']] giving something like mu_ij but am not sure if those are indeed the values that I am looking for.

Thanks!

rna-seq r next-gen sequencing

1 answer

Take a look at the Access to all calculated values of the tutorial Analyzing RNA-seq data with DESeq2.

Dispersion is calculated on a gene-wise basis and the final modelled dispersion can be obtained with mcols(dds)$dispersion or dispersions(dds). The estimated gene dispersions that go into the Bayesian model as priors can be obtained with mcols(dds)$dispGeneEst

For the mean, it states:

Screen_Shot_2018_05_16_at_16_00_51

Hi, that worked great. Thanks a lot Kevin!

You're welcome - no problem.

Log in to answer this question.