annotate change_o/makedb.sh @ 81:b6f9a640e098 draft

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