Debian Codegraph @

reducecolumns.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 February 24, 2025
7
8 Usage: reducecolumns.sh <in> <out> column column column
9
10 Please contact Brian Bushnell at [email protected] if you encounter any problems.
11 "
12 }
13
14 #This block allows symlinked shellscripts to correctly set classpath.
15 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
16 DIR="${BASH_SOURCE[0]}"
17 while [scip-shell system . . `[`. -h "$DIR" ]; do
18 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
19 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
20 done
21 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
22 DIR="$(pwdscip-shell system . . pwd.)/"
23 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
24
25 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
26 CP="$DIR""current/"
27
28 z="-Xmx2g"
29 z2="-Xms2g"
30 set=0
31
32 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
33 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
34 exit
35 fi
36
37 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
38 source "$DIR""/calcmem.sh"
39 setEnvironment
40 parseXmx "$@"
41 if [[ $set == 1 ]]; then
42 return
43 fi
44 freeRam 2000m 24
45 z="-Xmx${RAM}m"
46 z2="-Xms${RAM}m"
47 }
48 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
49
50 reducescip-shell shell bbmap 39.20+dfsg-3 reduce().() {
51 local CMD="java $EA $EOOM $z -cp $CP ml.ReduceColumns $@"
52 echoscip-shell system . . echo. $CMD >&2
53 eval $CMD
54 }
55
56 reducescip-shell shell bbmap 39.20+dfsg-3 reduce(). "$@"