Hello everyone,
I'm creating a heatmap with complexHeatmap and wonder how the distance calculation is done. It isn't a z-score because the values are going from 0-0.4 and I coudln't found information about the used "get_dist(submat, distance)" function.
Thanks for any answer and/or helpful websites which explain how the distance is calculated ;)
CHeers
Annkatrin
So you are saying that the range of your values from data_mat which are visualized on each annotation label, is different between Heatmap() and heatmap.2 ?
If so, i believe that only heatmap.2 assumes that the values of the input matrix are approximately symmetic to zero--so this could explain this "discrepancy" you mention, and also possibly scaling on the rows would be beneficial. Also, this could be not appropriate in many cases, especially if you have any negative values.
Regarding your other question, i believe you should check in more detail the above vignette, and in particularly the circlize R package and the colorRamp2() function.
Hope that helps.
Efstathios