forked from timpalpant/java-genomics-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavaGenomicsToolkit
More file actions
executable file
·34 lines (30 loc) · 951 Bytes
/
javaGenomicsToolkit
File metadata and controls
executable file
·34 lines (30 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# Help
if [ $# -eq 0 ]
then
echo "USAGE: $(basename $0) APPNAME [ARGS]";
echo "To list available tools: $(basename $0) list";
exit
fi
# Get the root directory in case this script is being called from elsewhere
#DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Employ this version if you have created a symbolic link to this file - DCK
DIR="$( cd "$( dirname "$(readlink -f ${BASH_SOURCE[0]} )" )" && pwd )"
# List the available tools (this is a little hacky)
if [ "$1" = "list" ]
then
for d in `ls $DIR/src/edu/unc/genomics`
do
if [ -d $DIR/src/edu/unc/genomics/$d ]
then
for f in `ls $DIR/src/edu/unc/genomics/$d/*`
do
scriptname=`basename $f .java`
echo $d.$scriptname
done
fi
done
exit
fi
# Run a tool with the passed arguments
java -Xmx2000m -Dlog4j.configuration=log4j.properties -cp $DIR:$DIR/build:$DIR/dist/*:$DIR/lib/* edu.unc.genomics."$@"