Skip to content

Commit 140ceb2

Browse files
committed
Remove density from mask nifti file template
As pointed out by @tsalo, this entity is not applicable to nifti files. And as pointed out by @mattcieslak, dwi masks don't need bvecs and bvals.
1 parent 857bef9 commit 140ceb2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/derivatives/imaging.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ Template:
150150
sub-<label>/
151151
[ses-<label>/]
152152
anat|func|dwi/
153-
<source_entities>[_space-<space>][_res-<label>][_den-<label>][_label-<label>][_desc-<label>]_mask.nii.gz
153+
<source_entities>[_space-<space>][_res-<label>][_label-<label>][_desc-<label>]_mask.json
154+
<source_entities>[_space-<space>][_res-<label>][_label-<label>][_desc-<label>]_mask.nii[.gz]
154155
```
155156

156157
A binary (1 - inside, 0 - outside) mask in the space defined by the [`space` entity](../appendices/entities.md#space).

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ anat_parametric_mask:
5252
$ref: rules.files.raw.anat.parametric.entities
5353
space: optional
5454
resolution: optional
55-
density: optional
5655
label: optional
5756
description: optional
5857

@@ -64,19 +63,21 @@ anat_nonparametric_mask:
6463
$ref: rules.files.raw.anat.nonparametric.entities
6564
space: optional
6665
resolution: optional
67-
density: optional
6866
label: optional
6967
description: optional
7068

7169
dwi_mask:
7270
$ref: rules.files.raw.dwi.dwi
7371
suffixes:
7472
- mask
73+
extensions:
74+
- .nii.gz
75+
- .nii
76+
- .json
7577
entities:
7678
$ref: rules.files.raw.dwi.dwi.entities
7779
space: optional
7880
resolution: optional
79-
density: optional
8081
label: optional
8182
description: optional
8283

@@ -88,7 +89,6 @@ func_mask:
8889
$ref: rules.files.raw.func.func.entities
8990
space: optional
9091
resolution: optional
91-
density: optional
9292
label: optional
9393
description: optional
9494

0 commit comments

Comments
 (0)