Entering edit mode
Kripa R
▴
180
@kripa-r-4482
Last seen 10.2 years ago
Hi so I'm trying to do limma fitting on my data but i keep getting the
following error
Error in rowMeans(y$exprs, na.rm=TRUE):'x' must be numeric
But I'm not sure what the problem is does anyone have suggestions?
Here's what i've been doing after normalization:
data<-subset(data_pheno, select=is.na(data_pheno['case',])==FALSE)
#remove columns with NA
group <- factor(data['case',])
design <- model.matrix(~0+group) #dim 240 2
expr<-as.data.frame(data[1:39693,]) #only keep rows that need to fit
aka expression data, dim 39693 240
fit <- lmFit(expr,design)
Error in rowMeans(y$exprs, na.rm=TRUE):'x' must be numeric
Thanks,
.kripa
[[alternative HTML version deleted]]