Mercurial > repos > idot > coverage_correlation
annotate mkCorr.sh @ 5:9abd178b46bd
wrong redirect
author | Ido Tamir <ido.tamir@imp.ac.at> |
---|---|
date | Sun, 18 Aug 2013 17:14:10 +0200 |
parents | 60bfca1da141 |
children | 5a4cbfb5fbc5 |
rev | line source |
---|---|
1 | 1 #!/bin/sh |
2 TOOLDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
3 | |
4 #echo "running corr" | |
5 #echo $PWD | |
6 | |
3 | 7 module () { |
8 eval `/usr/bin/modulecmd bash $*` | |
9 } | |
1 | 10 |
11 if [ -f /biosw/modules/init/modules-env.sh ]; then | |
12 module load R/3.0.0 | |
13 fi; | |
14 | |
15 cp $TOOLDIR/corr.R $PWD | |
16 | |
5 | 17 ./corr.R "$@" >> err.log 2>&1 |
1 | 18 |
19 if [ $? -eq 0 ] | |
20 then | |
21 echo 'correlation result' | |
22 exit 0 | |
23 else | |
24 cat err.log >&2 | |
25 exit 1 | |
26 fi |