CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

no scaling between heatmaps

Open TolgaDuz opened this issue 1 year ago • 1 comments

Hi @sqjin,

When I run the following code, I see that the communication probs between the conditions are not scaled. So I think this doesnt make it legit to compare them right? Also the coloring and order of groups are not maintained between conditions.

par(mfrow = c(1,2), xpd=TRUE) ht <- list() for (i in 1:length(object.list)) { ht[[i]] <- netVisual_heatmap(object.list[[i]], signaling = pathways.show, color.heatmap = "Reds", measure="count", title.name = paste(pathways.show, "signaling ",names(object.list)[i])) } #> Do heatmap based on a single object #> #> Do heatmap based on a single object ComplexHeatmap::draw(ht[[1]] + ht[[2]], ht_gap = unit(0.5, "cm")) ComplexHeatmap::draw(ht[[1]], ht_gap = unit(0.5, "cm"))

image

my sessioninfo: sessionInfo.txt

TolgaDuz avatar May 07 '24 16:05 TolgaDuz

Adding to this, it would be very useful if the scale of the heatmap could be set by the user, it would make comparisons between conditions much easier.

Thanks!

alvarezprado avatar Jul 05 '24 13:07 alvarezprado