File: run-sample-analysis

package info (click to toggle)
beagle 250227-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,364 kB
  • sloc: java: 17,684; sh: 55; makefile: 11
file content (28 lines) | stat: -rwxr-xr-x 772 bytes parent folder | download | duplicates (7)
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
#!/bin/sh -e
# http://dep.debian.net/deps/dep8/
# Autopkgtest: Test if beagle run analysis correctly
# Author: Dylan Aïssi <daissi@debian.org>

pkg=beagle
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $AUTOPKGTEST_TMP
cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP

# 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
bref3 ref.vcf.gz > ref.bref3

# Beagle with gt argument
beagle gt=test.vcf.gz out=out.gt

# Beagle with ref and gt argument
beagle ref=ref.vcf.gz gt=target.vcf.gz out=out.ref

# Beagle with bref3 file
beagle ref=ref.bref3 gt=target.vcf.gz out=out.bref3

rm -f $AUTOPKGTEST_TMP/*