Problem in Heat map generation of DE genes in Agilent Microarray data analysis
0
1
Entering edit mode
8.2 years ago
Vinay Singh ▴ 50

Hello to all,

I have started agilent microarray data analysis (one color), I have used R bioconductor for analysis steps i used in are as follows now i am not able to get heatmap of differentially expressed genes . Please help me.

library(limma)

T <-readTargets("Targets.txt")

x <-read.maimages(targets, source="agilent",green.only=TRUE)
y <-backgroundCorrect(x, "normexp", offset=50)
y <-normalizeBetweenArrays(y, method="quantile")

y.ave <- avereps(y, ID=y$genes$ProbeName)

f <- factor(targets$Condition, levels = unique(targets$Condition))

design <- model.matrix(~0 + f)
colnames(design) <- levels(f)

fit <- lmFit(y.ave, design)

contrast.matrix <- makeContrasts("control-drought", "control-heat", "drought-control","control-combined","heat-drought", levels=design)

fit2 <- contrasts.fit(fit, contrast.matrix)
fit2 <- eBayes(fit2)

C.top<-as.numeric(rownames(topTable(fit2, coef=1,n=50)))

heatmap(y.ave$M[C.top,])
Error in heatmap(y.ave$M[C.top, ]) : 'x' must be a numeric matrix
R limma heatmap microarray analysis • 2.8k views
ADD COMMENT
0
Entering edit mode

Hints: what is C.top (it is not defined in the code example),

Your data to give to heatmap must be a numeric matrix (error message is obviously complaining 'it is not'). Output head(y.ave$M[C.top, ]), and you will see what the problem is.

ADD REPLY
0
Entering edit mode
Sorry I have used this step here before heatmap that is
C.top<-as.numeric(rownames(topTable(fit2, coef=1,n=50)))
ADD REPLY
0
Entering edit mode

And what about: head(y.ave$M[C.top, ]) ??

ADD REPLY
0
Entering edit mode

Thanks Michael for paying attention to my problem actually I am a beginner in R I have just referred to the question. Please help me in generating heatmap of DE genes of microarray data.

ADD REPLY

Login before adding your answer.

Traffic: 1679 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6