Debian Codegraph @

mergeOTUs.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: Merges coverage stats lines (from pileup) for the same OTU,
9 according to some custom naming scheme.
10
11 Usage: mergeOTUs.sh in=<file> out=<file>
12
13 Please contact Brian Bushnell at [email protected] if you encounter any problems.
14 "
15 }
16
17 #This block allows symlinked shellscripts to correctly set classpath.
18 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
19 DIR="${BASH_SOURCE[0]}"
20 while [scip-shell system . . `[`. -h "$DIR" ]; do
21 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
22 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
23 done
24 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
25 DIR="$(pwdscip-shell system . . pwd.)/"
26 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
27
28 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
29 CP="$DIR""current/"
30
31 z="-Xmx1g"
32 set=0
33
34 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
35 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
36 exit
37 fi
38
39 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
40 source "$DIR""/calcmem.sh"
41 setEnvironment
42 parseXmx "$@"
43 }
44 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
45
46 function mergeOTUsscip-shell shell bbmap 39.20+dfsg-3 mergeOTUs().() {
47 local CMD="java $EA $EOOM $z -cp $CP driver.MergeCoverageOTU $@"
48 echoscip-shell system . . echo. $CMD >&2
49 eval $CMD
50 }
51
52 mergeOTUsscip-shell shell bbmap 39.20+dfsg-3 mergeOTUs(). "$@"