Skip to content

Commit a60fc5c

Browse files
committed
adding prior segmenation to data processor in script.py and file_spatial_unlabelled.yaml
1 parent 35a0ef6 commit a60fc5c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/api/file_spatial_unlabelled.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ info:
5555
segmentation prior. This is NOT the ground truth used for
5656
evaluation (which is held out in spatial_solution); methods may
5757
freely condition on it.
58+
labels:
59+
- type: object
60+
name: "cell_labels"
61+
description: Ground truth cell segmentation labels
62+
required: true
63+
- type: object
64+
name: "nucleus_labels"
65+
description: Ground truth nucleus segmentation labels
66+
required: false
5867
tables:
5968
- type: anndata
6069
name: "table"

src/data_processors/process_dataset/script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def sc_processing(adata):
115115
output_spatial = sd.SpatialData(
116116
images={"morphology_mip": sp_data.images["morphology_mip"]},
117117
points={"transcripts": clean_transcripts},
118+
labels={k: v for k, v in sp_data.labels.items()},
118119
tables={"table": minimal_table},
119120
)
120121

0 commit comments

Comments
 (0)