Search
Question: Discrepancy in extracting contrasts
0
gravatar for pkachroo
14 months ago by
pkachroo10
pkachroo10 wrote:

Hi,

 

I am trying to account for batch effect in the DESeq2 design as follows:

ddsFull<-DESeqDataSetFromMatrix(countData=countsTable, colData=colData, design=~batch+group)

My covariate of interest is "group" and has three levels 1A, 1B, 2A. I have 2 batches - A and B that need to be accounted for.

However, when I run dds<-DESeq(ddsFull) and check resultsNames(dds) it gives me: "Intercept"  "batch_B_vs_A"  "group1B_vs_1A"  "group2A_vs_1A"

A few days back when I ran the code it allowed me to correct for batch and let me extract results for the three contrasts comparing the three group (1B_vs1A, 2A_vs_1A, 2A_vs_1B). I don't understand what has changed between last time and now. 

Appreciate any help.

Priyanka 

 

 

ADD COMMENTlink modified 14 months ago by Michael Love20k • written 14 months ago by pkachroo10
0
gravatar for Michael Love
14 months ago by
Michael Love20k
United States
Michael Love20k wrote:

Most likely someone upgraded the package versions. Either way, just use the ‘contrast’ argument to extract the specific contrasts you need.

 

ADD COMMENTlink written 14 months ago by Michael Love20k

Thanks for your quick response. You are right, despite resultsNames(dds) not showing all three contrasts, I am able to extract the results. 

 

 

ADD REPLYlink written 14 months ago by pkachroo10
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 2.2.0
Traffic: 416 users visited in the last hour