Skip to content

Commit ccca8b7

Browse files
committed
Line up text and yaml for probabilistic segmentations
According to @tsalo the density entity should not be allowed for gifti files, but I don't know how to reflect that in the yaml, so I'm leaving it as slightly too permissive.
1 parent 84da428 commit ccca8b7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/derivatives/imaging.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ Template:
412412
sub-<label>/
413413
[ses-<label>/]
414414
anat/
415-
<source_entities>[_hemi-{L|R}][_space-<space>][_seg-<label>][_res-<label>][_den-<label>][_desc-<label>]_dseg.{label.gii|dlabel.nii}
415+
<source_entities>[_hemi-{L|R}][_space-<space>][_seg-<label>][_res-<label>][_den-<label>][_desc-<label>]_dseg.json
416+
<source_entities>[_hemi-{L|R}][_space-<space>][_seg-<label>][_den-<label>][_desc-<label>]_dseg.label.gii
417+
<source_entities>[_hemi-{L|R}][_space-<space>][_seg-<label>][_res-<label>][_den-<label>][_desc-<label>]_dseg.dlabel.nii
418+
<source_entities>[_hemi-{L|R}][_space-<space>][_seg-<label>][_res-<label>][_den-<label>][_desc-<label>]_dseg.tsv
416419
```
417420

418421
The [`hemi-<label>`](../appendices/entities.md#hemi) entity is REQUIRED for GIFTI files storing information about

src/schema/rules/files/deriv/imaging.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ anat_parametric_discrete_surface:
220220
$ref: rules.files.raw.anat.parametric.entities
221221
hemisphere: optional
222222
space: optional
223+
segmentation: optional
223224
resolution: optional
224225
density: optional
225226
description: optional
@@ -237,6 +238,7 @@ anat_nonparametric_discrete_surface:
237238
$ref: rules.files.raw.anat.nonparametric.entities
238239
hemisphere: optional
239240
space: optional
241+
segmentation: optional
240242
resolution: optional
241243
density: optional
242244
description: optional

0 commit comments

Comments
 (0)