Open simonroome opened 4 years ago
Scaling in heatmap.2 is applied after calculating dendrograms, in heatmaply scaling happens before. I prefer the heatmaply behaviour as otherwise there's a mismatch in the data and clustering. You can get the heatmap.2 behaviour by calculating dendrograms on raw data and passing them in while specifying the desire scale setting
Thank you again for the great package.
I was having trouble getting the heatmaply dendrograms to match the heatmap.2 dendrogram, when I came across the heatmaply vignette directions to make them match. It seemed to work when scaling wasn't applied, but when I tried to apply row or column scaling, they no longer matched. Applying the scaling didn't seem to change the heatmap.2 dendrogram, but it did change the heatmaply dendrogram.
I made a quick shiny app to show the behaviour I'm getting with the scaling.
I would expect that since the settings selected are those that in the vignette made heatmaply and heatmap.2 dendrograms match for non-scaled data, that the dendrograms would also match when you apply column scaling to both. There might be a very simple explanation for this that I'm missing or misunderstanding. I'm not sure if this is expected behaviour and if it might be better to post this on StackOverflow or if it is unexpected and this is the appropriate place to post this - if it's expected I apologize.