view change_o/makedb.sh @ 6:ea9d5fc4c001 draft default tip

"planemo upload commit 9ada186a78831ca2618ec817a23a77de6adf1a5d"
author rhpvorderman
date Wed, 22 Dec 2021 11:29:16 +0000
parents 64d74ba01a7c
children
line wrap: on
line source

#!/bin/bash
dir="$(cd "$(dirname "$0")" && pwd)"

input=$1
noparse=$2
scores=$3
regions=$4
output=$5

if [ "true" == "$noparse" ] ; then
	noparse="--noparse"
else
	noparse=""
fi

if [ "true" == "$scores" ] ; then
	scores="--scores"
else
	scores=""
fi

if [ "true" == "$regions" ] ; then
	regions="--regions"
else
	regions=""
fi

mkdir $PWD/outdir

echo "makedb: $PWD/outdir"

MakeDb.py imgt -i $input --outdir $PWD/outdir --outname output $noparse $scores $regions

mv $PWD/outdir/output_db-pass.tab $output

rm -rf $PWD/outdir/