diff --git a/src/bids-cfood/cfood.yml b/src/bids-cfood/cfood.yml index 348f7633f5f1dfcf3b6c0af7ccb023280c9f4776..41b210db9d665e94f55b06714a935269d29c3a60 100644 --- a/src/bids-cfood/cfood.yml +++ b/src/bids-cfood/cfood.yml @@ -34,10 +34,11 @@ metadata: params: suffix: null parent: null + extension: "[.a-zA-Z0-9]+" definition: ${parent}_datafile: type: SimpleFile - match: ^sub-(?P<sub>[a-zA-Z0-9]+)(_ses-(?P<ses>[a-zA-Z0-9]+))?(_acq-(?P<acq>[a-zA-Z0-9]+))?(_ce-(?P<ce>[a-zA-Z0-9]+))?(_rec-(?P<rec>[a-zA-Z0-9]+))?(_run-(?P<run>[a-zA-Z0-9]+))?(_mod-(?P<mod>[a-zA-Z0-9]+))?(_echo-(?P<echo>[a-zA-Z0-9]+))?(_inv-(?P<inv>[a-zA-Z0-9]+))?(_flip-(?P<flip>[a-zA-Z0-9]+))?(_mt-(?P<mt>[a-zA-Z0-9]+))?(_part-(?P<part>[a-zA-Z0-9]+))?(_(?P<suffix>${suffix}))?\.(?P<extension>[.a-zA-Z0-9]+)$ + match: ^sub-(?P<sub>[a-zA-Z0-9]+)(_ses-(?P<ses>[a-zA-Z0-9]+))?(_acq-(?P<acq>[a-zA-Z0-9]+))?(_ce-(?P<ce>[a-zA-Z0-9]+))?(_rec-(?P<rec>[a-zA-Z0-9]+))?(_run-(?P<run>[a-zA-Z0-9]+))?(_mod-(?P<mod>[a-zA-Z0-9]+))?(_echo-(?P<echo>[a-zA-Z0-9]+))?(_inv-(?P<inv>[a-zA-Z0-9]+))?(_flip-(?P<flip>[a-zA-Z0-9]+))?(_mt-(?P<mt>[a-zA-Z0-9]+))?(_part-(?P<part>[a-zA-Z0-9]+))?(_(?P<suffix>${suffix}))?\.(?P<extension>${extension})$ records: someFile: parents: @@ -476,6 +477,10 @@ project_level: parent: "MagnetizationTransferSaturation" - suffix: T1w parent: "T1WeightedImage" + extension: "(nii(\.gz))?" + - suffix: T1w + parent: "JSONSidecar" + extension: "json" - suffix: T2starw parent: "T2starWeightedImage" - suffix: inplaneT1 diff --git a/src/bids-cfood/model.yml b/src/bids-cfood/model.yml index c4ce95bf3b25f05e704e4ee10c1861d835897f1e..8b9f2f5fbb74a0e2e67718f6f9dcf53a56cd232c 100644 --- a/src/bids-cfood/model.yml +++ b/src/bids-cfood/model.yml @@ -66,6 +66,7 @@ Subject: Session: label: datatype: TEXT +JSONSidecar: Session: description: "A logical grouping of neuroimaging and behavioral data consistent across subjects. Session can (but doesn't have to) be synonymous to a visit in a longitudinal study. In general, subjects will stay in the scanner during one session. However, for example, if a subject has to leave the scanner room and then be re-positioned on the scanner bed, the set of MRI acquisitions will still be considered as a session and match sessions acquired in other subjects. Similarly, in situations where different data types are obtained over several visits (for example fMRI on one day followed by DWI the day after) those can be grouped in one session. Defining multiple sessions is appropriate when several identical or similar data acquisitions are planned and performed on all -or most- subjects, often in the case of some intervention between sessions (for example, training). https://bids-specification.readthedocs.io/en/stable/appendices/entities.html#ses"