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

Open
EliHei2 opened this issue Mar 29, 2024 · 2 comments
Open

error from minimalistic reading of xenium data #132

EliHei2 opened this issue Mar 29, 2024 · 2 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
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