comparison deseq-hts_2.0/bin/start_interpreter.sh @ 10:2fe512c7bfdf draft

DESeq2 version 1.0.19 added to the repo
author vipints <vipin@cbio.mskcc.org>
date Tue, 08 Oct 2013 08:15:34 -0400
parents
children
comparison
equal deleted inserted replaced
9:e27b4f7811c2 10:2fe512c7bfdf
1 #/bin/bash
2 ##
3 # Copyright (C) 2009-2013 Max Planck Society and Memorial Sloan Kettering Cancer Center
4 ##
5
6 set -e
7
8 . `dirname $0`/deseq2_config.sh
9
10 export MATLAB_RETURN_FILE=`mktemp`
11
12 if [ "$INTERPRETER" == 'octave' ];
13 then
14 echo exit | ${OCTAVE_BIN_PATH} --no-window-system --silent --eval "global SHELL_INTERPRETER_INVOKE; SHELL_INTERPRETER_INVOKE=1; addpath $DESEQ2_SRC_PATH; deseq_config; $1($2); exit;" || (echo starting Octave failed; rm -f $MATLAB_RETURN_FILE; exit -1) ;
15 fi
16
17 if [ "$INTERPRETER" == 'matlab' ];
18 then
19 echo exit | ${MATLAB_BIN_PATH} -nodisplay -r "global SHELL_INTERPRETER_INVOKE; SHELL_INTERPRETER_INVOKE=1; addpath $DESEQ2_SRC_PATH; deseq_config; $1($2); exit;" || (echo starting Matlab failed; rm -f $MATLAB_RETURN_FILE; exit -1) ;
20 fi
21
22 test -f $MATLAB_RETURN_FILE || exit 0
23 ret=`cat $MATLAB_RETURN_FILE` ;
24 rm -f $MATLAB_RETURN_FILE
25 exit $ret
26