Skip to content

Commit

Permalink
Addressed remaining of @harms commments
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel Cottaar authored and Michiel Cottaar committed Jun 23, 2020
1 parent 1caa98c commit c1f4ed8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 2 additions & 3 deletions DiffusionPreprocessing/DiffPreprocPipeline_PreEddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,8 @@ main() {
done

if [ ${Paired_flag} -eq 0 ]; then
log_Msg "Wrong Input! No pairs of phase encoding directions have been found!"
log_Msg "At least one pair is needed!"
exit 1
log_Err "Wrong Input! No pairs of phase encoding directions have been found!"
log_Err_Abort "At least one pair is needed!"
fi

log_Msg "Running Intensity Normalisation"
Expand Down
2 changes: 1 addition & 1 deletion DiffusionPreprocessing/scripts/eddy_postproc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if [ ${CombineDataFlag} -eq 2 ]; then
else
echo "JAC resampling has been used. Eddy Output is now combined."
PosVols=$(wc ${eddydir}/Pos.bval | awk {'print $2'})
NegVols=$(wc ${eddydir}/Neg.bval | awk {'print $2'}) #Split Pos and Neg Volumes
NegVols=$(wc ${eddydir}/Neg.bval | awk {'print $2'}) # Split Pos and Neg Volumes
${FSLDIR}/bin/fslroi ${eddydir}/eddy_unwarped_images ${eddydir}/eddy_unwarped_Pos ${SelectBestB0} ${PosVols} # ignore extra first volume if ${SelectBestB0} is 1
${FSLDIR}/bin/fslroi ${eddydir}/eddy_unwarped_images ${eddydir}/eddy_unwarped_Neg $((PosVols + ${SelectBestB0})) ${NegVols}
# Note: 'eddy_combine' is apparently hard-coded to use "data" as the output NIFTI file name
Expand Down
11 changes: 6 additions & 5 deletions global/scripts/select_dwi_vols
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ if [ "$4" == "" ];then
echo ""
echo " Optional arguments:"
echo ""
echo " -b <value> additional bvalues to be extracted (can be used multiple times)"
echo " -m output mean instead of concat"
echo " -v output variance instead of concat"
echo " -obv <bvecs> produce <output>.bval and <output>.bvec"
echo " -db <delta_bvals> only include volumes with offset in b-value less than this value (default: 100 s/mm2)"
echo " -b <value> additional bvalues to be extracted (can be used multiple times)"
echo " -m output mean instead of concat"
echo " -v output variance instead of concat"
echo " -obv <bvecs> produce <output>.bval and <output>.bvec"
echo " -db <delta_bvals> only include volumes with offset in b-value less than"
echo " this value in either direction (default: 100 s/mm2)"
echo ""
exit 1
fi
Expand Down

0 comments on commit c1f4ed8

Please sign in to comment.