Skip to content

Add Xenium Explorer GeoJSON import #385

@wlason

Description

@wlason

Problem
Xenium Explorer can export selections as CSV of coordinates or GeoJSON. If the selection area is large, it will refuse to export CSV. CSV is also less compatible with packages like GeoPandas.

Proposed solution
I'd like a spatialdata_io loader similar to spatialdata_io.xenium_explorer_selection. Ideally, I would like it to be able to parse the polygon(s) and store them in the shapes and the cells within the selection in the table. If there are multiple named polygons in the GeoJSON, I would like the names/colours to be preserved. This is biologically very useful, for example in a scenario where multiple tissue sections have been profiles as part of one Xenium 'area'/one output file.

Alternatives
spatialdata_io.xenium_explorer_selection and using CSV of the polygon is the alternative.

I've written a helper script to do this for the dataset I'm working on, perhaps it could be made into a PR with a new function with a little help @LucaMarconato 😊

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