edgeR DEG glmQLFTest
1
1
Entering edit mode
@zhangjianhai-12955
Last seen 4.9 years ago

Hello,

I have questions about the pvalues in the result from glmQLFTest.

For example, I have 4 treatments A, B, C, D, each has 3 replicates, and I want to compare any treatment pairs, i.e.: A-B, A-C, A-D, B-C, B-D, C-D. I use a matrix, generated by "makeContrasts" to define all the contrasts, then use "glmQLFTest" to test all the comparisons. In the resulting table, does the "PValue" refers to all the comparisons "logFC.A.B", "logFC.A.C", ..., "logFC.C.D" together as a whole? Or a specific comparison?

Regards,

glmQLFTest pvalue • 2.8k views
ADD COMMENT
1
Entering edit mode
@gordon-smyth
Last seen 1 hour ago
WEHI, Melbourne, Australia

PValue refers to all the contrasts as a whole. If you want to get separate p-values for each contrast separately, then run glmQLFTest separately for each column of the contrast matrix.

When you ran

ql <- glmQLFTest(fit, contrast=cont.matrix)
topTags(ql)

the first line of output will say LR test on 3 degrees of freedom, which is intended to alert you that the test is for all differences between the four treatments. You will also see multiple logFC columsn in the topTags table, one for each column of the contrast matrix, which again alerts you that the test is for multiple contrasts.

If on the other hand you test a single contrast, then the first line of output will tell you which contrast is being tested and there will be single logFC column in the topTags table.

ADD COMMENT
0
Entering edit mode

If I only interested in 2 comparisons like A-C, A-D, one option is to use glmQLFTest to test all the 6 pairs, then extract A-C, A-D from the resulting table. Another option is to use glmQLFTest only test A-C, A-D. Which option is better?

Regards,

ADD REPLY
1
Entering edit mode

There is only one option. You need to test the comparisons you are actually interested in.

ADD REPLY
0
Entering edit mode

Now I understand. In the resulting table, can I filter out the genes by FDR and logFC at the same time? Or only by one of the two?

ADD REPLY
1
Entering edit mode

Filtering by logFC is strongly discouraged, because it tends to select low count genes with high variability.

ADD REPLY
0
Entering edit mode

I see. If I only test A-C, A-D using glmQLFTest, should I fit only A, C, D in glmQLFit, or fit all A-D then specify the coef as A-C, A-D in glmQLFTest?

ADD REPLY
0
Entering edit mode

I got the answer from another post. It seems the replies cannot be deleted, so it is still here.

ADD REPLY

Login before adding your answer.

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