|
17 | 17 | import os.path as op
|
18 | 18 |
|
19 | 19 | from nipype.pipeline import engine as pe
|
20 |
| -from nipype.interfaces import utility as niu, fsl, c3, freesurfer as fs |
21 |
| -from niworkflows.interfaces.registration import FLIRTRPT, BBRegisterRPT, MRICoregRPT |
| 20 | +from nipype.interfaces import utility as niu, fsl, c3 |
| 21 | +from niworkflows.interfaces.registration import FLIRTRPT |
22 | 22 | from niworkflows.interfaces.utils import GenerateSamplingReference
|
23 | 23 | from niworkflows.interfaces.fixes import FixHeaderApplyTransforms as ApplyTransforms
|
24 | 24 |
|
|
28 | 28 | from ...interfaces.nilearn import Merge
|
29 | 29 | from ...interfaces.images import extract_wm
|
30 | 30 | # See https://github.com/poldracklab/fmriprep/issues/768
|
31 |
| -from ...interfaces.freesurfer import PatchedConcatenateLTA as ConcatenateLTA |
| 31 | +from ...interfaces.freesurfer import ( |
| 32 | + PatchedConcatenateLTA as ConcatenateLTA, |
| 33 | + PatchedBBRegisterRPT as BBRegisterRPT, |
| 34 | + PatchedMRICoregRPT as MRICoregRPT, |
| 35 | + PatchedLTAConvert as LTAConvert) |
32 | 36 |
|
33 | 37 |
|
34 | 38 | DEFAULT_MEMORY_MIN_GB = 0.01
|
@@ -420,8 +424,8 @@ def init_bbreg_wf(use_bbr, bold2t1w_dof, omp_nthreads, name='bbreg_wf'):
|
420 | 424 | lta_concat = pe.Node(ConcatenateLTA(out_file='out.lta'), name='lta_concat')
|
421 | 425 | # XXX LTA-FSL-ITK may ultimately be able to be replaced with a straightforward
|
422 | 426 | # LTA-ITK transform, but right now the translation parameters are off.
|
423 |
| - lta2fsl_fwd = pe.Node(fs.utils.LTAConvert(out_fsl=True), name='lta2fsl_fwd') |
424 |
| - lta2fsl_inv = pe.Node(fs.utils.LTAConvert(out_fsl=True, invert=True), name='lta2fsl_inv') |
| 427 | + lta2fsl_fwd = pe.Node(LTAConvert(out_fsl=True), name='lta2fsl_fwd') |
| 428 | + lta2fsl_inv = pe.Node(LTAConvert(out_fsl=True, invert=True), name='lta2fsl_inv') |
425 | 429 | fsl2itk_fwd = pe.Node(c3.C3dAffineTool(fsl2ras=True, itk_transform=True),
|
426 | 430 | name='fsl2itk_fwd', mem_gb=DEFAULT_MEMORY_MIN_GB)
|
427 | 431 | fsl2itk_inv = pe.Node(c3.C3dAffineTool(fsl2ras=True, itk_transform=True),
|
@@ -478,7 +482,7 @@ def init_bbreg_wf(use_bbr, bold2t1w_dof, omp_nthreads, name='bbreg_wf'):
|
478 | 482 | transforms = pe.Node(niu.Merge(2), run_without_submitting=True, name='transforms')
|
479 | 483 | reports = pe.Node(niu.Merge(2), run_without_submitting=True, name='reports')
|
480 | 484 |
|
481 |
| - lta_ras2ras = pe.MapNode(fs.utils.LTAConvert(out_lta=True), iterfield=['in_lta'], |
| 485 | + lta_ras2ras = pe.MapNode(LTAConvert(out_lta=True), iterfield=['in_lta'], |
482 | 486 | name='lta_ras2ras', mem_gb=2)
|
483 | 487 | compare_transforms = pe.Node(niu.Function(function=compare_xforms), name='compare_transforms')
|
484 | 488 |
|
@@ -659,7 +663,7 @@ def init_fsl_bbr_wf(use_bbr, bold2t1w_dof, name='fsl_bbr_wf'):
|
659 | 663 | select_transform = pe.Node(niu.Select(), run_without_submitting=True, name='select_transform')
|
660 | 664 | select_report = pe.Node(niu.Select(), run_without_submitting=True, name='select_report')
|
661 | 665 |
|
662 |
| - fsl_to_lta = pe.MapNode(fs.utils.LTAConvert(out_lta=True), iterfield=['in_fsl'], |
| 666 | + fsl_to_lta = pe.MapNode(LTAConvert(out_lta=True), iterfield=['in_fsl'], |
663 | 667 | name='fsl_to_lta')
|
664 | 668 |
|
665 | 669 | workflow.connect([
|
|
0 commit comments