#! /bin/tcsh -f

# This version of the netMHCcons script is specific to the standalone
# and is installed by the configure script


# 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
###############################################################################

# 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	"$NCDIR/../../netmhcpan-2.8-executable/netmhcpan_2_8_executable"
setenv	NETMHCpan_env	$NETMHCPAN_DIR/netMHCpan

# full path to the NetMHC method (mandatory)
setenv	NETMHC_DIR	"$NCDIR/../../netmhc-3.4-executable/netmhc_3_4_executable"
setenv	NETMHC_env	$NETMHC_DIR/netMHC

# full path to the PickPocket method (mandatory)
setenv	PICKPOCKET_DIR	"$NCDIR/../../pickpocket-1.1-executable/pickpocket_1_1_executable"
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 ===============================================================
