#! /bin/tcsh -f

# This the main NetMHCIIpan 3.2 script. It only acts as the frontend to the
# software proper, a compiled binary.
# 
# VERSION:	2017
# 

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

# full path to the NetMHCIIpan 3.2 directory (mandatory)
set rootdir = `dirname $0`
set abs_rootdir = `cd $rootdir && pwd`
setenv  NMHOME  $abs_rootdir
echo "Using $NMHOME as netmhciipan home."

# determine where to store temporary files (must be writable to all users)
if ( ${?TMPDIR} == 0 ) then
	setenv  TMPDIR  /tmp
	echo Warning:TMPDIR not defined, and it will be set to directory /tmp.  >&2
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 $NMHOME/$PLATFORM
setenv NETMHCIIpan $NMHOME

# main ========================================================================
if ( -x $NETMHCIIpan/NetMHCIIpan-3.2.pl ) then
   $NETMHCIIpan/NetMHCIIpan-3.2.pl $*
else
   echo $NETMHCIIpan/NetMHCIIpan-3.2.pl not found
endif

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