Closed Bo-UT closed 2 months ago
Hi @Bo-UT ,
For row_split=int
, rows would be clustered according to the row dendrogram structure, you can not change the order as you want (otherwise, the row dendrogram tree could not be plotted).
To give a custom row_split_order, please use row_split=pd.Series
or row_split=pd.DataFrame
and give row_split_order=list
to specify the order you want.
Another method is to sort the rows and columns before plotting and run ClusterMapPlotter with row_cluster=False, col_cluster=False
.
Here are some relevant documentation:
https://dingwb.github.io/PyComplexHeatmap/build/html/notebooks/cpg_modules.html#Plotting-the-Dot-clustermap
https://dingwb.github.io/PyComplexHeatmap/build/html/notebooks/single_cell_methylation.html#Visualizing-Single-Cell-DNA-Methylation-Data-(Loyfer2023)
Hi @DingWB,
Great. Thank you a lot!!
hi,
I split the rows whiling clustering, but it seems the order is completed messed up. Is there any setting to fix the split order? Thank you!