Hi,
I am trying to run limma's lmFit on a geo dataset pertaining to heart failure. Whenever I run the lm.fit command I get the error: Lm.fit() giving Error in lm.fit(design, t(M)) : incompatible dimension. I am trying to run the differential expression on the non-failing and failing hearts. The Heart_Failure columns in the ESET contains the values yes (failing heart), no (non failing heart), NA. In my code I try to get rid of all the rows in the ESET that contain NA values .
Here is my code:
#Load dataset using inSilicoDb
eset21610 <- (getDataset("GSE21610", "GPL570", format = "CURESET", norm = "SCAN", features = "GENE"))
#Try to get rid of NA values
eset21610$Heart_Failure[eset21610$Heart_Failure == "NA"] <- NA
na.omit(pData(eset21610))
#Create Design matrix
design1 <- model.matrix(~ Heart_Failure, pData(eset21610))
#Run lmFit
afterLimma <- lmFit(eset21610, design = design1)
e4 <- eBayes(afterLimma)
Please advise.
What does
design1
look like (i.e., how many rows are there)? What are the dimensions ofeset21610
?design1: 38 rows & eset21610: 19528 rows, 68 colnames. There were 30 NA's, 30 yes heart failure, and 8 no heart failure in the Heart_Failure column.