Skip to content

Commit f4ca9e4

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

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

fmriprep/workflows/bold/registration.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import os.path as op
1717

1818
from nipype.pipeline import engine as pe
19-
from nipype.interfaces import utility as niu, fsl, c3, freesurfer as fs
19+
from nipype.interfaces import utility as niu, fsl, c3
2020
from niworkflows.interfaces.registration import FLIRTRPT
2121
from niworkflows.interfaces.utils import GenerateSamplingReference
2222
from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
@@ -30,7 +30,8 @@
3030
from ...interfaces.freesurfer import (
3131
PatchedConcatenateLTA as ConcatenateLTA,
3232
PatchedBBRegisterRPT as BBRegisterRPT,
33-
PatchedMRICoregRPT as MRICoregRPT)
33+
PatchedMRICoregRPT as MRICoregRPT,
34+
PatchedLTAConvert as LTAConvert)
3435

3536

3637
DEFAULT_MEMORY_MIN_GB = 0.01
@@ -358,8 +359,8 @@ def init_bbreg_wf(use_bbr, bold2t1w_dof, omp_nthreads, name='bbreg_wf'):
358359
lta_concat = pe.Node(ConcatenateLTA(out_file='out.lta'), name='lta_concat')
359360
# XXX LTA-FSL-ITK may ultimately be able to be replaced with a straightforward
360361
# LTA-ITK transform, but right now the translation parameters are off.
361-
lta2fsl_fwd = pe.Node(fs.utils.LTAConvert(out_fsl=True), name='lta2fsl_fwd')
362-
lta2fsl_inv = pe.Node(fs.utils.LTAConvert(out_fsl=True, invert=True), name='lta2fsl_inv')
362+
lta2fsl_fwd = pe.Node(LTAConvert(out_fsl=True), name='lta2fsl_fwd')
363+
lta2fsl_inv = pe.Node(LTAConvert(out_fsl=True, invert=True), name='lta2fsl_inv')
363364
fsl2itk_fwd = pe.Node(c3.C3dAffineTool(fsl2ras=True, itk_transform=True),
364365
name='fsl2itk_fwd', mem_gb=DEFAULT_MEMORY_MIN_GB)
365366
fsl2itk_inv = pe.Node(c3.C3dAffineTool(fsl2ras=True, itk_transform=True),
@@ -416,7 +417,7 @@ def init_bbreg_wf(use_bbr, bold2t1w_dof, omp_nthreads, name='bbreg_wf'):
416417
transforms = pe.Node(niu.Merge(2), run_without_submitting=True, name='transforms')
417418
reports = pe.Node(niu.Merge(2), run_without_submitting=True, name='reports')
418419

419-
lta_ras2ras = pe.MapNode(fs.utils.LTAConvert(out_lta=True), iterfield=['in_lta'],
420+
lta_ras2ras = pe.MapNode(LTAConvert(out_lta=True), iterfield=['in_lta'],
420421
name='lta_ras2ras', mem_gb=2)
421422
compare_transforms = pe.Node(niu.Function(function=compare_xforms), name='compare_transforms')
422423

@@ -597,7 +598,7 @@ def init_fsl_bbr_wf(use_bbr, bold2t1w_dof, name='fsl_bbr_wf'):
597598
select_transform = pe.Node(niu.Select(), run_without_submitting=True, name='select_transform')
598599
select_report = pe.Node(niu.Select(), run_without_submitting=True, name='select_report')
599600

600-
fsl_to_lta = pe.MapNode(fs.utils.LTAConvert(out_lta=True), iterfield=['in_fsl'],
601+
fsl_to_lta = pe.MapNode(LTAConvert(out_lta=True), iterfield=['in_fsl'],
601602
name='fsl_to_lta')
602603

603604
workflow.connect([

0 commit comments

Comments
 (0)