Hi, below is the command with which I make heat maps with library(ComplexHeatmap)
. I do splitting by both columns and the rows, and it works. However, despite having 'cluster_row_slices = FALSE'
and ' cluster_column_slices = FALSE'
, I still get both slices of columns and slices of rows reordered. Any idea what is wrong? If needed, I will try to make a reproducible example. Just am hoping that maybe there is some obvious mistake?
Heatmap(z_dheat,
cluster_columns=FALSE,
show_row_dend = FALSE,
border=TRUE,
name = "z-score",
show_row_names = TRUE,
show_column_names = FALSE,
row_labels = dheat[rownames(dheat),2],
split=dsplit$pathway,
column_split=samples$Group,
cluster_row_slices = FALSE,
cluster_column_slices = FALSE,
top_annotation = colAnn,
column_title = "Exp1", col=col_fun)
Thank you! Does not seem to solve the problem, as it also rearranges the slices of columns when splitting by rows is not present. If no splitting, columns are arranged as in the data matrix
z_dheat
:If I add splitting by columns
column_split=samples$Group
, the order of slices changes; despitecluster_column_slices = FALSE
. Anything I can do to help it?Have you tried running it with the default settings? There shouldn't be any splitting there.
I do need splitting. I just do not want to rearrange the slices, I want them in original order (but sliced). It should be achieved by the command
cluster_column_slices = FALSE
. However, it still does rearrange the slices