Debian Codegraph @

a_sample_mt.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 July 31, 2019
7
8 Description: Does nothing. Should be fast.
9 This is a template for making wrappers for new tools.
10
11 Usage: a_sample_mt.sh in=<input file> out=<output file>
12
13 Input may be fasta or fastq, compressed or uncompressed.
14
15 Standard parameters:
16 in=<file> Primary input, or read 1 input.
17 in2=<file> Read 2 input if reads are in two files.
18 out=<file> Primary output, or read 1 output.
19 out2=<file> Read 2 output if reads are in two files.
20 ziplevel=2 (zl) Set to 1 (lowest) through 9 (max) to change compression
21 level; lower compression is faster.
22
23 Processing parameters:
24 None yet!
25
26 Java Parameters:
27 -Xmx This will set Java's memory usage, overriding autodetection.
28 -Xmx20g will specify 20 gigs of RAM, and -Xmx200m will
29 specify 200 megs. The max is typically 85% of physical memory.
30 -eoom This flag will cause the process to exit if an out-of-memory
31 exception occurs. Requires Java 8u92+.
32 -da Disable assertions.
33
34 Please contact Brian Bushnell at [email protected] if you encounter any problems.
35 "
36 }
37
38 #This block allows symlinked shellscripts to correctly set classpath.
39 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
40 DIR="${BASH_SOURCE[0]}"
41 while [scip-shell system . . `[`. -h "$DIR" ]; do
42 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
43 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
44 done
45 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
46 DIR="$(pwdscip-shell system . . pwd.)/"
47 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
48
49 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
50 CP="$DIR""current/"
51
52 z="-Xmx4g"
53 z2="-Xms4g"
54 set=0
55
56 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
57 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
58 exit
59 fi
60
61 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
62 source "$DIR""/calcmem.sh"
63 setEnvironment
64 parseXmx "$@"
65 if [[ $set == 1 ]]; then
66 return
67 fi
68 freeRam 4000m 84
69 z="-Xmx${RAM}m"
70 z2="-Xms${RAM}m"
71 }
72 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
73
74 a_sample_mtscip-shell shell bbmap 39.20+dfsg-3 a_sample_mt().() {
75 local CMD="java $EA $EOOM $z -cp $CP templates.A_SampleMT $@"
76 echoscip-shell system . . echo. $CMD >&2
77 eval $CMD
78 }
79
80 a_sample_mtscip-shell shell bbmap 39.20+dfsg-3 a_sample_mt(). "$@"