File: run-example

package info (click to toggle)
gubbins 3.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,008 kB
  • sloc: python: 5,347; ansic: 5,080; sh: 242; makefile: 130; cpp: 27
file content (30 lines) | stat: -rwxr-xr-x 1,095 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# autopkgtest check: Run test data through Gubbins
# Author: Sascha Steinbiss <satta@debian.org>
# Reviewed-By: Étienne Mollier <emollier@debian.org>
set -e
# This is expected to run in autopkgtest context.
CURDIR="$(pwd)"
WORKDIR="$(mktemp -d)"
HOME="$WORKDIR"
export HOME
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd "$WORKDIR"

# Note several pathological datasets will trigger gubbins to return
# error without being symptomatic of an actual crash.
cp "$CURDIR/python/gubbins/tests/data/bootstrapping_test.aln" .
cp "$CURDIR/python/gubbins/tests/data/masking_multiple.aln" .
cp "$CURDIR/python/gubbins/tests/data/mislabelled.multiple_recombinations.aln" .
cp "$CURDIR/tests/data/no_recombinations.aln" .
cp "$CURDIR/tests/data/one_recombination.aln" .
cp "$CURDIR/tests/data/recombination_at_root/recombination_at_root.aln" .
cp "$CURDIR/tests/data/small_phylip_file.aln" .

for f in *.aln
do
	echo "##### $f #####"
	# See Github issue #442 for the iqtree tree builder.
	# [1]: https://github.com/nickjcroucher/gubbins/issues/442
	run_gubbins --tree-builder iqtree $f
done