File: test-example

package info (click to toggle)
snpomatic 1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: cpp: 3,491; makefile: 46; sh: 16
file content (23 lines) | stat: -rwxr-xr-x 476 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
#!/bin/sh
# autopkgtest check: Run simulated test data through snpomatic
# 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

cp $DATADIR/ref.fasta .
wgsim -N 10000 -r 0.01 -S 42 \
  ref.fasta \
  reads.1.fq \
  reads.2.fq
findknownsnps --genome=ref.fasta \
  --fastq=reads.1.fq \
  --gffout=out.gff \
  --fastq2=reads.2.fq

[ -s out.gff ]