Skip to content

Commit 13be6c2

Browse files
committed
Update reportlets to indicate FLIRT-BBR if FreeSurfer missing
1 parent b6b9c1e commit 13be6c2

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

fmriprep/viz/config.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@
5252
"name": "epi_mean_t1_registration/flt_bbr",
5353
"file_pattern": "func/.*_bold_flt_bbr",
5454
"title": "EPI",
55-
"description": "No SBRef was found so the mean epi was used to generate transformations from EPI space to T1 Space"
55+
"description": "No SBRef was found so the mean EPI was used to generate transformations from EPI space to T1 Space - FAST segmentation used for BBR"
56+
},
57+
{
58+
"name": "epi_mean_t1_registration/bbr",
59+
"file_pattern": "func/.*_bold_bbr",
60+
"title": "EPI",
61+
"description": "No SBRef was found so the mean EPI was used to generate transformations from EPI space to T1 Space"
5662
},
5763
{
5864
"name": "epi/acompcor",
@@ -76,6 +82,12 @@
7682
"name": "sbref_t1_registration/flt_bbr",
7783
"file_pattern": "func/.*sbref.*flt_bbr",
7884
"title": "SBRef to T1 registration",
85+
"description": "FreeSurfer surfaces not found - FAST segmentation used for BBR"
86+
},
87+
{
88+
"name": "sbref_t1_registration/bbr",
89+
"file_pattern": "func/.*sbref.*bbr",
90+
"title": "SBRef to T1 registration",
7991
"description": " "
8092
},
8193
{

fmriprep/workflows/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def basic_fmap_sbref_wf(subject_data, settings, name='fMRI_prep'):
108108
sbref_pre = sbref_preprocess(settings=settings)
109109

110110
# Register SBRef to T1
111-
sbref_t1 = ref_epi_t1_registration(reportlet_suffix='sbref_t1_flt_bbr',
111+
sbref_t1 = ref_epi_t1_registration(reportlet_suffix='sbref_t1_bbr',
112112
inv_ds_suffix='target-sbref_affine',
113113
settings=settings)
114114

@@ -217,7 +217,7 @@ def basic_wf(subject_data, settings, name='fMRI_prep'):
217217
hmcwf.get_node('inputnode').iterables = ('epi', subject_data['func'])
218218

219219
# mean EPI registration to T1w
220-
epi_2_t1 = ref_epi_t1_registration(reportlet_suffix='flt_bbr',
220+
epi_2_t1 = ref_epi_t1_registration(reportlet_suffix='bbr',
221221
inv_ds_suffix='target-meanBOLD_affine',
222222
settings=settings)
223223

fmriprep/workflows/epi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def apply_fs_transform(fs_2_t1_transform, bbreg_transform):
154154
)
155155
flt_bbr.inputs.schedule = op.join(os.getenv('FSLDIR'),
156156
'etc/flirtsch/bbr.sch')
157+
reportlet_suffix = reportlet_suffix.replace('bbr', 'flt_bbr')
157158

158159
# make equivalent warp fields
159160
invt_bbr = pe.Node(fsl.ConvertXFM(invert_xfm=True), name='Flirt_BBR_Inv')

0 commit comments

Comments
 (0)