Entering edit mode
I have a performed a typical differential expression analysis using limma voom and I want to extract the log cpm values to draw ROC curves. But I want to extract the log cpm values produced specifically by limma because they are normalised and free of batch effect that was added to the design matrix. Is there a function to do that?
Thanks in advance
I have performed RUVg correction and extracted W, factors of unwanted variation. According to limma guide,
Does this mean if I extract the logcpm counts using
the extracted counts will be free of batch effect and unwanted variation?
No, it does not mean that.
voom()
uses the design matrix with the W covariates, to compute precision weights but not to adjust the log-cpm values. Adjustment for batch factors, such as the W matrix from RUV, is done during the differential expression analysis. At no stage are the original counts or log-cpm values adjusted.I gave you the correct answer three weeks ago. If you want log-cpm values that are batch adjusted, you need to use
cpm
andremoveBatchEffect
.