scverse / scverse/squidpy

Error plotting selected clusters on top on image layer

Open
#716 1 comment 0 reactions 1 assignee View on GitHub

@michalk8 is already working on this.

Since Jun 22, 2023.

plot :hibiscus:
Dominant language
Python
Stars
598
Forks
121
Avg merge
3d 11h
Merged PRs (30d)
3

Description

Hello, I have a question about this tutorial: https://squidpy.readthedocs.io/en/latest/notebooks/examples/plotting/plot_segment.html. In this tutorial, you have plotted fibroblast and epithelial clusters at once on two FOVs:

Screenshot 2023-06-21 at 10 22 14 PM

But when these are plotted without the image here, their "locations" seem to have been inverted i.e. "Fibroblasts" (which are green below) are designated in locations where "Epithelial" (in orange) appear above, but the legend indicating color and cell type remains the same. Why is this happening?

Screenshot 2023-06-21 at 10 34 54 PM Screenshot 2023-06-21 at 10 34 59 PM

I am facing the same issue in my dataset - when I plot all leiden clusters vs. plot only 2 selected clusters using the 'group' argument, their locations don't agree. I came to the tutorial looking for an answer, and was surprised to see the same behavior, any help will be appreciated. Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.