Skip to content

Commit 5e55cee

Browse files
committed
add continous regex for anatomical datatype to file_level_rules.json
1 parent 35306a2 commit 5e55cee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bids-validator/bids_validator/rules/file_level_rules.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@
141141
"@@@_anat_ext_@@@": ["nii\\.gz", "nii", "json"]
142142
}
143143
},
144+
"anat_cont": {
145+
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?anat[\\/\\\\]\\1(_\\2)?(?:_task-[a-zA-Z0-9]+)?(?:_acq-[a-zA-Z0-9]+)?(?:_ce-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(?:_echo-[0-9]+)?(?:_part-(imag|mag|phase|real))?(?:_recording-[a-zA-Z0-9]+)?(?:_chunk-[0-9]+)?(?:@@@_cont_ext_@@@)$",
146+
"tokens": {
147+
"@@@_cont_ext_@@@": [
148+
"_physio\\.tsv\\.gz",
149+
"_stim\\.tsv\\.gz",
150+
"_physio\\.json",
151+
"_stim\\.json"
152+
]
153+
}
154+
},
144155

145156
"behavioral": {
146157
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?beh[\\/\\\\]\\1(_\\2)?_task-[a-zA-Z0-9]+(?:_acq-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?((?:@@@_behavioral_ext_@@@)|(?:_recording-[a-zA-Z0-9]+)?(?:@@@_cont_ext_@@@))$",

0 commit comments

Comments
 (0)