Skip to content

Commit beabe74

Browse files
authored
FIX: Refine BIDS queries
1 parent 5525d01 commit beabe74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fmriprep/utils/bids.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,21 @@ def collect_data(dataset, participant_label, task=None):
151151
152152
153153
"""
154-
layout = BIDSLayout(dataset)
154+
layout = BIDSLayout(dataset, exclude='derivatives')
155155
queries = {
156156
'fmap': {'subject': participant_label, 'modality': 'fmap',
157157
'extensions': ['nii', 'nii.gz']},
158158
'bold': {'subject': participant_label, 'modality': 'func', 'type': 'bold',
159159
'extensions': ['nii', 'nii.gz']},
160160
'sbref': {'subject': participant_label, 'modality': 'func', 'type': 'sbref',
161161
'extensions': ['nii', 'nii.gz']},
162-
'flair': {'subject': participant_label, 'type': 'FLAIR',
162+
'flair': {'subject': participant_label, 'modality': 'anat', 'type': 'FLAIR',
163163
'extensions': ['nii', 'nii.gz']},
164-
't2w': {'subject': participant_label, 'type': 'T2w',
164+
't2w': {'subject': participant_label, 'modality': 'anat', 'type': 'T2w',
165165
'extensions': ['nii', 'nii.gz']},
166-
't1w': {'subject': participant_label, 'type': 'T1w',
166+
't1w': {'subject': participant_label, 'modality': 'anat', 'type': 'T1w',
167167
'extensions': ['nii', 'nii.gz']},
168-
'roi': {'subject': participant_label, 'type': 'roi',
168+
'roi': {'subject': participant_label, 'modality': 'anat', 'type': 'roi',
169169
'extensions': ['nii', 'nii.gz']},
170170
}
171171

0 commit comments

Comments
 (0)