40
40
FMRISummary ,
41
41
FramewiseDisplacement ,
42
42
FSLMotionParams ,
43
+ FSLRMSDeviation ,
43
44
GatherConfounds ,
44
45
RenameACompCor ,
45
46
)
@@ -124,8 +125,6 @@ def init_bold_confs_wf(
124
125
BOLD series mask
125
126
motion_xfm
126
127
ITK-formatted head motion transforms
127
- rmsd_file
128
- Root mean squared deviation as measured by ``fsl_motion_outliers`` [Jenkinson2002]_.
129
128
skip_vols
130
129
number of non steady state volumes
131
130
t1w_mask
@@ -225,7 +224,6 @@ def init_bold_confs_wf(
225
224
'bold_mask' ,
226
225
'hmc_boldref' ,
227
226
'motion_xfm' ,
228
- 'rmsd_file' ,
229
227
'skip_vols' ,
230
228
't1w_mask' ,
231
229
't1w_tpms' ,
@@ -269,7 +267,8 @@ def init_bold_confs_wf(
269
267
motion_params = pe .Node (FSLMotionParams (), name = 'motion_params' )
270
268
271
269
# Frame displacement
272
- fdisp = pe .Node (FramewiseDisplacement (), name = 'fdisp' , mem_gb = mem_gb )
270
+ fdisp = pe .Node (FramewiseDisplacement (), name = 'fdisp' )
271
+ rmsd = pe .Node (FSLRMSDeviation (), name = 'rmsd' )
273
272
274
273
# Generate aCompCor probseg maps
275
274
acc_masks = pe .Node (aCompCorMasks (is_aseg = freesurfer ), name = 'acc_masks' )
@@ -373,12 +372,6 @@ def init_bold_confs_wf(
373
372
mem_gb = 0.01 ,
374
373
run_without_submitting = True ,
375
374
)
376
- add_rmsd_header = pe .Node (
377
- AddTSVHeader (columns = ['rmsd' ]),
378
- name = 'add_rmsd_header' ,
379
- mem_gb = 0.01 ,
380
- run_without_submitting = True ,
381
- )
382
375
concat = pe .Node (GatherConfounds (), name = 'concat' , mem_gb = 0.01 , run_without_submitting = True )
383
376
384
377
# CompCor metadata
@@ -524,6 +517,8 @@ def _select_cols(table):
524
517
('bold_mask' , 'in_mask' )]),
525
518
(inputnode , motion_params , [('motion_xfm' , 'xfm_file' ),
526
519
('hmc_boldref' , 'boldref_file' )]),
520
+ (inputnode , rmsd , [('motion_xfm' , 'xfm_file' ),
521
+ ('hmc_boldref' , 'boldref_file' )]),
527
522
(motion_params , fdisp , [('out_file' , 'in_file' )]),
528
523
# Brain mask
529
524
(inputnode , t1w_mask_tfm , [('t1w_mask' , 'input_image' ),
@@ -567,7 +562,6 @@ def _select_cols(table):
567
562
(merge_rois , signals , [('out' , 'label_files' )]),
568
563
569
564
# Collate computed confounds together
570
- (inputnode , add_rmsd_header , [('rmsd_file' , 'in_file' )]),
571
565
(dvars , add_dvars_header , [('out_nstd' , 'in_file' )]),
572
566
(dvars , add_std_dvars_header , [('out_std' , 'in_file' )]),
573
567
(signals , concat , [('out_file' , 'signals' )]),
@@ -577,7 +571,7 @@ def _select_cols(table):
577
571
(rename_acompcor , concat , [('components_file' , 'acompcor' )]),
578
572
(crowncompcor , concat , [('components_file' , 'crowncompcor' )]),
579
573
(motion_params , concat , [('out_file' , 'motion' )]),
580
- (add_rmsd_header , concat , [('out_file' , 'rmsd' )]),
574
+ (rmsd , concat , [('out_file' , 'rmsd' )]),
581
575
(add_dvars_header , concat , [('out_file' , 'dvars' )]),
582
576
(add_std_dvars_header , concat , [('out_file' , 'std_dvars' )]),
583
577
0 commit comments