同じパターンを期待していましたが、遺伝子の順序が同じではないように見えるため、ここではパターンを比較できません。つまり、遺伝子の順序が同じである2つのヒートマップを作成して、2つのヒートマップで黄色と青色のブロックを比較できるようにする方法です。
このコードを使用しました
require( "RColorBrewer")myCol <- colorRampPalette(c( "dodgerblue"、 "black"、 "yellow"))(100)myBreaks <- seq(-2、2、length。 out = 101)heat <- t(scale(t(sc_DEGG)))hr <- hclust(as.dist(1-cor(t(y)、method = "pearson"))、method = "complete")heatmap .2(heat、Rowv = as.dendrogram(hr)、Colv = as.dendrogram(hc)、col = myCol、breaks = myBreaks、main = "Title"、key = T、keysize = 1.0、scale = "none" 、density.info = "none"、reorderfun = function(d、w)reorder(d、w、agglo.FUN = mean)、trace = "none"、cexRow = 0.2、cexCol = 0.8、distfun = function(x) dist(x、method = "euclidean")、hclustfun = function(x)hclust(x、method = "ward.D2"))