Skip to content
Commits on Source (2)
beagle (5.1-190824+dfsg-2) UNRELEASED; urgency=medium
beagle (5.1-190824+dfsg-2) unstable; urgency=medium
* Team upload.
......
#!/bin/sh -e
# http://dep.debian.net/deps/dep8/
# Autopkgtest: Test if beagle run analysis correctly
# Author: Dylan Aïssi <bob.dybian@gmail.com>
# Last-Update: 2018-09-16
# Author: Dylan Aïssi <daissi@debian.org>
# Last-Update: 2019-09-19
pkg=beagle
if [ "$ADTTMP" = "" ] ; then
......@@ -11,21 +11,19 @@ fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/examples/* $ADTTMP
BEAGLE_TEST='java -jar /usr/share/beagle/beagle.jar'
# Generate necessary files
gzip test.vcf
zcat test.vcf.gz | cut -f1-190 | tr '/' '|' | gzip > ref.vcf.gz
zcat test.vcf.gz | cut -f1-9,191-200 | gzip > target.vcf.gz
java -jar /usr/share/beagle/bref3.jar ref.vcf.gz > ref.bref3
bref3 ref.vcf.gz > ref.bref3
# Beagle with gt argument
$BEAGLE_TEST gt=test.vcf.gz out=out.gt
beagle gt=test.vcf.gz out=out.gt
# Beagle with ref and gt argument
$BEAGLE_TEST ref=ref.vcf.gz gt=target.vcf.gz out=out.ref
beagle ref=ref.vcf.gz gt=target.vcf.gz out=out.ref
# Beagle with bref3 file
$BEAGLE_TEST ref=ref.bref3 gt=target.vcf.gz out=out.bref3
beagle ref=ref.bref3 gt=target.vcf.gz out=out.bref3
rm -f $ADTTMP/*