annotate mkCorr.sh @ 1:f106b52086b0

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