Skip to content

Commit

Permalink
Merge pull request #64 from melonora/fix_xenium
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato authored Jun 28, 2023
2 parents f259441 + f3780ee commit 9ebe2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatialdata_io/readers/xenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _get_tables_and_circles(
) -> AnnData | tuple[AnnData, AnnData]:
adata = _read_10x_h5(path / XeniumKeys.CELL_FEATURE_MATRIX_FILE)
metadata = pd.read_parquet(path / XeniumKeys.CELL_METADATA_FILE)
np.testing.assert_array_equal(metadata.cell_id.str.decode("utf-8").values, adata.obs_names.values)
np.testing.assert_array_equal(metadata.cell_id.astype(str), adata.obs_names.values)
circ = metadata[[XeniumKeys.CELL_X, XeniumKeys.CELL_Y]].to_numpy()
adata.obsm["spatial"] = circ
metadata.drop([XeniumKeys.CELL_X, XeniumKeys.CELL_Y], axis=1, inplace=True)
Expand Down

0 comments on commit 9ebe2ba

Please sign in to comment.