Hi,
I have a massive dataset that I want to use to make a heatmap using the Complexheatmap package. However, I'm getting the following error
Error: node stack overflow
Error during wrapup: node stack overflow
I am not at liberty to share my original dataset and hence here is a sample data.
new_df=data.frame("Spock2"=rep(0,10),"Col4a3"=c(rep(0,3),rep(2,2),rep(0,5)),"Syt1"=c(rep(0,8),rep(4,2)),"Pacrg"=c(rep(0,4),4,rep(0,2),rep(3,3)))
new_df=new_df[rep(seq_len(nrow(new_df)), each=300),]
Heatmap(as.matrix(new_df), row_labels = rep("",3000))
How do I fix this issue ? Any ideas ?
Thanks, Apoorva
It is because you have too many rows which are identical. The internal function
ComplexHeatmap:::grid.dendrogram()
that draws the dendrogram can handle a matrix with a few identical rows, but it gives errors with too many of that. I will look at this and try to fix it soon.I find a similar case when making heatmaps with too many identical rows with gplots package. https://stackoverflow.com/questions/16559250/error-in-heatmap-2-gplots