|
49 | 49 | ConcatAffines, RefineBrainMask,
|
50 | 50 | )
|
51 | 51 | from ..utils.misc import fix_multi_T1w_source_name, add_suffix
|
| 52 | +from ..interfaces.freesurfer import ( |
| 53 | + PatchedLTAConvert as LTAConvert, |
| 54 | + PatchedRobustRegister as RobustRegister) |
52 | 55 |
|
53 | 56 | TEMPLATE_MAP = {
|
54 | 57 | 'MNI152NLin2009cAsym': 'mni_icbm152_nlin_asym_09c',
|
@@ -533,7 +536,7 @@ def _get_first(in_list):
|
533 | 536 | # 2. Reorient template to RAS, if needed (mri_robust_template may set to LIA)
|
534 | 537 | t1_reorient = pe.Node(image.Reorient(), name='t1_reorient')
|
535 | 538 |
|
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'], |
537 | 540 | name='lta_to_fsl')
|
538 | 541 |
|
539 | 542 | concat_affines = pe.MapNode(
|
@@ -813,9 +816,9 @@ def init_surface_recon_wf(omp_nthreads, hires, name='surface_recon_wf'):
|
813 | 816 |
|
814 | 817 | skull_strip_extern = pe.Node(FSInjectBrainExtracted(), name='skull_strip_extern')
|
815 | 818 |
|
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), |
817 | 820 | 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), |
819 | 822 | name='t1_2_fsnative_xfm')
|
820 | 823 |
|
821 | 824 | 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,
|
1279 | 1282 | DerivativesDataSink(base_directory=output_dir, suffix=suffix_fmt(template, 'warp')),
|
1280 | 1283 | name='ds_t1_mni_warp', run_without_submitting=True)
|
1281 | 1284 |
|
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') |
1283 | 1286 |
|
1284 | 1287 | ds_t1_fsnative = pe.Node(
|
1285 | 1288 | DerivativesDataSink(base_directory=output_dir, suffix=suffix_fmt('fsnative', 'affine')),
|
|
0 commit comments