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

Improvement request for barplot #224

Closed
princessEmilyy opened this issue Sep 23, 2023 · 1 comment
Closed

Improvement request for barplot #224

princessEmilyy opened this issue Sep 23, 2023 · 1 comment

Comments

@princessEmilyy
Copy link

princessEmilyy commented Sep 23, 2023

Hi! I've been using your module and it is super convenient!

I was wondering if there is a way to "fix" the colors of the barplot from the results of the enrichR dataframe.

I have several comparisons and I subset a few gene sets in each, in some not all gene sets are significant and therefore are not plotted.

This causes the colors of the bars to be inconsistent across analyses e.g GO_MF_23 will be darkred in one analysis but lets say darkblue in another

Thanks
download (1)
download

@zqfang
Copy link
Owner

zqfang commented Sep 29, 2023

Hi, I did a patch to this function to support the feature. re-install with the lastest commit, and all you need to do is give a dict input of colors, e.g.

barplot( ....,  color= {'KEGG_2021_Human': 'salmon', 'MSigDB_Hallmark_2020':'darkblue'})

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