File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -574,6 +574,12 @@ def _slice_time_ref(value, parser):
574574        dest = "run_reconall" ,
575575        help = "Disable FreeSurfer surface preprocessing." ,
576576    )
577+     g_fs .add_argument (
578+         "--fs-reuse-base" ,
579+         action = "store_true" ,
580+         dest = "fs_reuse_base" ,
581+         help = "Reuse freesurfer base template (from longitudinal preprocessing)" ,
582+     )
577583
578584    g_carbon  =  parser .add_argument_group ("Options for carbon usage tracking" )
579585    g_carbon .add_argument (
Original file line number Diff line number Diff line change @@ -533,6 +533,8 @@ class workflow(_Config):
533533    """Run *fieldmap-less* susceptibility-derived distortions estimation.""" 
534534    hires  =  None 
535535    """Run FreeSurfer ``recon-all`` with the ``-hires`` flag.""" 
536+     fs_reuse_base  =  None 
537+     """Adjust pipeline to reuse base template of existing longitudinal freesurfer""" 
536538    ignore  =  None 
537539    """Ignore particular steps for *fMRIPrep*.""" 
538540    longitudinal  =  False 
Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ def init_single_subject_wf(subject_id: str):
310310        existing_derivatives = anat_derivatives ,
311311        freesurfer = config .workflow .run_reconall ,
312312        hires = config .workflow .hires ,
313+         fs_reuse_base = config .workflow .fs_reuse_base ,
313314        longitudinal = config .workflow .longitudinal ,
314315        omp_nthreads = config .nipype .omp_nthreads ,
315316        output_dir = fmriprep_dir ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments