Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tombresser committed Feb 27, 2024
1 parent c63a09a commit 0965ff5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/structural_preprocessing/preprocess_topup_eddy_synb0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ parse_input()
shift
;;
--dwiFile=*)
dwiFiles=${1#*=}
dwiFile=${1#*=}
shift
;;
--dwiFiles=*)
Expand Down Expand Up @@ -165,7 +165,7 @@ brainMaskFile=${dwiProcessedFile/.nii.gz/_mask.nii.gz} # DO NOT CHANGE: HARDCODE
topup -v --imain="$synb0File" --config=b02b0.cnf \
--datain="$acqpFile" --out="${dwiProcessedFile/.nii.gz/}" \
--iout="$dwiB0UnwarpedScansFile" --subsamp=1
rm "${dwiB0ScansFile/.nii.gz/}".{nii.gz,topup_log}
#rm "${dwiB0ScansFile/.nii.gz/}".{nii.gz,topup_log}


# -------------------------------------
Expand All @@ -176,6 +176,10 @@ fslmaths "$dwiB0UnwarpedScansFile" -Tmean "$dwiReferenceFile"
bet "$dwiReferenceFile" "$dwiProcessedFile" -m -n # creates $brainMaskFile
rm "$dwiReferenceFile" "$dwiB0UnwarpedScansFile"

# error check
echo $dwiFile
echo $dwiProcessedFile

# Run eddy current correction on only the dwi data
$eddyVersion -v --imain="$dwiFile" \
--mask="$brainMaskFile" \
Expand Down

0 comments on commit 0965ff5

Please sign in to comment.