spatialdata_io.xenium_explorer_selection#
- spatialdata_io.xenium_explorer_selection(path, pixel_size=0.2125, return_list=False)#
Read the coordinates of a selection
.csvfile exported from the Xenium Explorer.This file can be generated by the “Freehand Selection” or the “Rectangular Selection”. The output
Polygoncan be used for a polygon query on the pixel coordinate system (by default, this is the"global"coordinate system for Xenium data). If spatialdata_xenium_explorer was used, thepixel_sizeargument must be set to the one used during conversion withspatialdata_xenium_explorer.In case multiple polygons were selected on the Explorer and exported into a single file, it will return a list of polygons.
- Parameters:
- Return type:
- Returns: