annotate change_o/makedb.sh @ 77:58d2377b507d draft

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