File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -664,6 +664,12 @@ def _slice_time_ref(value, parser):
664
664
action = "store_true" ,
665
665
help = "Force traditional FreeSurfer surface reconstruction." ,
666
666
)
667
+ g_baby .add_argument (
668
+ "--surface-recon-method" ,
669
+ choices = ("infantfs" , "freesurfer" , "mcribs" ),
670
+ default = "infantfs" ,
671
+ help = "Method to use for surface reconstruction" ,
672
+ )
667
673
return parser
668
674
669
675
@@ -674,6 +680,14 @@ def parse_args(args=None, namespace=None):
674
680
parser = _build_parser ()
675
681
opts = parser .parse_args (args , namespace )
676
682
683
+ # Deprecations
684
+ if opts .force_reconall :
685
+ config .loggers .cli .warning (
686
+ "--force-reconall is deprecated and will be removed in a future release."
687
+ "To run traditional `recon-all`, use `--surface-recon-method freesurfer` instead."
688
+ )
689
+ opts .surface_recon_method = "freesurfer"
690
+
677
691
if opts .config_file :
678
692
skip = {} if opts .reports_only else {"execution" : ("run_uuid" ,)}
679
693
config .load (opts .config_file , skip = skip )
Original file line number Diff line number Diff line change @@ -543,8 +543,6 @@ class workflow(_Config):
543
543
"""Remove the mean from fieldmaps."""
544
544
force_syn = None
545
545
"""Run *fieldmap-less* susceptibility-derived distortions estimation."""
546
- force_reconall = False
547
- """Force traditional FreeSurfer surface reconstruction instead of infant version."""
548
546
hires = None
549
547
"""Run FreeSurfer ``recon-all`` with the ``-hires`` flag."""
550
548
ignore = None
@@ -578,6 +576,8 @@ class workflow(_Config):
578
576
spaces = None
579
577
"""Keeps the :py:class:`~niworkflows.utils.spaces.SpatialReferences`
580
578
instance keeping standard and nonstandard spaces."""
579
+ surface_recon_method = "infantfs"
580
+ """Method to use for surface reconstruction."""
581
581
topup_max_vols = 5
582
582
"""Maximum number of volumes to use with TOPUP, per-series (EPI or BOLD)."""
583
583
use_aroma = None
You can’t perform that action at this time.
0 commit comments