#!/bin/bash fslmaths "${1}" -tfce 2 0.5 "tfce_${1}" fslmaths "tfce_${1}" -thrp 95 "thresh_tfce_${1}" min=`fslstats "thresh_tfce_${1}" -l 0 -R | awk '{print $1}'` max=`fslstats "thresh_tfce_${1}" -l 0 -R | awk '{print $2}'` overlay 1 0 /HOME/hluetck/fsl4.1_64/data/standard/MNI152_T1_1mm_brain -a "thresh_tfce_${1}" $min $max "rendered_thresh_tfce_${1}" slicer "rendered_thresh_tfce_${1}" -S 2 1600 "rendered_thresh_tfce_${1}.png"