scanpy icon indicating copy to clipboard operation
scanpy copied to clipboard

Bug in diffusion map plotting in 1.9.1?

Open cbravo93 opened this issue 3 years ago • 3 comments

  • [ x] I have checked that this issue has not already been reported.
  • [ x] I have confirmed this bug exists on the latest version of scanpy.
  • [ ] (optional) I have confirmed this bug exists on the master branch of scanpy.

Hi!

When running sc.pl.diffmap with 1.8.2 in my object I get a nice diffusion map plot: image However, when using the same function with 1.9.1 in exactly the same object (with exactly the same 'X_diffmap') I get an awful plot: image

Any idea what is going on? This only affects plotting (also tried using sc.pl.embedding), the dpt function gives the same results for example.

Thanks!

C

cbravo93 avatar Apr 06 '22 17:04 cbravo93

I am also facing the same issue here, have you got any solutions yet? Thanks.

mmyoung avatar May 12 '22 12:05 mmyoung

I just reverted to scanpy 1.8.2 for now . C

cbravo93 avatar May 12 '22 12:05 cbravo93

@cbravo93 @mmyoung a quick fix is to do adata.obsm["X_diffmap_"] = adata.obsm["X_diffmap"][:, 1:] sc.pl.embedding(adata, "diffmap_")

Koncopd avatar May 12 '22 13:05 Koncopd

Thanks for @Koncopd 's advice

RainboWu avatar Mar 21 '23 03:03 RainboWu