Hi Anna,
as I said, TOMplot need some time to plot the heatmap. Regarding hclustplot1, try plotDendroAndColors instead:
plotDendroAndColors(hierTOMHuman, colorh1, "Modules", dendroLabels = FALSE, hang = 0.03, addGuide = TRUE, guideHang = 0.05, main = "Gene dendrogram and module colors")
Is it reasonable to use as many genes as possible considering the available computational power?
There is no straight answer to this. I personally use edgeR::filterByExpr() to filter out low expressed genes, but in the Human Chimp tutorial they use genes having a scaled network connectivity > 0.1 (pages 16 and 19). Either you filter according to variance, or expression level or connectivity, "uniteresting genes" will be placed in the grey module or will not contribute to the module connectivity. In conclusion, even if you have enough RAM, building a WGNCA network using all the genes in the expression matrix does not make any sense to me.
regarding
hclustplot1i think the problem is with thepar(mfrow=c(2,2),mar=c(2,2,2,2)). Try to increase the margings and see if the color strips appears under each dendrogram. (how to use par mar)Regarding the error message:
this could be a problem caused by the function
TOMplot1. Try to useTOMplotinstead ofTOMplot1. Keep in mind that if you have a lot of genes, it will take some time to plot the heatmap.