The fslswapdim script contains this bit of code:
> # Check if the labels are used *and* it is doing a left-right inversion
> if [ $uselabels = yes ] ; then
> tmpf=`$FSLDIR/bin/tmpnam`_sd
> $comm > $tmpf 2>&1
> wl=`grep WARNING $tmpf | wc -l`;
> if [ $wl -gt 0 ] ; then
> echo "Cannot perform requested swap (NEUROLOGICAL/RADIOLOGICAL
> storage inverted)"
> echo "Try the following command instead:"
> arg234=`echo "$2 $3 $4" | sed 's/RL/LRXX/g' | sed 's/LR/RL/g' |
> sed 's/RLXX/LR/g' | sed 's/-x/XX-x/g' | sed 's/ x / -x /g' | sed
> 's/XX-x/x/g'`;
> echo "fslswapdim $1 $arg234 $5"
> exit 1
> fi
> fi
Does that mean that the "LR AP IS" etc syntax cannot be used for
left-right swapping? I thought the beauty of using the labels was that
fslswapdim determined whether a swap is necessary in the first place.
Then the only way to do the automatic swapping I guess is to build a
script around it, which uses the old fslswapdim syntax?
bw
AM
|