File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -767,6 +767,11 @@ def parse_args(args=None, namespace=None):
767
767
config .execution .nibabies_dir = output_dir
768
768
elif output_layout == "legacy" :
769
769
config .execution .nibabies_dir = output_dir / "nibabies"
770
+ if config .workflow .surface_recon_method == "mcribs" :
771
+ if output_layout == "bids" :
772
+ config .execution .mcribs_dir = output_dir / "sourcedata" / "mcribs"
773
+ elif output_layout == "legacy" :
774
+ config .execution .mcribs_dir = output_dir / "mcribs"
770
775
771
776
# Wipe out existing work_dir
772
777
if opts .clean_workdir and work_dir .exists ():
Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ class execution(_Config):
394
394
"""Output verbosity."""
395
395
low_mem = None
396
396
"""Utilize uncompressed NIfTIs and other tricks to minimize memory allocation."""
397
+ mcribs_dir = None
398
+ """M-CRIB-S processing and output directory."""
397
399
md_only_boilerplate = False
398
400
"""Do not convert boilerplate from MarkDown to LaTex and HTML."""
399
401
nibabies_dir = None
@@ -439,6 +441,7 @@ class execution(_Config):
439
441
"fs_subjects_dir" ,
440
442
"layout" ,
441
443
"log_dir" ,
444
+ "mcribs_dir" ,
442
445
"nibabies_dir" ,
443
446
"output_dir" ,
444
447
"segmentation_atlases_dir" ,
Original file line number Diff line number Diff line change @@ -417,7 +417,10 @@ def init_infant_anat_wf(
417
417
elif config .workflow .surface_recon_method == 'mcribs' :
418
418
from .surfaces import init_mcribs_surface_recon_wf
419
419
420
- surface_recon_wf = init_mcribs_surface_recon_wf (use_aseg = bool (precomp_aseg ))
420
+ surface_recon_wf = init_mcribs_surface_recon_wf (
421
+ use_aseg = bool (precomp_aseg ),
422
+ mcribs_dir = config .execution .mcribs_dir , # Needed to preserve runs
423
+ )
421
424
422
425
# fmt:off
423
426
wf .connect ([
You can’t perform that action at this time.
0 commit comments