Is logFC in edgeR base e, 2, or 10?
1
0
Entering edit mode
6.1 years ago
O.rka ▴ 710

I am trying to find in the documentation of edgeR where it says the default base of the log function. I've used exactTest and topTags it gives me logFC but is it base e, 2, or 10?

edgeR logfc differential bioconductor • 8.0k views
ADD COMMENT
0
Entering edit mode

DE analysis by edgeR

I read here that is likely base e 2

ADD REPLY
0
Entering edit mode

DE analysis by edgeR

I read here that is likely base e 2

ADD REPLY
0
Entering edit mode

It's definitely 2 in the topTags

ADD REPLY
5
Entering edit mode
6.1 years ago

It's log2 in all common RNAseq differential expression programs, including edgeR. The reason for that is that counts can range from 0 to infinity, so using a log2 transform allows running the MLE optimization in (-infinity, infinity), which is simpler and better for fold-changes <1.

ADD COMMENT
0
Entering edit mode

I'm not sure this is an explanation for why log2 is taken instead of log10 or the natural log. Indeed, I'm fairly sure that the coefficients that are stored in the fits in edgeR use the natural log, consistent with most GLM approaches; it's only when converting to human readable form that the base is shifted from e to 2

ADD REPLY

Login before adding your answer.

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