Debian Codegraph @

comparegff.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 usagescip-shell shell bbmap 39.20+dfsg-3 usage().(){
4 echoscip-shell system . . echo. "
5 Written by Brian Bushnell
6 Last modified August 12, 2019
7
8 Description: Compares CDS, rRNA, and tRNA lines in gff files.
9
10 Usage: comparegff.sh in=<input gff> ref=<reference gff>
11
12 Standard parameters:
13 in=<file> Query gff.
14 ref=<file> Reference gff.
15
16 Please contact Brian Bushnell at [email protected] if you encounter any problems.
17 "
18 }
19
20 #This block allows symlinked shellscripts to correctly set classpath.
21 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
22 DIR="${BASH_SOURCE[0]}"
23 while [scip-shell system . . `[`. -h "$DIR" ]; do
24 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
25 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
26 done
27 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
28 DIR="$(pwdscip-shell system . . pwd.)/"
29 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
30
31 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
32 CP="$DIR""current/"
33
34 z="-Xmx1g"
35 z2="-Xms1g"
36 set=0
37
38 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
39 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
40 exit
41 fi
42
43 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
44 source "$DIR""/calcmem.sh"
45 setEnvironment
46 parseXmx "$@"
47 if [[ $set == 1 ]]; then
48 return
49 fi
50 freeRam 1000m 42
51 z="-Xmx${RAM}m"
52 z2="-Xms${RAM}m"
53 }
54 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
55
56 comparegffscip-shell shell bbmap 39.20+dfsg-3 comparegff().() {
57 local CMD="java $EA $EOOM $z -cp $CP gff.CompareGff $@"
58 echoscip-shell system . . echo. $CMD >&2
59 eval $CMD
60 }
61
62 comparegffscip-shell shell bbmap 39.20+dfsg-3 comparegff(). "$@"