I am performing differential expression analysis by R. After constructing design when I entered
> fit<- lmFit(gset,design)
I got the error "Error in getEAWP(object) : data object isn't of a recognized data class" here is my total sorce code:
> setwd("E:/microarray/")
> library(Biobase)
> library(GEOquery)
> library(ggplot2)
> library(pheatmap)
> gset<-getGEO("GSE116959",GSEMatrix = TRUE,AnnotGPL = TRUE,destdir ="data/")
> gset<-gset[[1]]
> gr<-c(rep("Tumor",3),("Normal"),rep("Tumor",7),("Normal"),rep("Tumor",21),rep("Normal",4)
,rep("Tumor",5),("Normal"),rep("Tumor",17),rep("Normal",2),("Tumor"),("Normal"),rep("Tumor",2),
("Normal"),`("Tumor"))`
> gr<-factor(gr)
> gset$description<-gr
> design<-model.matrix(~description+0,gset)
> colnames(design)<-levels(gr)
> fit<-lmFit(gset,design)
From the lmFit doc:
From the getEAWP doc:
But my data was normalized at GEO.
Possibly but is it an object of a class accepted by limma? From the getGEO doc:
Read the GEOquery vignette section on Converting to BioConductor ExpressionSets and limma MALists
Anyway, I would suggest starting from the raw values if possible.
I ran the commands from the over and my problem was fixed. I did not understand what happened exactly but I appreciate you for trying to help me.
brother i want complete code for practice