Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wmparc mapped #116

Merged
merged 1 commit into from
Mar 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions recon_surf/recon-surf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -811,16 +811,21 @@ echo " " |& tee -a $LF
RunIt "$cmd" $LF
popd


# 18 sec hyporelabel run whatever else can be done without sphere, cortical ribbon and segmentations
# 18 sec hyporelabel (generate aseg.presurf.hypos.mgz from aseg.presurf and ?h.white)
cmd="recon-all -s $subject -hyporelabel $fsthreads"
RunIt "$cmd" $LF
fi

# 55sec mapping aparc.mapped back to volume (should be a nicer aparc+aseg compared to input, due to surface help)???
cmd="mri_aparc2aseg --s $subject --volmask --aseg aseg.presurf.hypos --annot aparc.mapped --o $mdir/aparc.mapped+aseg.mgz "
RunIt "$cmd" $LF

# 4sec creating an aseg from the aparc.mapped+aseg.mgz (should be better than the aseg.presurf.hypos..)
# generate aparc.mapped+aseg.mgz, needed later to paint-in white matter labels also
# 55sec mapping aparc.mapped back to volume (could be a nicer aparc+aseg compared to input, due to surface help, not verified yet)
cmd="mri_aparc2aseg --s $subject --volmask --aseg aseg.presurf.hypos --annot aparc.mapped --o $mdir/aparc.mapped+aseg.mgz"
RunIt "$cmd" $LF


if [ "$fsaparc" == "0" ] ; then

# 4sec creating an aseg from the aparc.mapped+aseg.mgz (instead of aseg.presurf.hypos..)
# we call it aseg, because that is needed below in recon-all segstats
cmd="apas2aseg --i $mdir/aparc.mapped+aseg.mgz --o $mdir/aseg.mgz "
RunIt "$cmd" $LF
Expand Down