@@ -138,7 +138,7 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
138
138
placed within the corresponding confounds file.
139
139
"""
140
140
inputnode = pe .Node (niu .IdentityInterface (
141
- fields = ['bold' , 'bold_mask' , 'movpar_file' , 'n_volumes_to_discard' ,
141
+ fields = ['bold' , 'bold_mask' , 'movpar_file' , 'n_volumes_to_discard' ,
142
142
't1_mask' , 't1_tpms' , 't1_bold_xform' ]),
143
143
name = 'inputnode' )
144
144
outputnode = pe .Node (niu .IdentityInterface (
@@ -515,7 +515,7 @@ def init_ica_aroma_wf(template, metadata, mem_gb, omp_nthreads,
515
515
)
516
516
bold_mni_trans_wf .__desc__ = None
517
517
518
- rm_non_steady_state = pe .Node (niu .Function (function = _remove_volumes ,
518
+ rm_non_steady_state = pe .Node (niu .Function (function = _remove_volumes ,
519
519
output_names = ['bold_cut' ]),
520
520
name = 'rm_nonsteady' )
521
521
@@ -542,7 +542,7 @@ def _getusans_func(image, thresh):
542
542
denoise_type = 'nonaggr' , generate_report = True , TR = metadata ['RepetitionTime' ]),
543
543
name = 'ica_aroma' )
544
544
545
- add_non_steady_state = pe .Node (niu .Function (function = _add_volumes ,
545
+ add_non_steady_state = pe .Node (niu .Function (function = _add_volumes ,
546
546
output_names = ['bold_add' ]),
547
547
name = 'add_nonsteady' )
548
548
@@ -616,6 +616,7 @@ def _getbtthresh(medianval):
616
616
617
617
return workflow
618
618
619
+
619
620
def _remove_volumes (bold_file , n_volumes ):
620
621
import nibabel as nb
621
622
from nipype .utils .filemanip import fname_presuffix
0 commit comments