Normalization function in DEseq2
1
0
Entering edit mode
13 months ago
QX ▴ 60

Hi all,

I am try to work with normalization count data using DEseq2. I am trying their tutorial, until the normalization part.

dds <- estimateSizeFactors(dds)

There are different output from their code:

counts(dds, normalized=TRUE)

with when I compute manually:

counts(dds, normalized=FALSE) / sizeFactors(dds)

The author mentioned in this that the normalization data can be computed by divide the counts by sizeFactors(), but why do their function generate differ result compare to when I compute manually.

Does anyone have this issue before?

DEseq2 • 655 views
ADD COMMENT
4
Entering edit mode
13 months ago
ATpoint 86k

counts(dds, normalized=FALSE) / sizeFactors(dds)

This line is wrong. It must be t(t(counts(dds, normalized=FALSE)) / sizeFactors(dds)) as this is how in R division works when you have one size factor per sample. You first have to transpose the matrix so each sample is a row, and then eventually transpose back. This will give identical results to counts(dds, normalized=TRUE).

ADD COMMENT
0
Entering edit mode

TRUE!

Thank you so much!

ADD REPLY

Login before adding your answer.

Traffic: 1417 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6