from helper_functions import pretty, make_dirs, slice_volume, files_in_dir, files_ind_dir_wo_string, make_volume
from nipype.interfaces import ants
from os import path
from shutil import rmtree
import sys
import getopt
# Help message.
tab = ' '
usage_message = '\nCOMMAND:\n' + tab + sys.argv[0] + \
'\n\nOPTIONS:\n' + \
tab + '-h, help menu\n' + \
tab + '-e, --template, \n' + \
tab + '-s, --slices, \n' + \
tab + '-r, --rawvolume, \n' + \
tab + '-t, --inittrans, \n' + \
tab + '-d, --id, \n' + \
tab + '-o, --output,