#! /bin/tcsh -f

# This the main NetMHCcons 1.1 script. It only acts as the frontend to the
# software proper, a compiled binary.
# 
# VERSION:	2014 Sept 03	launch
# 

###############################################################################
#               GENERAL SETTINGS: CUSTOMIZE TO YOUR SITE
###############################################################################

# set python executable path variables
setenv PYTHON_EXE	/home/dorjee/.virtualenvs/test/bin/python

# full path to the NetMHCcons 1.1 directory (mandatory)
setenv	NCDIR	`dirname $0`
setenv	NCHOME   `cd $NCDIR && pwd`

# full path to the NetMHCpan method (mandatory)
setenv	NETMHCPAN_DIR	`$PYTHON_EXE -c 'import os; import netmhcpan_2_8_executable; print(os.path.dirname(netmhcpan_2_8_executable.__file__))'`
setenv	NETMHCpan_env	$NETMHCPAN_DIR/netMHCpan

# full path to the NetMHC method (mandatory)
setenv	NETMHC_DIR	`$PYTHON_EXE -c 'import os; import netmhc_3_4_executable; print(os.path.dirname(netmhc_3_4_executable.__file__));'`
setenv	NETMHC_env	$NETMHC_DIR/netMHC

# full path to the PickPocket method (mandatory)
setenv	PICKPOCKET_DIR	`$PYTHON_EXE -c 'import os; import pickpocket_1_1_executable; print(os.path.dirname(pickpocket_1_1_executable.__file__));'`
setenv	PICKPOCKET_env	$PICKPOCKET_DIR/PickPocket

# determine where to store temporary files (must be writable to all users)

if ( ${?TMPDIR} == 0 ) then
	setenv  TMPDIR  /tmp
endif

# determine platform (do not change this unless you don't have 'uname'!)
setenv	UNIX	`uname -s`
setenv	AR	`uname -m`

###############################################################################
#               NOTHING SHOULD NEED CHANGING BELOW THIS LINE!
###############################################################################

# other settings
set PLATFORM = `echo $UNIX $AR | awk '{print $1"_"$2}'`
setenv PLATFORM $PLATFORM
setenv NETMHCcons $NCHOME

# main ========================================================================
if ( -x $NETMHCcons/NetMHCcons-1.1.pl ) then
   $NETMHCcons/NetMHCcons-1.1.pl $*
else
   echo NetMHCcons-1.1.pl not found
endif

# end of script ===============================================================
