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

Open
SarahOuologuem opened this issue Mar 2, 2024 · 0 comments
Open

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

SarahOuologuem opened this issue Mar 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SarahOuologuem
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant