File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,12 @@ def _str_none(val):
758
758
action = 'store_true' ,
759
759
help = 'Replace low intensity voxels in CSF mask with average' ,
760
760
)
761
+ g_baby .add_argument (
762
+ '--multi-step-reg' ,
763
+ action = 'store_true' ,
764
+ help = 'For certain adult templates (MNI152NLin6Asym), perform two step '
765
+ 'registrations (native -> MNIInfant -> template) and concatenate into a single xfm' ,
766
+ )
761
767
return parser
762
768
763
769
Original file line number Diff line number Diff line change @@ -578,6 +578,9 @@ class workflow(_Config):
578
578
"""Run FreeSurfer ``recon-all`` with the ``-logitudinal`` flag."""
579
579
medial_surface_nan = None
580
580
"""Fill medial surface with :abbr:`NaNs (not-a-number)` when sampling."""
581
+ multi_step_reg = False
582
+ """Perform multiple registrations (native -> MNIInfant -> template) and concatenate into a
583
+ single transform"""
581
584
norm_csf = False
582
585
"""Replace low intensity voxels in CSF mask with average."""
583
586
project_goodvoxels = False
Original file line number Diff line number Diff line change @@ -889,9 +889,13 @@ def init_infant_anat_fit_wf(
889
889
concat_xfms = []
890
890
found_xfms = {}
891
891
intermediate = None # The intermediate space when concatenating xfms - includes cohort
892
- intermediate_targets = {
893
- 'MNI152NLin6Asym' ,
894
- } # TODO: 'MNI152NLin2009cAsym'
892
+ intermediate_targets = (
893
+ {
894
+ 'MNI152NLin6Asym' , # TODO: 'MNI152NLin2009cAsym'
895
+ }
896
+ if config .workflow .multi_step_reg
897
+ else set ()
898
+ )
895
899
896
900
for template in spaces .get_spaces (nonstandard = False , dim = (3 ,)):
897
901
# resolution / spec will not differentiate here
You can’t perform that action at this time.
0 commit comments