Hi,
I am trying to visualize the genes using DESeq2:: plotMA after LFC shrinkage. Since my design is bit complicated, I am using numerical vector for my contrast.
I obtained the result table using:
res = results(dds, alpha=0.05, contrast = c(0,0,0,0,0,-1/7,-1/7,-1/7,1/3,0,-1/7,-1/7,1/3,0,-1/7,1/3,0,-1/7))
This works fine. Now I want to visualize the result for the same contrast using MA plot after lfcShrink.
resLFC = lfcShrink(dds,contrast = c(0,0,0,0,0,-1/7,-1/7,-1/7,1/3,0,-1/7,-1/7,1/3,0,-1/7,1/3,0,-1/7))
After running for ~10mins, I get this error:
Error in checkContrast(contrast, resNames) : numeric contrast vector should have one element for every element of 'resultsNames(object)'
I checked my numerical vector. For every term in the resultsNames(dds), I have the correct weights.
data.frame(element=resultsNames(dds),weight=c(0,0,0,0,0,-1/7,-1/7,-1/7,1/3,0,-1/7,-1/7,1/3,0,-1/7,1/3,0,-1/7)) https://imgur.com/a/29lw0 Using DESeq2_1.18.1
Thanks,
Thank you, Michael. Greatly appreciate the efforts you put to respond as soon as possible :-)