Hello,
Please can anyone help figure out where I am wrong here. I was trying to plot heatmap from RNA-seq data that I analysed using DESeq2. I want to filter out TopVarGenes from the list of DEGs obtained but whenever I type the following code:
library("genefilter")
topVarGenes <- head(order(rowVars(assay(rld)), decreasing = TRUE), 20)
mat <- assay(rld)[ topVarGenes, ]
mat <- mat - rowMeans(mat)
anno <- as.data.frame(coldata(rld)[, c("condition")])
pheatmap(mat, annotation_col = anno)
It returns with the following errors
Error in check.length("fill") : 'gpar' element 'fill' must not be length 0
Where have I missed it then?.
Thank you.
Please add the results of
head(mat)
,str(mat)
,head(anno),
str(anno)`.Thank you Dr. Friederike for offering to help. The following are the results as requested.
Please use
ADD COMMENT/ADD REPLY
when responding to existing posts to keep threads logically organized.SUBMIT ANSWER
is for new answers to original question.Please use the formatting bar (especially the
code
option) to present your post better. I've done it for you this time.Thank you!
Sure, will correct that in the future. Was my mistake though being I am new to using this platform. Thank you for the brief tutoring/touring around with me.