We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d374ec8 + 3efc7b7 commit b9c3262Copy full SHA for b9c3262
src/spatialdata_io/readers/xenium.py
@@ -468,6 +468,8 @@ def _get_labels_and_indices_mapping(
468
"label_index": real_label_index.astype(np.int64),
469
}
470
)
471
+ # because AnnData converts the indices to str
472
+ indices_mapping.index = indices_mapping.index.astype(str)
473
return labels, indices_mapping
474
475
@@ -497,6 +499,8 @@ def _get_cells_metadata_table_from_zarr(
497
499
498
500
cell_id_str = cell_id_str_from_prefix_suffix_uint32(cell_id_prefix, dataset_suffix)
501
df[XeniumKeys.CELL_ID] = cell_id_str
502
503
+ df.index = df.index.astype(str)
504
return df
505
506
0 commit comments