Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/summarizemerge.sh @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 #!/bin/bash | |
2 | |
3 usage(){ | |
4 echo " | |
5 Written by Brian Bushnell | |
6 Last modified June 6, 2016 | |
7 | |
8 Description: Summarizes the output of GradeMerge for comparing | |
9 read-merging performance. | |
10 | |
11 Usage: summarizemerge.sh in=<file> | |
12 | |
13 Parameters: | |
14 in=<file> A file containing GradeMerge output. | |
15 | |
16 Please contact Brian Bushnell at bbushnell@lbl.gov if you encounter any problems. | |
17 " | |
18 } | |
19 | |
20 #This block allows symlinked shellscripts to correctly set classpath. | |
21 pushd . > /dev/null | |
22 DIR="${BASH_SOURCE[0]}" | |
23 while [ -h "$DIR" ]; do | |
24 cd "$(dirname "$DIR")" | |
25 DIR="$(readlink "$(basename "$DIR")")" | |
26 done | |
27 cd "$(dirname "$DIR")" | |
28 DIR="$(pwd)/" | |
29 popd > /dev/null | |
30 | |
31 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" | |
32 CP="$DIR""current/" | |
33 | |
34 z="-Xmx120m" | |
35 set=0 | |
36 | |
37 if [ -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then | |
38 usage | |
39 exit | |
40 fi | |
41 | |
42 calcXmx () { | |
43 source "$DIR""/calcmem.sh" | |
44 setEnvironment | |
45 parseXmx "$@" | |
46 } | |
47 calcXmx "$@" | |
48 | |
49 summarizemerge() { | |
50 local CMD="java $EA $EOOM $z -cp $CP driver.ProcessSpeed $@" | |
51 # echo $CMD >&2 | |
52 eval $CMD | |
53 } | |
54 | |
55 summarizemerge "$@" |