From 27cb0f794dc0c127ba5a4a60dd3cd5596dcc01fe Mon Sep 17 00:00:00 2001 From: srikash Date: Mon, 22 Mar 2021 11:15:40 +0100 Subject: [PATCH] alt spelling script --- 3dMPRAGEize | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3dMPRAGEize b/3dMPRAGEize index 15e9a1c..a43d2cc 100755 --- a/3dMPRAGEize +++ b/3dMPRAGEize @@ -111,12 +111,16 @@ if [ "$re_bias" = 0 ]; then -overwrite \ -prefix ${inv2_basename}_bfc.nii \ $inv2_image + + out_name=${uni_basename}_unbiased_clean.nii else echo "" echo "++ Reintroducing bias-field." echo "" 3dcopy $inv2_image ${inv2_basename}_bfc.nii + + out_name=${uni_basename}_rebiased_clean.nii fi @@ -138,7 +142,7 @@ echo "" -a $uni_image \ -b ${inv2_basename}_intnorm.nii \ -expr "a * b" \ --prefix ${uni_basename}_unbiased_clean.nii +-prefix $out_name # Remove intermediate files rm ${inv2_basename}_bfc.nii ${inv2_basename}_intnorm.nii