Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show those row name we are interested in #18

Closed
QUEST2179 opened this issue Mar 11, 2023 · 6 comments
Closed

show those row name we are interested in #18

QUEST2179 opened this issue Mar 11, 2023 · 6 comments

Comments

@QUEST2179
Copy link

Dear Developer,

For show_rownames= True, could you please help how to only show those row name we are interested in? Thanks!

@DingWB
Copy link
Owner

DingWB commented Mar 11, 2023

You should use anno_label, instead of show_rownames. Please refer to this link, which will tell you how to show the selected feature names.
Briefly, you need to create a anno_label in row annotations. In the parameter df of anno_label , index should be same as data in ClusterMapPlotter , while values should be either the names you want to show or NaN (the rows you do not want to show).

@QUEST2179
Copy link
Author

great, thanks a lot for your quick response.

one more question, in HeatmapAnnotation if anno_label is put as first one, it goes to top or left, but sometimes in HeatmapAnnotation I only have anno_label no others like anno_simple, how can I make the label appears on right or bottom?

@DingWB
Copy link
Owner

DingWB commented Mar 11, 2023

This is a good question. Please refer to this link.
You can add a parameter orientation to change the direction. Please let me know whether it works for you.

@QUEST2179
Copy link
Author

sorry orientation doesn't appear to work

@DingWB
Copy link
Owner

DingWB commented Mar 12, 2023

Could you please give me an example dataset so that I can debug it?

@DingWB
Copy link
Owner

DingWB commented Mar 12, 2023

Thanks for your feedback. It's really helpful for me to debug it.
Please upgrade the package to the latest version and refer to this link.

@DingWB DingWB closed this as completed Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants