Skip to content

Error Exporting Segger Segmentation to Spatialdata #25

@VikramGanesanjs

Description

@VikramGanesanjs

Hello,
I installed spatialdata in the segger environment through pip install segger[spatialdata]
When running the command

segger export -s /common/ganesanv/als-xenium/CTL_0_segger/segger_segmentation.parquet -i /common/zamojskim/Brain/M1C/Diaz_ALS_Xenium/CTLsample_20250602_895 -o /common/ganesanv/als-xenium/data/CTL_0-segger.zarr --format spatialdata

I get the error:

File "/common/ganesanv/opt/segger/src/segger/export/spatialdata_writer.py", line 313, in _create_spatialdata
sdata = spatialdata.SpatialData.from_elements_dict(elements)
AttributeError: type object 'SpatialData' has no attribute 'from_elements_dict'

Is this a version compatibility error? I see in the spatialdata docs that there is a similar function called, SpatialData.init_from_elements().

This is using spatialdata version 0.7.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions