Debian Codegraph @

matrixtocolumns.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 January 21, 2015
7
8 Description: Transforms two matched identity matrices into 2-column format,
9 one row per entry, one column per matrix.
10
11 Usage: matrixtocolumns.sh in1=<matrix1> in2=<matrix2> out=<file>
12
13 Java Parameters:
14 -Xmx This will set Java's memory usage, overriding autodetection.
15 -Xmx20g will specify 20 gigs of RAM, and -Xmx200m will specify 200 megs.
16 The max is typically 85% of physical memory.
17 -eoom This flag will cause the process to exit if an out-of-memory
18 exception occurs. Requires Java 8u92+.
19 -da Disable assertions.
20
21 Please contact Brian Bushnell at [email protected] if you encounter any problems.
22 "
23 }
24
25 #This block allows symlinked shellscripts to correctly set classpath.
26 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
27 DIR="${BASH_SOURCE[0]}"
28 while [scip-shell system . . `[`. -h "$DIR" ]; do
29 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
30 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
31 done
32 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
33 DIR="$(pwdscip-shell system . . pwd.)/"
34 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
35
36 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
37 CP="$DIR""current/"
38
39 z="-Xmx2g"
40 z2="-Xms2g"
41 set=0
42
43 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
44 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
45 exit
46 fi
47
48 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
49 source "$DIR""/calcmem.sh"
50 setEnvironment
51 parseXmx "$@"
52 if [[ $set == 1 ]]; then
53 return
54 fi
55 freeRam 3200m 84
56 z="-Xmx${RAM}m"
57 z2="-Xms${RAM}m"
58 }
59 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
60
61 matrixtocolumnsscip-shell shell bbmap 39.20+dfsg-3 matrixtocolumns().() {
62 local CMD="java $EA $EOOM $z -cp $CP driver.CorrelateIdentity $@"
63 echoscip-shell system . . echo. $CMD >&2
64 eval $CMD
65 }
66
67 matrixtocolumnsscip-shell shell bbmap 39.20+dfsg-3 matrixtocolumns(). "$@"