Debian Codegraph @

estherfilter.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: BLASTs queries against reference, and filters out hits with
9 scores less than 'cutoff'. The score is taken from column 12
10 of the BLAST output. The specific BLAST command is:
11 blastall -p blastn -i QUERY -d REFERENCE -e 0.00001 -m 8
12
13 Usage: estherfilter.sh <query> <reference> <cutoff>
14
15 For example:
16
17 estherfilter.sh reads.fasta genes.fasta 1000 > results.txt
18
19 'fasta' can be used as a fourth argument to get output in Fasta format. Requires more memory.
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="-Xmx3200m"
40 set=0
41
42 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
43 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
44 exit
45 fi
46
47 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
48 source "$DIR""/calcmem.sh"
49 setEnvironment
50 parseXmx "$@"
51 }
52 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
53
54 estherfilterscip-shell shell bbmap 39.20+dfsg-3 estherfilter().() {
55 local CMD="java $EA $EOOM $z -cp $CP driver.EstherFilter $@"
56 echoscip-shell system . . echo. $CMD >&2
57 eval $CMD
58 }
59
60 estherfilterscip-shell shell bbmap 39.20+dfsg-3 estherfilter(). "$@"