annotate mkCorr.sh @ 10:6df7b07f81c1

better explanation for optional name
author Ido Tamir <ido.tamir@imp.ac.at>
date Sun, 18 Aug 2013 18:10:48 +0200
parents 9abd178b46bd
children 5a4cbfb5fbc5
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
3
7bdd29cdfed8 more debug messages
Ido Tamir <ido.tamir@imp.ac.at>
parents: 1
diff changeset
7 module () {
7bdd29cdfed8 more debug messages
Ido Tamir <ido.tamir@imp.ac.at>
parents: 1
diff changeset
8 eval `/usr/bin/modulecmd bash $*`
7bdd29cdfed8 more debug messages
Ido Tamir <ido.tamir@imp.ac.at>
parents: 1
diff changeset
9 }
1
f106b52086b0 Uploaded
idot
parents:
diff changeset
10
f106b52086b0 Uploaded
idot
parents:
diff changeset
11 if [ -f /biosw/modules/init/modules-env.sh ]; then
f106b52086b0 Uploaded
idot
parents:
diff changeset
12 module load R/3.0.0
f106b52086b0 Uploaded
idot
parents:
diff changeset
13 fi;
f106b52086b0 Uploaded
idot
parents:
diff changeset
14
f106b52086b0 Uploaded
idot
parents:
diff changeset
15 cp $TOOLDIR/corr.R $PWD
f106b52086b0 Uploaded
idot
parents:
diff changeset
16
5
9abd178b46bd wrong redirect
Ido Tamir <ido.tamir@imp.ac.at>
parents: 4
diff changeset
17 ./corr.R "$@" >> err.log 2>&1
1
f106b52086b0 Uploaded
idot
parents:
diff changeset
18
f106b52086b0 Uploaded
idot
parents:
diff changeset
19 if [ $? -eq 0 ]
f106b52086b0 Uploaded
idot
parents:
diff changeset
20 then
f106b52086b0 Uploaded
idot
parents:
diff changeset
21 echo 'correlation result'
f106b52086b0 Uploaded
idot
parents:
diff changeset
22 exit 0
f106b52086b0 Uploaded
idot
parents:
diff changeset
23 else
f106b52086b0 Uploaded
idot
parents:
diff changeset
24 cat err.log >&2
f106b52086b0 Uploaded
idot
parents:
diff changeset
25 exit 1
f106b52086b0 Uploaded
idot
parents:
diff changeset
26 fi