Skip to content

Commit

Permalink
modify average program according to average type
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Jun 20, 2024
1 parent 3aeac2f commit 3dbcf62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/BlackCap_build_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ species_dir="${atlas_dir}/${species}"
templates_dir="${species_dir}/templates"
working_dir="${templates_dir}/${template_name}"

# If average type is trimmed_mean or efficient_trimean, we need python
average_prog="ANTs"
if [ "${average_type}" == "trimmed_mean" ] || [ "${average_type}" == "efficient_trimean" ]; then
average_prog="python"
fi


# Verify that the working directory exists before changing directory
if [ ! -d "${working_dir}" ]; then
echo "The working directory does not exist: ${working_dir}"
Expand All @@ -90,6 +97,7 @@ bash modelbuild.sh --output-dir "${working_dir}" \
--stages rigid,similarity,affine,nlin \
--masks "${working_dir}/mask_paths.txt" \
--average-type "${average_type}" \
--average-prog "${average_prog}" \
--reuse-affines \
--dry-run \
"${working_dir}/brain_paths.txt"
Expand Down

0 comments on commit 3dbcf62

Please sign in to comment.