Skip to content

Commit

Permalink
Merge branch 'master' of github.com:CobraLab/antsRegistration-MAGeT
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevenyi committed Aug 15, 2018
2 parents 4dd7d34 + 1928d4c commit d988fa5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions bin/mb_stages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,22 @@ stage_register_template_subject () {
#If subject and template name are the same, skip the registration step since it should be identity
if [[ (! -s output/transforms/template-subject/${subjectname}/${templatename}-${subjectname}1_NL.xfm) && (${subjectname} != "${templatename}") ]]
then
debug ${regcommand} ${template} ${subject} output/transforms/template-subject/${subjectname}
echo ${regcommand} ${template} ${subject} output/transforms/template-subject/${subjectname}
if [[ -n ${__mb_label_masking} ]]; then
debug ${regcommand} ${template} ${subject} output/transforms/template-subject/${subjectname} output/transforms/atlas-template/${templatename}/*_labelmask*
echo ${regcommand} ${template} ${subject} output/transforms/template-subject/${subjectname} output/transforms/atlas-template/${templatename}/*_labelmask*
else
debug ${regcommand} ${template} ${subject} output/transforms/template-subject/${subjectname}
echo ${regcommand} ${template} ${subject} output/transforms/template-subject/${subjectname}
fi
fi
done > output/jobscripts/${__datetime}-mb_register_template_subject-${subjectname}
debug qbatch ${dryrun} --logdir 'output/logs' ${__qbatch_template_subject_opts} output/jobscripts/${__datetime}-mb_register_template_subject-${subjectname}
qbatch ${dryrun} --logdir 'output/logs' ${__qbatch_template_subject_opts} output/jobscripts/${__datetime}-mb_register_template_subject-${subjectname}
if [[ -n ${__mb_label_masking} ]]; then
debug qbatch ${dryrun} --logdir 'output/logs' --depend "${__datetime}-mb_register_atlas_template*" ${__qbatch_template_subject_opts} output/jobscripts/${__datetime}-mb_register_template_subject-${subjectname}
qbatch ${dryrun} --logdir 'output/logs' --depend "${__datetime}-mb_register_atlas_template*" ${__qbatch_template_subject_opts} output/jobscripts/${__datetime}-mb_register_template_subject-${subjectname}
else
debug qbatch ${dryrun} --logdir 'output/logs' ${__qbatch_template_subject_opts} output/jobscripts/${__datetime}-mb_register_template_subject-${subjectname}
qbatch ${dryrun} --logdir 'output/logs' ${__qbatch_template_subject_opts} output/jobscripts/${__datetime}-mb_register_template_subject-${subjectname}
fi
done
}

Expand Down

0 comments on commit d988fa5

Please sign in to comment.