Skip to content

Commit 9063c15

Browse files
committed
change fs.utils.LTAConvert to PatchedLTAConvert
1 parent b8ee55a commit 9063c15

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

fmriprep/workflows/anatomical.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
ConcatAffines, RefineBrainMask,
5050
)
5151
from ..utils.misc import fix_multi_T1w_source_name, add_suffix
52+
from ..interfaces.freesurfer import (
53+
PatchedLTAConvert as LTAConvert,
54+
PatchedRobustRegister as RobustRegister)
5255

5356
TEMPLATE_MAP = {
5457
'MNI152NLin2009cAsym': 'mni_icbm152_nlin_asym_09c',
@@ -533,7 +536,7 @@ def _get_first(in_list):
533536
# 2. Reorient template to RAS, if needed (mri_robust_template may set to LIA)
534537
t1_reorient = pe.Node(image.Reorient(), name='t1_reorient')
535538

536-
lta_to_fsl = pe.MapNode(fs.utils.LTAConvert(out_fsl=True), iterfield=['in_lta'],
539+
lta_to_fsl = pe.MapNode(LTAConvert(out_fsl=True), iterfield=['in_lta'],
537540
name='lta_to_fsl')
538541

539542
concat_affines = pe.MapNode(
@@ -813,9 +816,9 @@ def init_surface_recon_wf(omp_nthreads, hires, name='surface_recon_wf'):
813816

814817
skull_strip_extern = pe.Node(FSInjectBrainExtracted(), name='skull_strip_extern')
815818

816-
fsnative_2_t1_xfm = pe.Node(fs.RobustRegister(auto_sens=True, est_int_scale=True),
819+
fsnative_2_t1_xfm = pe.Node(RobustRegister(auto_sens=True, est_int_scale=True),
817820
name='fsnative_2_t1_xfm')
818-
t1_2_fsnative_xfm = pe.Node(fs.utils.LTAConvert(out_lta=True, invert=True),
821+
t1_2_fsnative_xfm = pe.Node(LTAConvert(out_lta=True, invert=True),
819822
name='t1_2_fsnative_xfm')
820823

821824
autorecon_resume_wf = init_autorecon_resume_wf(omp_nthreads=omp_nthreads)
@@ -1279,7 +1282,7 @@ def init_anat_derivatives_wf(output_dir, output_spaces, template, freesurfer,
12791282
DerivativesDataSink(base_directory=output_dir, suffix=suffix_fmt(template, 'warp')),
12801283
name='ds_t1_mni_warp', run_without_submitting=True)
12811284

1282-
lta_2_itk = pe.Node(fs.utils.LTAConvert(out_itk=True), name='lta_2_itk')
1285+
lta_2_itk = pe.Node(LTAConvert(out_itk=True), name='lta_2_itk')
12831286

12841287
ds_t1_fsnative = pe.Node(
12851288
DerivativesDataSink(base_directory=output_dir, suffix=suffix_fmt('fsnative', 'affine')),

0 commit comments

Comments
 (0)