Question: edgeR DEG glmQLFTest
0
gravatar for zhang.jianhai
11 weeks ago by
zhang.jianhai0 wrote:

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,

pvalue glmqlftest • 119 views
ADD COMMENTlink modified 11 weeks ago by Gordon Smyth37k • written 11 weeks ago by zhang.jianhai0
Answer: edgeR DEG glmQLFTest
1
gravatar for Gordon Smyth
11 weeks ago by
Gordon Smyth37k
Walter and Eliza Hall Institute of Medical Research, Melbourne, Australia
Gordon Smyth37k wrote:

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 COMMENTlink modified 11 weeks ago • written 11 weeks ago by Gordon Smyth37k

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 REPLYlink written 11 weeks ago by zhang.jianhai0
1

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

ADD REPLYlink modified 11 weeks ago • written 11 weeks ago by Gordon Smyth37k

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 REPLYlink written 11 weeks ago by zhang.jianhai0
1

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

ADD REPLYlink modified 9 weeks ago • written 11 weeks ago by Gordon Smyth37k

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 REPLYlink modified 11 weeks ago • written 11 weeks ago by zhang.jianhai0

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

ADD REPLYlink written 11 weeks ago by zhang.jianhai0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 357 users visited in the last hour