|
16 | 16 | import os.path as op
|
17 | 17 |
|
18 | 18 | 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 |
20 | 20 | from niworkflows.interfaces.registration import FLIRTRPT
|
21 | 21 | from niworkflows.interfaces.utils import GenerateSamplingReference
|
22 | 22 | from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
|
|
30 | 30 | from ...interfaces.freesurfer import (
|
31 | 31 | PatchedConcatenateLTA as ConcatenateLTA,
|
32 | 32 | PatchedBBRegisterRPT as BBRegisterRPT,
|
33 |
| - PatchedMRICoregRPT as MRICoregRPT) |
| 33 | + PatchedMRICoregRPT as MRICoregRPT, |
| 34 | + PatchedLTAConvert as LTAConvert) |
34 | 35 |
|
35 | 36 |
|
36 | 37 | DEFAULT_MEMORY_MIN_GB = 0.01
|
@@ -358,8 +359,8 @@ def init_bbreg_wf(use_bbr, bold2t1w_dof, omp_nthreads, name='bbreg_wf'):
|
358 | 359 | lta_concat = pe.Node(ConcatenateLTA(out_file='out.lta'), name='lta_concat')
|
359 | 360 | # XXX LTA-FSL-ITK may ultimately be able to be replaced with a straightforward
|
360 | 361 | # 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') |
363 | 364 | fsl2itk_fwd = pe.Node(c3.C3dAffineTool(fsl2ras=True, itk_transform=True),
|
364 | 365 | name='fsl2itk_fwd', mem_gb=DEFAULT_MEMORY_MIN_GB)
|
365 | 366 | 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'):
|
416 | 417 | transforms = pe.Node(niu.Merge(2), run_without_submitting=True, name='transforms')
|
417 | 418 | reports = pe.Node(niu.Merge(2), run_without_submitting=True, name='reports')
|
418 | 419 |
|
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'], |
420 | 421 | name='lta_ras2ras', mem_gb=2)
|
421 | 422 | compare_transforms = pe.Node(niu.Function(function=compare_xforms), name='compare_transforms')
|
422 | 423 |
|
@@ -597,7 +598,7 @@ def init_fsl_bbr_wf(use_bbr, bold2t1w_dof, name='fsl_bbr_wf'):
|
597 | 598 | select_transform = pe.Node(niu.Select(), run_without_submitting=True, name='select_transform')
|
598 | 599 | select_report = pe.Node(niu.Select(), run_without_submitting=True, name='select_report')
|
599 | 600 |
|
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'], |
601 | 602 | name='fsl_to_lta')
|
602 | 603 |
|
603 | 604 | workflow.connect([
|
|
0 commit comments