File: test-example-with-training

package info (click to toggle)
augustus 3.5.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 777,036 kB
  • sloc: cpp: 80,063; perl: 21,491; python: 4,368; ansic: 1,244; makefile: 1,126; sh: 171; javascript: 32
file content (24 lines) | stat: -rwxr-xr-x 627 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# autopkgtest check: Run example test data through AUGUSTUS, with training 
# Author: Sascha Steinbiss <sascha@steinbiss.name>
set -e

ORIGDIR=$(pwd)
DATADIR=$ORIGDIR/debian/tests/
WORKDIR=$(mktemp -d)

trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR

# prepare custom config directory
cp -prv /usr/share/augustus/config .
export AUGUSTUS_CONFIG_PATH=$WORKDIR/config

# training
/usr/share/augustus/scripts/new_species.pl --species=test
etraining --species=test $ORIGDIR/examples/hsackI10.gb

# test new species models
augustus --species=test $ORIGDIR/examples/example.fa | tee out.gff3

[ -s out.gff3 ]