You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with repeated variables in rank_genes_groups_stacked_violin #252
Thanks for all the work in developing this package, it's truly fantastic.
I ran into what seems like a bug in the new plotting function sc.pl.rank_genes_groups_stacked_violin. It seems that when the ranked genes between 2 groups are similar (e.g. 'Tnf' is a highly ranked gene between two groups), then 'Tnf' is only plotted once on the first group, and any following groups with the same gene are truncated. You can see this in the toy example image I attached - when comparing groups M1 and M1+M2, 'Tnf' should be plotted for each group, but it is only plotted on group M1, therefore truncating group M2. When I plot the same data using rank_genes_groups_dotplot, this error doesn't happen and 'Tnf' is correctly plotted twice.
I know this is a small bug that most people will probably not run across, but just in case you're comparing expression across similar groups this might be a useful fix. Thanks!
Activity
fidelram commentedon Sep 1, 2018
a-munoz-rojas commentedon Sep 1, 2018
No, the problem also happens in the stacked violins. Matrix plot and heat map are both fine - you're right it's probably something with seaborn then.
fidelram commentedon Sep 3, 2018
I will take a look
a-munoz-rojas commentedon Sep 4, 2018
kmertide commentedon Sep 16, 2018
I am also running into the same error. Thank you!
fix violin plot with non-unique gene names scverse#252
fidelram commentedon Oct 1, 2018
This will be fixed as part of PR #244