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

mu.pl.scatter() fails when providing color #132

Closed
SarahOuologuem opened this issue Mar 2, 2024 · 2 comments
Closed

mu.pl.scatter() fails when providing color #132

SarahOuologuem opened this issue Mar 2, 2024 · 2 comments
Labels
awaiting Waiting for upstream fixes

Comments

@SarahOuologuem
Copy link
Contributor

Hi!

I'm getting the following error when running mu.pl.scatter() with a provided color:

muon_error

When setting color=None, the plotting function does not fail:

I also checked scanpy's sc.pl.scatter() and it errors as described in scverse/scanpy#1986 and scverse/scanpy#311 when passing the color as a list.

Therefore, when deleting line 75 (color = [color]) in plot.py, i.e. passing the color as a string instead of a list to the function sc.pl.scatter(), mu.pl.scatter() works completely fine and

mu.pl.scatter(data,"rna:CD4","rna:CD8A", color="rna:total_counts")

then produces:

System

  • Linux, Ubuntu
  • Python version: 3.10
  • Versions of libraries involved:
    • scanpy: 1.9.6
    • muon: 0.1.5
@SarahOuologuem SarahOuologuem added the bug Something isn't working label Mar 2, 2024
@gtca
Copy link
Collaborator

gtca commented Oct 17, 2024

As discussed in #134, waiting for scverse/scanpy#1986 to be resolved.

@gtca gtca added awaiting Waiting for upstream fixes and removed bug Something isn't working labels Oct 17, 2024
@gtca
Copy link
Collaborator

gtca commented Oct 21, 2024

Fixed upstream thanks to @flying-sheep!

@gtca gtca closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting Waiting for upstream fixes
Projects
None yet
Development

No branches or pull requests

2 participants