On DESeq, Extracting specific comparisons from multifactor designs
2
0
Entering edit mode
@ramirobarrantes-7796
Last seen 28 days ago
United States

Hello,

I have a multi-factor design and I have successfully used DESeq2 to extract my comparisons of interest.  I wanted to use DESeq1 in order to compare (long story) but I do not know how to extract specific comparisons.  THere is actually the following comment on the vignette:

"Fixme: Can we add a paragraph on what to do if we only want to make speci c comparisons, e.g. let fac be a factor
with three levels A, B and C, and we want to test pairwise for di erences between A and B (without C), between A
and C (without B) etc"

If I just did for example:

fit <- fitNbinomGLMs( cds , count ~ treatment+gender+treatment:gender )

I see how to get the log2fold changes, how can I get p-values and adjusted p-values for the specific comparisons???

Thanks,

Ramiro

 

How can I make specific

DESeq2 deseq • 975 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 9 hours ago
United States

I'm not sure about this. I added a tag 'deseq' and changed the title, so it's clearly a DESeq question.

If you don't get a better answer, you can subset to A and B samples to make a pairwise comparison, although this is not the same as the contrast in DESeq2, which uses all samples for dispersion estimation.

ADD COMMENT
0
Entering edit mode

I seem to remember that you could do the subsetting after dispersion estimation, but it's been a while since I've used DESeq. Is that not the case?

ADD REPLY
0
Entering edit mode
@ryan-c-thompson-5618
Last seen 8 months ago
Scripps Research, La Jolla, CA

A while ago, I wrote some convenience functions to use edgeR's glmFit function on a DESeq1 CountDataSet. I've posted them here:

Using this allows you to use edgeR's glmLRT function for testing specific contrasts. I verified by both reading the code and empirical testing that this uses the same formulas and produces identical results to DESeq's workflow. (Both are simply fitting a GLMs and performing a likelihood ratio test, which are well-understood methods).

ADD COMMENT

Login before adding your answer.

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