Reordering annotation on clustermap #29
-
First, thanks for making the complexheatmap package for python users. For example (provided here), if I want to change the order of the column such that I want Dataset 2 and then Dataset 1, how do I do that? Would appreciate your help.
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Please try |
Beta Was this translation helpful? Give feedback.
-
There is an issue with your input data matrix. If two columns or rows are the same or finite values were included, then you would get such kind of error. |
Beta Was this translation helpful? Give feedback.
-
But if there was some problem with the data, then you could not perform clustering using scipy. |
Beta Was this translation helpful? Give feedback.
-
Not sure if I understand what you mean by problem with the data. The code above is from the tutorial for the package here. |
Beta Was this translation helpful? Give feedback.
-
For this dataset (kycg_result.txt), it is too sparse and it could not be clustered. If you got an error, then the data can not be clustered. |
Beta Was this translation helpful? Give feedback.
Please try
col_split=df_col.Dataset, col_split_order=['Dataset2','Dataset1']
. Or you can reorder the columns yourself and then specifycol_cluster=False
.