Hi Everyone,
I am trying to run DESeq2 package in R. After running the package I have few questions. I will start with this.
baseMean : It is defines as average of the normalized count values, dividing by size factors, taken over all samples in the DESeqDataSet
After this step of the analysis,
ddsMat <- DESeqDataSetFromMatrix(count, colData, design=~condition
I ran
ddsMat <- DESeq(ddsMat)
In the above calculation I see estimating size factors
I want to know how I can get estimating size factors. What I want to do is to confirm the value of baseMean generated in the table for a particular gene.
How can I do this?
Thanks
Regards
Varun

Hi Michael
Thanks for your reply. I found what i was looking for. Also how can i know which functions can be applied on CLASS DESeqDataSet? For example estimateSizefactors(dds), what else??
Thanks
The complete list of methods is:
But this includes *everything* that works on this object, including all the methods from the classes DESeqDataSet inherits, and you probably just want the package specific functions.
I wrote some messy code which gets this:
intersect(sapply(strsplit(as.character(methods(class="DESeqDataSet")), ","), `[`, 1), ls("package:DESeq2"))This is an intersection between the character string of the methods names...
...(after removing the class name parts of the signature) and the functions in the DESeq2 package...
ls("package:DESeq2")Maybe there is a better way.
Martin pointed me to:
showMethods(classes="DESeqDataSet", where=getNamespace("DESeq2"))And you can get a short list with this messy code:
sub("Function: (.*) \\(package .*\\)","\\1",grep("Function",showMethods(classes="DESeqDataSet", where=getNamespace("DESeq2"), printTo=FALSE), value=TRUE))