Debian Codegraph @

hmmer/testsuite/i23-bad-fasta.sh

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # Verify that hmmsearch won't accept afa (with gaps) masquerading as FASTA.
4 # (iss#153)
5 #
6 # Usage:
7 # ./i23-bad-fasta.sh <builddir> <srcdir> <tmpfile prefix>
8 #
9 # Example:
10 # ./i23-bad-fasta.sh .. .. foo
11 #
12
13 if testscip-shell system . . test. ! $# -eq 3; then
14 echoscip-shell system . . echo. "Usage: $0 <builddir> <srcdir> <tmpfile prefix>"
15 exit 1
16 fi
17
18 builddir=$1;
19 srcdir=$2;
20 tmppfx=$3;
21
22 hmmsearch=$builddir/src/hmmsearch; if testscip-shell system . . test. ! -x $hmmsearch; then echoscip-shell system . . echo. "FAIL: $hmmsearch not executable"; exit 1; fi
23 hmmfile=$srcdir/testsuite/Caudal_act.hmm
24
25 catscip-shell system . . cat. > $tmppfx.fa <<EOF
26 >badness
27 -MIKQVRPTSPGRRAQTYLKTGN----ESTK---SSRSVRKKLASAVGR-SAGRISVQCR
28 WRGAKKRYRIIDFKR-SKYGIEGTIEQIEYDPNRSCDIALVLYVDGERRYILSPIGLKVG
29 SKVKSG--EGVDILTGNALPLKQIPVGVPVHNLEMYPKAGGKFIRGAGTAAYLTAKEGKY
30 VDIKLPSGEIKKFLGDCYGTIGQVGNEEHKLVSIGKAGRAFHMGSR-PKTRGKARSD-GH
31 PLAGSYSR-RVGR-QPVDKWGNLAKGGKTRR-RKHTDKFIVKSRRS-AK-----------
32 -------MKQIKLNSVNYKKISLIKIGMSQQFADDSRVVPYT------------------
33 -----------GL-----RLVN-AE----DKA---------LFDV---------------
34 EOF
35
36 $hmmsearch $hmmfile $tmppfx.fa > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
37 if testscip-shell system . . test. $? -eq 0; then echoscip-shell system . . echo. "FAIL: failed to fail"; exit 1; fi
38
39 echoscip-shell system . . echo. "ok"
40
41 rmscip-shell system . . rm. $tmppfx.fa
42 exit 0
43
44