Skip to content

Commit

Permalink
recon-all. #NF. Added -defect-cortex to only create visualization of …
Browse files Browse the repository at this point in the history
…defects in coretx (exclude medial wall)
  • Loading branch information
Douglas Greve committed Feb 9, 2022
1 parent d657615 commit ff96795
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions distribution/etc/recon-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,10 @@ CBVfindFirstPeakD1:
action: enable
descr: Refinement of target surf location in MRIScomputeBorderValues with first derivative (d1)

DefectsCortex:
value: False
flags: -defects-cortex
action: enable
descr: Limits defects to cortex when running defects2seg, ie, remove from medial wall (visualization only)


8 changes: 4 additions & 4 deletions scripts/recon-all
Original file line number Diff line number Diff line change
Expand Up @@ -3331,6 +3331,7 @@ if($DoFix && ( ! $longitudinal )) then
# Convert the defects into a segmentation
set cmd = (defect2seg --s $subjid) # This needs to be updated for remeshing
if($#hemilist == 1) set cmd = ($cmd --$hemilist-only)
if($DefectsCortex) set cmd = ($cmd --cortex)
if($RunIt) $fs_time $cmd |& tee -a $LF
if($status) goto error_exit;

Expand Down Expand Up @@ -4839,7 +4840,7 @@ if($DoSegStats) then
set xopts = `fsr-getxopts mri_segstats $XOptsFile $GlobXOptsFile`;
set cmd = (mri_segstats)
if ($NoRandomness) set cmd = ($cmd --seed $RngSeed)
set cmd = ($cmd --seg mri/aseg.mgz --sum stats/aseg.stats)
set cmd = ($cmd --seg mri/aseg.mgz --sum stats/aseg.stats) # This should probably be aseg.presurf
set cmd = ($cmd --pv mri/norm.mgz --empty)
set cmd = ($cmd --brainmask mri/brainmask.mgz --brain-vol-from-seg)
set cmd = ($cmd --excludeid 0 --excl-ctxgmwm)
Expand Down Expand Up @@ -6801,13 +6802,12 @@ while( $#argv != 0 )
breaksw

case "-autorecon2":
set DoGCAReg = 1;
set DoRemoveNeck = 0;
set DoSkullLTA = 0;
set DoSegStats = 0;
set DoCANormalize = 1;
set DoCAReg = 1;
set DoGCAReg = 1;
set DoCALabel = 1;
set DoSegStats = 0;
set DoNormalization2 = 1;
set DoMaskBFS = 1;
set DoSegmentation = 1;
Expand Down

0 comments on commit ff96795

Please sign in to comment.