Skip to content

Commit

Permalink
xenium fix area circles
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Aug 1, 2024
1 parent 8387b91 commit 53ce5fa
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 @@ -533,7 +533,7 @@ def _get_tables_and_circles(
table = TableModel.parse(adata, region=specs["region"], region_key="region", instance_key=str(XeniumKeys.CELL_ID))
if cells_as_circles:
transform = Scale([1.0 / specs["pixel_size"], 1.0 / specs["pixel_size"]], axes=("x", "y"))
radii = np.sqrt(adata.obs[XeniumKeys.CELL_NUCLEUS_AREA].to_numpy() / np.pi)
radii = np.sqrt(adata.obs[XeniumKeys.CELL_AREA].to_numpy() / np.pi)
circles = ShapesModel.parse(
circ,
geometry=0,
Expand Down

0 comments on commit 53ce5fa

Please sign in to comment.