Skip to content

Commit

Permalink
reflow EAB.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor committed Apr 26, 2019
1 parent bad5cef commit d005744
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/extract-all-bricks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ inputfiles=${@}
mkdir -p ${outputdir}

# Loop over each of the input files
for ifile in ${inputfiles}
do
for ifile in ${inputfiles} ; do

# Skip this file if it isn't a brik file
if [[ ! ${ifile} =~ .*BRIK ]]; then
>&2 echo "${ifile} isn't a BRIK file!"
Expand All @@ -46,10 +46,10 @@ do

# Extract the brick with the label for that brik
# Is there a better way to do this?
for i in $(seq 0 ${maxbrikindex})
do
for i in $(seq 0 ${maxbrikindex}) ; do
3dAFNItoNIFTI \
-prefix ${outputdir}/${roi}_${labels[$i]}.nii.gz \
${ifile}[${i}]
done

done

0 comments on commit d005744

Please sign in to comment.