Skip to content

Commit

Permalink
Merge pull request #40 from scverse/fix/categories
Browse files Browse the repository at this point in the history
Fix/categories
  • Loading branch information
LucaMarconato authored May 22, 2023
2 parents d2a0409 + 7241646 commit 4cb0a22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ __pycache__/
# docs
/docs/generated/
/docs/_build/

# other
_version.py
1 change: 1 addition & 0 deletions src/spatialdata_io/readers/xenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def _poly(arr: ArrayLike) -> Polygon:

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

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

0 comments on commit 4cb0a22

Please sign in to comment.