Skip to content
Snippets Groups Projects
Commit 0513a250 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

ENH: distinguish between side car file and t1weighted image

parent 9f8f825f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment