I have analysed some microarrays using limma and would like to plot a heatmap of the most differentially expressed genes, say the top 50.
I understand coolmap is the best tool for this - however when I run my code I get the following error - how should I fix this?
RG <- read.maimages(files,
source="agilent",
path= "R:\\Transposons\\Shared\\OneDrive_3_27-11-2019",
green.only = TRUE)
RG <- backgroundCorrect(RG, method="normexp")
MA <- normalizeBetweenArrays(RG, method = "quantile")
design <- cbind(WT=c(1,1,1,1,1,1,0,0,0,0,0,0),MU=c(0,0,0,0,0,0,1,1,1,1,1,1))
fit <- lmFit(MA, design)
cont.matrix <- makeContrasts(MUvsWT=MU-WT, levels=design)
fit2 <- contrasts.fit(fit, cont.matrix)
fit3 <- eBayes(fit2)
topTable(fit3, adjust="BH")
coolmap(MA)
> > coolmap(MA)
Error: cannot allocate vector of size 14.8 Gb
Please do not use
pre
andcode
tags - use the101010
option on the toolbar instead. Manually adding these HTML tags interferes with the site's functionality.