Debian Codegraph @

addssu.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 Jan 29, 2020
7
8 Description: Adds, removes, or replaces SSU sequence of existing sketches.
9 Sketches and SSU fasta files must be annotated with TaxIDs.
10
11 Usage: addssu.sh in=a.sketch out=b.sketch 16S=16S.fa 18S=18S.fa
12
13 Standard parameters:
14 in=<file> Input sketch file.
15 out=<file> Output sketch file.
16
17 Additional files (optional):
18 16S=<file> A fasta file of 16S sequences. These should be renamed
19 so that they start with tid|# where # is the taxID.
20 Should not contain organelle rRNA.
21 18S=<file> A fasta file of 18S sequences. These should be renamed
22 so that they start with tid|# where # is the taxID.
23 Should not contain organelle rRNA.
24 tree=auto Path to TaxTree, if performing prok/euk-specific operations.
25
26 Processing parameters:
27 preferSSUMap=f
28 preferSSUMapEuks=f
29 preferSSUMapProks=f
30 SSUMapOnly=f
31 SSUMapOnlyEuks=f
32 SSUMapOnlyProks=f
33 clear16S=f
34 clear18S=f
35 clear16SEuks=f
36 clear18SEuks=f
37 clear16SProks=f
38 clear18SProks=f
39
40
41 Java Parameters:
42 -Xmx This will set Java's memory usage, overriding autodetection.
43 -Xmx20g will specify 20 gigs of RAM, and -Xmx200m will specify 200 megs.
44 The max is typically 85% of physical memory.
45 -da Disable assertions.
46
47 For more detailed information, please read /bbmap/docs/guides/BBSketchGuide.txt.
48 Please contact Brian Bushnell at [email protected] if you encounter any problems.
49 "
50 }
51
52 #This block allows symlinked shellscripts to correctly set classpath.
53 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
54 DIR="${BASH_SOURCE[0]}"
55 while [scip-shell system . . `[`. -h "$DIR" ]; do
56 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
57 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
58 done
59 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
60 DIR="$(pwdscip-shell system . . pwd.)/"
61 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
62
63 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
64 CP="$DIR""current/"
65
66 z="-Xmx4g"
67 z2="-Xms4g"
68 set=0
69
70 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
71 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
72 exit
73 fi
74
75 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
76 source "$DIR""/calcmem.sh"
77 setEnvironment
78 parseXmx "$@"
79 if [[ $set == 1 ]]; then
80 return
81 fi
82 #freeRam 3200m 84
83 #z="-Xmx${RAM}m"
84 #z2="-Xms${RAM}m"
85 }
86 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
87
88 sendsketchscip-shell shell bbmap 39.20+dfsg-3 sendsketch().() {
89 local CMD="java $EA $EOOM $z -cp $CP sketch.AddSSU $@"
90 echoscip-shell system . . echo. $CMD >&2
91 eval $CMD
92 }
93
94 sendsketchscip-shell shell bbmap 39.20+dfsg-3 sendsketch(). "$@"