Skip to content

Commit 4cb0a22

Browse files
Merge pull request #40 from scverse/fix/categories
Fix/categories
2 parents d2a0409 + 7241646 commit 4cb0a22

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ __pycache__/
2727
# docs
2828
/docs/generated/
2929
/docs/_build/
30+
31+
# other
32+
_version.py

src/spatialdata_io/readers/xenium.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def _poly(arr: ArrayLike) -> Polygon:
168168

169169
def _get_points(path: Path, specs: dict[str, Any]) -> Table:
170170
table = read_parquet(path / XeniumKeys.TRANSCRIPTS_FILE)
171+
table["feature_name"] = table["feature_name"].apply(lambda x: x.decode("utf-8"), meta=("feature_name", "object"))
171172

172173
transform = Scale([1.0 / specs["pixel_size"], 1.0 / specs["pixel_size"]], axes=("x", "y"))
173174
points = PointsModel.parse(

0 commit comments

Comments
 (0)