Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 pkg=kallisto
5
6 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
7 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
8 # Double quote below to expand the temporary directory variable now versus
9 # later is on purpose.
10 # shellcheck disable=SC2064
11 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
12 fi
13
14 cp -a /usr/share/doc/${pkg}/test "${AUTOPKGTEST_TMP}"
15
16 cd "${AUTOPKGTEST_TMP}"/test
17
18 # OK
19 kallisto index -i transcripts.kidx transcripts.fasta.gz
20
21 exit 0
22
23 # FIXME: The following command line is wrong but it should not throw Segmentation fault!
24
25 $ LC_ALL=C kallisto quant -i transcripts.kidx -b 30 -o kallisto_out --genomebam --gtf transcripts.gtf.gz transcripts.fasta.gz --chromosomes reads_1.fastq.gz reads_2.fastq.gz
26
27 [quant] fragment length distribution will be estimated from the data
28 [index] k-mer length: 31
29 [index] number of targets: 14
30 [index] number of k-mers: 22,118
31 [index] number of equivalence classes: 20
32 Warning: could not find chromosomes for 117 transcripts
33 [quant] running in paired-end mode
34 [quant] will process pair 1: transcripts.fasta.gz
35 reads_2.fastq.gz
36 [quant] finding pseudoalignments for the reads ...Segmentation fault