Cross-species analysis using DESeq2 - size factor computation
1
0
Entering edit mode
pl23 • 0
@4b83ad99
Last seen 15 hours ago
Canada

Hello,

I am interested in doing some cross species DEG analysis similar to this post using orthologous genes across two closely related species. For curiosity I wanted to compare the sizefactors with and without the gene length information but when I try to use sizeFactors(dds) for the former case, I get a NULL vector. Is there some documentation on how the size factor is calculated when the gene length is specified?

Thank you very much.

dese DESeq2 • 249 views
ADD COMMENT
0
Entering edit mode
ATpoint ★ 4.0k
@atpoint-13662
Last seen 1 day ago
Germany

The estimateSizeFactors() function does not use the gene length information at all, see for reference the source code:

https://github.com/thelovelab/DESeq2/blob/devel/R/core.R#L535-L578

ADD COMMENT
0
Entering edit mode

Thanks! My confusion is resolved - the sizeFactors() function is only used for constant normalization factors over genes. To compute normalization factors, I ran dds = DESeq(dds) first and then extracted normalizationFactors(dds).

ADD REPLY

Login before adding your answer.

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