-
Notifications
You must be signed in to change notification settings - Fork 5
/
runquark.sh
executable file
·45 lines (40 loc) · 1014 Bytes
/
runquark.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
usage() { echo "Usage $0 [-1 left end] [-2 right end] [-s path to sailfish binary] [-i path to sailfish index] [-p #threads] [-o output Dir]" 1>&2; exit 1;}
while getopts ":1:2:s:i:p:o:" e; do
case "${e}" in
1)
left=${OPTARG}
;;
2)
right=${OPTARG}
;;
s)
sailfish=${OPTARG}
;;
i)
ind=${OPTARG}
;;
p)
th=${OPTARG}
;;
o)
out=${OPTARG}
;;
*)
usage
;;
esac
done
#echo "$#"
echo "{left read $left}"
echo "{right read $left}"
echo "sailfish binary $sailfish"
echo "sailfish index $ind"
echo "threads #$th"
echo "output dir $out"
if [ "$#" -ne 12 ]; then
exit 1
fi
shift $((OPTIND-1))
#echo "$sailfish quant -i $ind -l IU -1 $left -2 $right -p $th -o $out"
$sailfish quant -i $ind -l IU -1 $left -2 $right -p $th -o $out
./decoder $out/aux/islands.quark $out/aux/reads.quark $out