#!/bin/csh
# " *--------------------------------------------------------------------*"
# " |                  jRAMA Viewer Starting Script                      |"
# " |               For Version 4.12 Rev 2015.147.15.40                   |"
# " |             For more information, use: jrama -help                 |"
# " *--------------------------------------------------------------------*"
# Usage:
#   jrama -in pred.tab
#   jrama -in pred.tab -ref mystruct.pdb

######################################################################
### Make Sure the TALOS-N Installation Definition Below is Correct ###
######################################################################
setenv TALOSN_DIR /net/penton2/shenyang/projects/TALOS++/distribution/

if (!(-d $TALOSN_DIR )) then
   echo "[jrama] Error: no TALOS-N installation in $TALOSN_DIR"
   exit 0
endif

if (-e $TALOSN_DIR/rama.jar) then

   if ($#argv >= 1) then
      java -jar $TALOSN_DIR/rama.jar $argv[1-$#argv]
   else
      java -jar $TALOSN_DIR/rama.jar
   endif

   exit 0
endif

echo "[jrama] Error: no working rama,jar executable in $TALOSN_DIR"
