annotate change_o/makedb.sh @ 96:385dea3c6cb5 draft

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