Entering edit mode
5.7 years ago
vkgaur25
▴
30
Hi all,
I am using DESeq2 for DE analysis and I want to normalize my read counts on the basis of two calibrator set (their counts) that were used. I am using estimateSizeFactors to give the read counts of calibrators as "controlGenes" so that I can run DESeq2 but when I execute my codes (which are as follows-)
calidata<-read.csv("/Users/pg2597/Desktop/combined/caliisocounts_xyz.csv", header=TRUE, row.names = 1)
mat_data <- data.matrix(calidata)
calibrators <- grepl('cali', rownames(mat_data))
cal <- calibrators
dds_norm <- estimateSizeFactors(mat_data,controlGenes=cal)
I get following error:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘estimateSizeFactors’ for signature ‘"matrix"’
Can someone help me with this?
Thanks in advance!