File: run-sample-analysis

package info (click to toggle)
plink 1.07%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,040 kB
  • sloc: cpp: 69,728; makefile: 123; sh: 12
file content (25 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (3)
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
#!/bin/sh -e
# http://dep.debian.net/deps/dep8/
# Autopkgtest: Test if plink run analysis correctly
# Author: Dylan Aïssi <bob.dybian@gmail.com>
# Last-Update: 2015-01-24

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

PLINK_TEST='plink1 --noweb --file test'

# Allele frequencies
$PLINK_TEST --freq
diff plink.frq expected.plink.frq

# Case/control or QTL association
$PLINK_TEST --assoc
diff plink.assoc expected.plink.assoc

rm -f $ADTTMP/*