Getting TMM from DESeq2
1
0
Entering edit mode
4.3 years ago
zizigolu ★ 4.3k

I have raw read count of two groups of patients I want to normalize this matrix in a way getting TMM or geometric mean values by DESeq2 how can I do that?

R RNA-Seq • 4.7k views
ADD COMMENT
2
Entering edit mode
4.3 years ago

Hello, this should return what you need:

counts(dds, normalised = TRUE)

Please see: http://bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#do-normalized-counts-correct-for-variables-in-the-design

Kevin

ADD COMMENT
2
Entering edit mode

I just wanted to point out for the original poster's knowledge that only edgeR uses TMM normalization.

ADD REPLY
0
Entering edit mode

You mean DESeq2 gives geometric mean by Kevin's formula?

ADD REPLY
0
Entering edit mode

Perhaps take a look at the output of ?DESeq2::counts

normalized: logical indicating whether or not to divide the counts by the size factors or normalization factors before returning (normalization factors always preempt size factors)

ADD REPLY
0
Entering edit mode

Thank you so much

In GSEA manual says

Normalizing RNA-seq quantification to support comparisons of a feature's expression levels across samples is important for GSEA. Normalization methods (such as, TMM, geometric mean) which operate on raw counts data should be applied prior to running GSEA. Tools such as DESeq2 can be made to produce properly normalized data (normalized counts) which are compatible with GSEA

So I have two groups (n=9 versus n=24)

I put my raw counts matrix in this formula

dge <- DGEList(M)
dge <- calcNormFactors(dge)
logCPM <- cpm(dge, log=TRUE)

Does logCPM gives proper input for GSEA?

I asked this in Bioconductor and Gordon Smith believes this is fine

https://support.bioconductor.org/p/133174/ Honestly I am not certain

ADD REPLY
1
Entering edit mode

Indeed, yes, logCPM is okay for GSEA. There is no problem here.

ADD REPLY
0
Entering edit mode

Should it be normalized or does normalised also work?

ADD REPLY
0
Entering edit mode

Good point. Probably just normalized

ADD REPLY

Login before adding your answer.

Traffic: 1191 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