degs = rownames(subset(DEG, PValue < 0.05 & abs(logFC > 9))) rownames(counts) = DEG[rownames(counts), 'symbol'] counts_degs = counts[degs,] pheatmap(counts_degs, clustering_method = 'ward.D', scale='row')
Could I use TPM matrix instead of raw count matrix to make heat map using the code above? Which I think it makes more sense. Thank you so much! My DEG is as the photo.