[go: nahoru, domu]

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

error from minimalistic reading of xenium data #132

Closed
EliHei2 opened this issue Mar 29, 2024 · 3 comments
Closed

error from minimalistic reading of xenium data #132

EliHei2 opened this issue Mar 29, 2024 · 3 comments

Comments

@EliHei2
Copy link
EliHei2 commented Mar 29, 2024

Hola! just updated both spatialdata and spatialdata-io trying to read a generic xenium dataset with the following line, I get the error bellow:

sdata = spatialdata_io.xenium(
        'Xenium_V1_FFPE_Human_Breast_IDC', 
        morphology_mip=False, 
        morphology_focus=False, 
        cell_boundaries=False,
        cells_as_circles=False,
        cell_labels=False,
        nucleus_labels=False
    )
    if cell_labels_indices_mapping is not None:
UnboundLocalError: local variable 'cell_labels_indices_mapping' referenced before assignment
@LucaMarconato
Copy link
Member

Hola! Well spotted 🥸 Fixed with https://github.com/scverse/spatialdata-io/releases/tag/v0.1.2, which also adds the parameter aligned_images: bool, to skip some extra H&E or IF images sometimes present in more recent datasets.

@EliHei2
Copy link
Author
EliHei2 commented Apr 1, 2024

Thanks Luca! Sorry for opening again, there's another error still, which I can guess where's it from (i.e., not reading cell boundaries) but leave it here:

line 344, in _get_polygons
    assert index.equals(idx)
AssertionError

@LucaMarconato LucaMarconato reopened this Apr 1, 2024
@LucaMarconato
Copy link
Member

Got back to this today. I have tried to replicate with the same argument but that line doesn't give me an error. I think the bug is now solved.

If you encounter it please feel free to reopen; in such a case please detail a link to a public dataset that can be used to replicate the bug, and to the code used to call the xenium() function.

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