Debian Codegraph @

bbmapskimmer.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 #This is a version of BBMap designed to final all sites above a given threshold,
4 #rather than the single best site. Syntax is the same as BBMap.
5
6 usagescip-shell shell bbmap 39.20+dfsg-3 usage().(){
7 bashscip-shell system . . bash. "$DIR"bbmap.sh
8 }
9
10 #This block allows symlinked shellscripts to correctly set classpath.
11 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
12 DIR="${BASH_SOURCE[0]}"
13 while [scip-shell system . . `[`. -h "$DIR" ]; do
14 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
15 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
16 done
17 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
18 DIR="$(pwdscip-shell system . . pwd.)/"
19 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
20
21 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
22 CP="$DIR""current/"
23 JNI="-Djava.library.path=""$DIR""jni/"
24 JNI=""
25
26 z="-Xmx1g"
27 z2="-Xms1g"
28 set=0
29
30 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
31 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
32 exit
33 fi
34
35 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
36 source "$DIR""/calcmem.sh"
37 setEnvironment
38 parseXmx "$@"
39 if [[ $set == 1 ]]; then
40 return
41 fi
42 freeRam 3200m 84
43 z="-Xmx${RAM}m"
44 z2="-Xms${RAM}m"
45 }
46 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
47
48 mapPacBioSkimmerscip-shell shell bbmap 39.20+dfsg-3 mapPacBioSkimmer().() {
49 local CMD="java $EA $EOOM $z $z2 $JNI -cp $CP align2.BBMapPacBioSkimmer build=1 overwrite=true minratio=0.40 fastareadlen=6000 ambig=all minscaf=100 startpad=10000 stoppad=10000 midpad=6000 $@"
50 echoscip-shell system . . echo. $CMD >&2
51 eval $CMD
52 }
53
54 mapPacBioSkimmerscip-shell shell bbmap 39.20+dfsg-3 mapPacBioSkimmer(). "$@"