Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 pkg=scythe
5 CUR_DIR=`pwd`
6
7 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
8 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
9 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
10 fi
11
12 cp /usr/share/doc/${pkg}/* -a "${AUTOPKGTEST_TMP}"
13 cp ${CUR_DIR}/testing/reads.fastq -a "${AUTOPKGTEST_TMP}"
14
15 cd "${AUTOPKGTEST_TMP}"
16 gunzip -r *
17
18 contam_rate=0.5
19 mkdir -p scythe/results/$contam_rate
20 ## scythe trimming - multiple priors for 40% contamination
21 i=1
22 for prior in 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95
23 do
24 for rep in 01 02 03 04 05 06 07 08 09 10
25 do
26 echo "Test $i"
27 echo "Testing with prior:$prior and rep:$rep"
28 scythe -n 0 -p $prior -a illumina_adapters.fa reads.fastq > scythe/results/$contam_rate/trimmed-$rep-$prior.fastq 2> /dev/null
29 [ -s scythe/results/$contam_rate/trimmed-$rep-$prior.fastq ]
30 echo "PASS"
31 ((i++))
32 done
33 done
34