annotate mkCorr.sh @ 14:5a4cbfb5fbc5 default tip

loading R3.0.2
author Ido Tamir <ido.tamir@imp.ac.at>
date Mon, 27 Oct 2014 10:57:35 +0100
parents 9abd178b46bd
children
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 if [ -f /biosw/modules/init/modules-env.sh ]; then
14
5a4cbfb5fbc5 loading R3.0.2
Ido Tamir <ido.tamir@imp.ac.at>
parents: 5
diff changeset
8 . /etc/profile.d/modules.sh
5a4cbfb5fbc5 loading R3.0.2
Ido Tamir <ido.tamir@imp.ac.at>
parents: 5
diff changeset
9 source ~/R3.sh
1
f106b52086b0 Uploaded
idot
parents:
diff changeset
10 fi;
f106b52086b0 Uploaded
idot
parents:
diff changeset
11
f106b52086b0 Uploaded
idot
parents:
diff changeset
12 cp $TOOLDIR/corr.R $PWD
f106b52086b0 Uploaded
idot
parents:
diff changeset
13
5
9abd178b46bd wrong redirect
Ido Tamir <ido.tamir@imp.ac.at>
parents: 4
diff changeset
14 ./corr.R "$@" >> err.log 2>&1
1
f106b52086b0 Uploaded
idot
parents:
diff changeset
15
f106b52086b0 Uploaded
idot
parents:
diff changeset
16 if [ $? -eq 0 ]
f106b52086b0 Uploaded
idot
parents:
diff changeset
17 then
f106b52086b0 Uploaded
idot
parents:
diff changeset
18 echo 'correlation result'
f106b52086b0 Uploaded
idot
parents:
diff changeset
19 exit 0
f106b52086b0 Uploaded
idot
parents:
diff changeset
20 else
f106b52086b0 Uploaded
idot
parents:
diff changeset
21 cat err.log >&2
f106b52086b0 Uploaded
idot
parents:
diff changeset
22 exit 1
f106b52086b0 Uploaded
idot
parents:
diff changeset
23 fi