-
First, thanks for making and maintaining this package for Python users. In the context of sorting multilevel columns, i.e. passing a dataframe to Thanks again and happy to chat more. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi @lingyixu |
Beta Was this translation helpful? Give feedback.
-
Hi @DingWB , thanks for getting back. Passing a pre-sorted dataframe as you described is a good workaround. To my mind, it's worth documenting this with a line or two. Speaking of the extra parameter, my thought was to bring it into So far this is what I have in mind. I didn't get a chance to verify whether this is valid or not, so I could be biased. Please feel free to let me know what you think. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @lingyixu , Thanks for your suggestion. I will think about it. |
Beta Was this translation helpful? Give feedback.
-
Hi @DingWB , Thanks for pointing that out. I see your notes there, appreciate it. May I suggest adding a few words in the docstring, for instance, "setting it to False will preserve the column order of the input data", given that PyComplexHeatmap/PyComplexHeatmap/clustermap.py Lines 1016 to 1017 in f5dd95c Thanks again for all your comments and feedback. For now, I'm going to mark this discussion as answered. Please feel free to add any further comments in this thread, and I’ll check back to see if any additional input is needed from my side. |
Beta Was this translation helpful? Give feedback.
-
Hi @lingyixu , Thanks for your suggestion, please go ahead and add whatever you want and make a pull request. |
Beta Was this translation helpful? Give feedback.
Hi @lingyixu
Thanks for your feedback.
To generate the heatmap you described, you can sort the dataframe by lower level first and then set
col_split =upper level
andcol_cluster=False
.Do you have any suggestions for the parameter? For example, if
col_split=df_col.loc[:,['A','B']]
and you don't need the gap between groups in B (lower level), what parameter should I add? Please give me your idea.