Skip to content

Issue with repeated variables in rank_genes_groups_stacked_violin #252

Closed

Description

@a-munoz-rojas

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!

stacked_violin_global

dotplot_global

Activity

  1. fidelram commented on Sep 1, 2018

    @fidelram
    Collaborator
  2. a-munoz-rojas commented on Sep 1, 2018

    @a-munoz-rojas
    ContributorAuthor

    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.

  3. fidelram commented on Sep 3, 2018

    @fidelram
    Collaborator

    I will take a look

  4. a-munoz-rojas commented on Sep 4, 2018

    @a-munoz-rojas
    ContributorAuthor
  5. kmertide commented on Sep 16, 2018

    @kmertide

    I am also running into the same error. Thank you!

  6. fidelram commented on Oct 1, 2018

    @fidelram
    Collaborator

    This will be fixed as part of PR #244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions