4040 FMRISummary ,
4141 FramewiseDisplacement ,
4242 FSLMotionParams ,
43+ FSLRMSDeviation ,
4344 GatherConfounds ,
4445 RenameACompCor ,
4546)
@@ -124,8 +125,6 @@ def init_bold_confs_wf(
124125 BOLD series mask
125126 motion_xfm
126127 ITK-formatted head motion transforms
127- rmsd_file
128- Root mean squared deviation as measured by ``fsl_motion_outliers`` [Jenkinson2002]_.
129128 skip_vols
130129 number of non steady state volumes
131130 t1w_mask
@@ -225,7 +224,6 @@ def init_bold_confs_wf(
225224 'bold_mask' ,
226225 'hmc_boldref' ,
227226 'motion_xfm' ,
228- 'rmsd_file' ,
229227 'skip_vols' ,
230228 't1w_mask' ,
231229 't1w_tpms' ,
@@ -269,7 +267,8 @@ def init_bold_confs_wf(
269267 motion_params = pe .Node (FSLMotionParams (), name = 'motion_params' )
270268
271269 # 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' )
273272
274273 # Generate aCompCor probseg maps
275274 acc_masks = pe .Node (aCompCorMasks (is_aseg = freesurfer ), name = 'acc_masks' )
@@ -373,12 +372,6 @@ def init_bold_confs_wf(
373372 mem_gb = 0.01 ,
374373 run_without_submitting = True ,
375374 )
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- )
382375 concat = pe .Node (GatherConfounds (), name = 'concat' , mem_gb = 0.01 , run_without_submitting = True )
383376
384377 # CompCor metadata
@@ -524,6 +517,8 @@ def _select_cols(table):
524517 ('bold_mask' , 'in_mask' )]),
525518 (inputnode , motion_params , [('motion_xfm' , 'xfm_file' ),
526519 ('hmc_boldref' , 'boldref_file' )]),
520+ (inputnode , rmsd , [('motion_xfm' , 'xfm_file' ),
521+ ('hmc_boldref' , 'boldref_file' )]),
527522 (motion_params , fdisp , [('out_file' , 'in_file' )]),
528523 # Brain mask
529524 (inputnode , t1w_mask_tfm , [('t1w_mask' , 'input_image' ),
@@ -567,7 +562,6 @@ def _select_cols(table):
567562 (merge_rois , signals , [('out' , 'label_files' )]),
568563
569564 # Collate computed confounds together
570- (inputnode , add_rmsd_header , [('rmsd_file' , 'in_file' )]),
571565 (dvars , add_dvars_header , [('out_nstd' , 'in_file' )]),
572566 (dvars , add_std_dvars_header , [('out_std' , 'in_file' )]),
573567 (signals , concat , [('out_file' , 'signals' )]),
@@ -577,7 +571,7 @@ def _select_cols(table):
577571 (rename_acompcor , concat , [('components_file' , 'acompcor' )]),
578572 (crowncompcor , concat , [('components_file' , 'crowncompcor' )]),
579573 (motion_params , concat , [('out_file' , 'motion' )]),
580- (add_rmsd_header , concat , [('out_file' , 'rmsd' )]),
574+ (rmsd , concat , [('out_file' , 'rmsd' )]),
581575 (add_dvars_header , concat , [('out_file' , 'dvars' )]),
582576 (add_std_dvars_header , concat , [('out_file' , 'std_dvars' )]),
583577
0 commit comments