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

about Interactive(sdata) #344

Open
szy23333 opened this issue Jan 21, 2025 · 2 comments
Open

about Interactive(sdata) #344

szy23333 opened this issue Jan 21, 2025 · 2 comments

Comments

@szy23333
Copy link

...zarr_path = "./Xenium_V1_humanLung_Cancer_FFPE_outs.zarr"
from spatialdata import SpatialData

from napari_spatialdata import Interactive

if name == "main":
sdata = SpatialData.read(zarr_path) # Change this path!
i = Interactive(sdata)
i

Image
@szy23333
Copy link
Author

Why are there no images in the interactive interface?

@timtreis timtreis transferred this issue from scverse/squidpy Jan 29, 2025
@LucaMarconato
Copy link
Member

Hi @szy23333, please select the coordinate system global, and then double click on the images you would like to visualize. This can be automated programmatically as shown in the code below:

from napari_spatialdata import Interactive

interactive = Interactive(sdata, headless=True)
interactive.add_element(f"rasterized_002um", "global", view_element_system=True)
interactive.run()

which is taken from this notebook . Please find more details there.

Also please check the documentation notebooks for napari-spatialdata here: https://spatialdata.scverse.org/projects/napari/en/latest/notebooks/spatialdata.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants