Skip to content

Commit bc17abc

Browse files
Merge pull request #210 from quentinblampey/merscope_feature_key
MERSCOPE: adding feature_key attribute for points
2 parents 4671acb + cff4896 commit bc17abc

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning][].
88
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
99
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1010

11+
## [0.1.6] - xxxx-xx-xx
12+
13+
- (MERSCOPE) added `feature_key` attribute for points (i.e., the `'gene'` column) #210
14+
1115
## [0.1.5] - 2024-09-25
1216

1317
### Added

Diff for: src/spatialdata_io/_constants/_constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ class MerscopeKeys(ModeEnum):
322322
GLOBAL_Z = "global_z"
323323
Z_INDEX = "ZIndex"
324324
REGION_KEY = "cells_region"
325+
GENE_KEY = "gene"
325326

326327

327328
@unique

Diff for: src/spatialdata_io/readers/merscope.py

+1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def _get_points(transcript_path: Path, transformations: dict[str, BaseTransforma
303303
transcript_df,
304304
coordinates={"x": MerscopeKeys.GLOBAL_X, "y": MerscopeKeys.GLOBAL_Y},
305305
transformations=transformations,
306+
feature_key=MerscopeKeys.GENE_KEY,
306307
)
307308
transcripts["gene"] = transcripts["gene"].astype("category")
308309
return transcripts

0 commit comments

Comments
 (0)