Debian Codegraph @

debian/tests/test-example-with-training

raw
1 #!/bin/sh
2 # autopkgtest check: Run example test data through AUGUSTUS, with training
3 # Author: Sascha Steinbiss <[email protected]>
4 set -e
5
6 ORIGDIR=$(pwd)
7 DATADIR=$ORIGDIR/debian/tests/
8 WORKDIR=$(mktemp -d)
9
10 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
11 cd $WORKDIR
12
13 # prepare custom config directory
14 cp -prv /usr/share/augustus/config .
15 export AUGUSTUS_CONFIG_PATH=$WORKDIR/config
16
17 # training
18 /usr/share/augustus/scripts/new_species.pl --species=test
19 etraining --species=test $ORIGDIR/examples/hsackI10.gb
20
21 # test new species models
22 augustus --species=test $ORIGDIR/examples/example.fa | tee out.gff3
23
24 [ -s out.gff3 ]