annotate galaxy-conf/galaxyToolRunner.sh @ 15:3e477c7e0e73 draft

Update normalization tools to allow normalizing by chromosome (Z-scorer, scale, etc.) Add new tool to convert any interval file to Bed format. Miscellaneous bug fixes.
author timpalpant
date Sat, 09 Jun 2012 16:03:59 -0400
parents eb53be9a09f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
1 #!/usr/bin/env bash
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
2
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
3 if [ $# -eq 0 ]
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
4 then
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
5 echo "USAGE: galaxyToolRunner.sh APPNAME [ARGS]";
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
6 exit;
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
7 fi
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
8
13
eb53be9a09f4 Uploaded
timpalpant
parents: 4
diff changeset
9 # Verify that the user has Java 7 installed
eb53be9a09f4 Uploaded
timpalpant
parents: 4
diff changeset
10 # Otherwise there will be an obscure UnsupportedClassVersion error
eb53be9a09f4 Uploaded
timpalpant
parents: 4
diff changeset
11 version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
eb53be9a09f4 Uploaded
timpalpant
parents: 4
diff changeset
12 if [[ "$version" < "1.7" ]]; then
eb53be9a09f4 Uploaded
timpalpant
parents: 4
diff changeset
13 echo "Need Java 7 or greater. You have Java $version installed."
eb53be9a09f4 Uploaded
timpalpant
parents: 4
diff changeset
14 exit
4
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
15 fi
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
16
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
17 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4b32ed5d4a1b Uploaded
timpalpant
parents:
diff changeset
18 java -Dlog4j.configuration=log4j.properties -cp $DIR:$DIR/../build:$DIR/../dist/*:$DIR/../lib/* edu.unc.genomics."$@"