Skip to content

Commit fd4d520

Browse files
authored
Merge pull request #2100 from tsalo/dir-entity
[ENH] Allow direction entity in MESE files
2 parents db1c087 + 3675f99 commit fd4d520

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ anat_defacemask_common:
2626
space: optional
2727
description: optional
2828

29-
anat_multiecho_common:
29+
anat_megre_common:
3030
selectors:
3131
- dataset.dataset_description.DatasetType == 'derivative'
32-
$ref: rules.files.raw.anat.multiecho
32+
$ref: rules.files.raw.anat.megre
3333
entities:
34-
$ref: rules.files.raw.anat.multiecho.entities
34+
$ref: rules.files.raw.anat.megre.entities
35+
space: optional
36+
description: optional
37+
38+
anat_mese_common:
39+
selectors:
40+
- dataset.dataset_description.DatasetType == 'derivative'
41+
$ref: rules.files.raw.anat.mese
42+
entities:
43+
$ref: rules.files.raw.anat.mese.entities
3544
space: optional
3645
description: optional
3746

src/schema/rules/files/raw/anat.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ defacemask:
8585
modality: optional
8686
chunk: optional
8787

88-
multiecho:
88+
megre:
8989
suffixes:
90-
- MESE
9190
- MEGRE
9291
extensions:
9392
- .nii.gz
@@ -107,6 +106,28 @@ multiecho:
107106
part: optional
108107
chunk: optional
109108

109+
mese:
110+
suffixes:
111+
- MESE
112+
extensions:
113+
- .nii.gz
114+
- .nii
115+
- .json
116+
datatypes:
117+
- anat
118+
entities:
119+
subject: required
120+
session: optional
121+
task: optional
122+
acquisition: optional
123+
ceagent: optional
124+
reconstruction: optional
125+
direction: optional
126+
run: optional
127+
echo: required
128+
part: optional
129+
chunk: optional
130+
110131
multiflip:
111132
suffixes:
112133
- VFA

0 commit comments

Comments
 (0)