jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.29k stars 225 forks source link

Row splits ordered by name rather than order provided with split #1182

Open mcsimenc opened 4 months ago

mcsimenc commented 4 months ago

For example, if,

splits = c("A", "A", "A", "A", "C", "C", "C", "B", "B", "B", "B")
heatmap.tc <- Heatmap(dataMtx, cluster_columns = F, split = splits, cluster_rows = F, cluster_row_slices = F, show_row_names = F)

then a heatmap created with the split groups ordered from top to bottom: A, B, C.

Is it possible to make them appear in a specific order?

Thanks!