annotate change_o/makedb.sh @ 0:8a5a2abbb870 draft default tip

Uploaded
author davidvanzessen
date Mon, 29 Aug 2016 05:36:10 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
1 #!/bin/bash
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
2 dir="$(cd "$(dirname "$0")" && pwd)"
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
3
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
4 input=$1
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
5 noparse=$2
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
6 scores=$3
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
7 regions=$4
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
8 output=$5
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
9
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
10 if [ "true" == "$noparse" ] ; then
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
11 noparse="--noparse"
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
12 else
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
13 noparse=""
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
14 fi
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
15
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
16 if [ "true" == "$scores" ] ; then
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
17 scores="--scores"
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
18 else
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
19 scores=""
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
20 fi
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
21
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
22 if [ "true" == "$regions" ] ; then
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
23 regions="--regions"
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
24 else
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
25 regions=""
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
26 fi
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
27
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
28 mkdir $PWD/outdir
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
29
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
30 echo "makedb: $PWD/outdir"
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
31
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
32 python3 $dir/MakeDb.py imgt -i $input --outdir $PWD/outdir --outname output $noparse $scores $regions
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
33 #/data/users/david/anaconda3/bin/python $dir/MakeDb.py imgt -i $input --outdir $PWD/outdir --outname output $noparse $scores $regions
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
34 #/home/galaxy/anaconda3/bin/python $dir/MakeDb.py imgt -i $input --outdir $PWD/outdir --outname output $noparse $scores $regions
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
35
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
36 mv $PWD/outdir/output_db-pass.tab $output
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
37
8a5a2abbb870 Uploaded
davidvanzessen
parents:
diff changeset
38 rm -rf $PWD/outdir/