Skip to content

Commit

Permalink
Merge pull request #1001 from bids-standard/990_physio_for_more_modal…
Browse files Browse the repository at this point in the history
…ities

allow phsysio and stim tsvs and jsons in *eg directories fixes #990
  • Loading branch information
rwblair authored Jun 30, 2020
2 parents 23a04a7 + 3ebf050 commit f4677cd
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions bids-validator/bids_validator/rules/file_level_rules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"anat": {
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?anat[\\/\\\\]\\1(_\\2)?(?:_acq-[a-zA-Z0-9]+)?(?:_ce-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?_(?:@@@_anat_suffixes_@@@)\\.(@@@_anat_ext_@@@)$",
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?anat[\\/\\\\]\\1(_\\2)?(?:_acq-[a-zA-Z0-9]+)?(?:_ce-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(_(?:@@@_anat_suffixes_@@@)\\.(@@@_anat_ext_@@@)|(?:@@@_cont_ext_@@@))$",
"tokens": {
"@@@_anat_suffixes_@@@": [
"T1w",
Expand All @@ -20,7 +20,13 @@
"PDmap",
"photo"
],
"@@@_anat_ext_@@@": ["nii\\.gz", "nii", "json"]
"@@@_anat_ext_@@@": ["nii\\.gz", "nii", "json"],
"@@@_cont_ext_@@@": [
"_physio\\.tsv\\.gz",
"_stim\\.tsv\\.gz",
"_physio\\.json",
"_stim\\.json"
]
}
},

Expand Down Expand Up @@ -78,10 +84,16 @@
},

"dwi": {
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?dwi[\\/\\\\]\\1(_\\2)?(?:_acq-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_dir-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?_(?:@@@_dwi_type_@@@)\\.(@@@_dwi_ext_@@@)$",
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?dwi[\\/\\\\]\\1(_\\2)?(?:_acq-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_dir-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(_(?:@@@_dwi_type_@@@)\\.(@@@_dwi_ext_@@@)|(?:@@@_cont_ext_@@@))$",
"tokens": {
"@@@_dwi_ext_@@@": ["nii\\.gz", "nii", "json", "bvec", "bval"],
"@@@_dwi_type_@@@": ["dwi", "sbref"]
"@@@_dwi_type_@@@": ["dwi", "sbref"],
"@@@_cont_ext_@@@": [
"_physio\\.tsv\\.gz",
"_stim\\.tsv\\.gz",
"_physio\\.json",
"_stim\\.json"
]
}
},

Expand Down Expand Up @@ -169,7 +181,11 @@
"_channels\\.tsv",
"_eeg\\.json",
"_coordsystem\\.json",
"_photo\\.jpg"
"_photo\\.jpg",
"_physio\\.tsv\\.gz",
"_physio\\.json",
"_stim\\.tsv\\.gz",
"_stim\\.json"
]
}
},
Expand All @@ -196,15 +212,26 @@
"_channels\\.tsv",
"_ieeg\\.json",
"_coordsystem\\.json",
"_photo\\.jpg"
"_photo\\.jpg",
"_physio\\.tsv\\.gz",
"_physio\\.json",
"_stim\\.tsv\\.gz",
"_stim\\.json"
]
}
},

"meg": {
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?meg[\\/\\\\]\\1(_\\2)?(?:_task-[a-zA-Z0-9]+)?(?:_acq-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(?:_proc-[a-zA-Z0-9]+)?(?:_split-[0-9]+)?(_digitizer.txt|_meg(@@@_meg_type_@@@[\\/\\\\](.(?!\\.(sqd|con|fif|raw|raw\\.mhd|trg|kdf|chn)$))*|[\\/\\\\](.(?!\\.(sqd|con|fif|raw|raw\\.mhd|trg|kdf|chn)$))*)|(@@@_meg_ext_@@@))$",
"tokens": {
"@@@_meg_type_@@@": ["\\.ds[\\/\\\\].*", "\\.(?:chn|kdf|trg)", "\\.(?:raw|raw\\.mhd)", "\\.fif", "\\.(?:con|sqd)", "\\.(?:kdf|chn|trg)"],
"@@@_meg_type_@@@": [
"\\.ds[\\/\\\\].*",
"\\.(?:chn|kdf|trg)",
"\\.(?:raw|raw\\.mhd)",
"\\.fif",
"\\.(?:con|sqd)",
"\\.(?:kdf|chn|trg)"
],
"@@@_meg_ext_@@@": [
"_events\\.json",
"_events\\.tsv",
Expand All @@ -214,7 +241,11 @@
"_coordsystem\\.json",
"_photo\\.jpg",
"_headshape\\.pos",
"_markers\\.(?:mrk|sqd)"
"_markers\\.(?:mrk|sqd)",
"_physio\\.tsv\\.gz",
"_physio\\.json",
"_stim\\.tsv\\.gz",
"_stim\\.json"
]
}
},
Expand Down

0 comments on commit f4677cd

Please sign in to comment.