comparison mkCorr.sh @ 1:f106b52086b0

Uploaded
author idot
date Sun, 18 Aug 2013 09:42:36 -0400
parents
children 7bdd29cdfed8
comparison
equal deleted inserted replaced
0:06cd86f06fb0 1:f106b52086b0
1 #!/bin/sh
2 TOOLDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3
4 #echo "running corr"
5 #echo $PWD
6
7
8
9 if [ -f /biosw/modules/init/modules-env.sh ]; then
10 module load R/3.0.0
11 fi;
12
13 cp $TOOLDIR/corr.R $PWD
14
15 ./corr.R "$@" > err.log 2>&1
16
17 if [ $? -eq 0 ]
18 then
19 echo 'correlation result'
20 exit 0
21 else
22 cat err.log >&2
23 exit 1
24 fi