Debian Codegraph @

easel/testsuite/i4-alimanip-sindi.sh

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # Verify that esl-alimanip --sindi generates a correctly annotated file.
4 #
5 # Usage:
6 # ./i4-alimanip-sindi.sh <builddir> <srcdir> <tmpfile_prefix>
7 #
8 # Example:
9 # ./i4-alimanip-sindi.sh .. .. foo
10 #
11 # [xref SRE 2023/0528-esl-alimanip-bug]
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
23 alimanip=$builddir/miniapps/esl-alimanip; if testscip-shell system . . test. ! -x $alimanip; then echoscip-shell system . . echo. "FAIL: $alimanip not executable"; exit 1; fi
24 alistat=$builddir/miniapps/esl-alistat; if testscip-shell system . . test. ! -x $alistat; then echoscip-shell system . . echo. "FAIL: $alistat not executable"; exit 1; fi
25
26 catscip-shell system . . cat. > $tmppfx.sto <<EOF
27 # STOCKHOLM 1.0
28
29 tRNA1 GCGGAUUUAGCUCAGUUGGG-AGAGCGCCAGACUGAAGAUCUGGAGGUCCUGUGUUCGAUCCACAGAAUUCGCA
30 #=GR tRNA1 SS <<<<<<<..<<<<.........>>>>.<<<<<.......>>>>>.....<<<<<.......>>>>>>>>>>>>.
31 tRNA2 UCCGAUAUAGUGUAAC-GGCUAUCACAUCACGCUUUCACCGUGGAGA-CCGGGGUUCGACUCCCCGUAUCGGAG
32 #=GR tRNA2 SS <<<<<<<..<<<<.........>>>>.<<<<<.......>>>>>.....<<<<<.......>>>>>>>>>>>>.
33 tRNA3 UCCGUGAUAGUUUAAU-GGUCAGAAUGGGCGCUUGUCGCGUGCCAGA-UCGGGGUUCAAUUCCCCGUCGCGGAG
34 #=GR tRNA3 SS <<<<<<<..<<<<.........>>>>.<<<<<.......>>>>>.....<<<<<.......>>>>>>>>>>>>.
35 tRNA4 GCUCGUAUGGCGCAGU-GGU-AGCGCAGCAGAUUGCAAAUCUGUUGGUCCUUAGUUCGAUCCUGAGUGCGAGCU
36 #=GR tRNA4 SS <<<<<<<..<<<<.........>>>>.<<<<<.......>>>>>.....<<<<<.......>>>>>>>>>>>>.
37 tRNA5 GGGCACAUGGCGCAGUUGGU-AGCGCGCUUCCCUUGCAAGGAAGAGGUCAUCGGUUCGAUUCCGGUUGCGUCCA
38 #=GR tRNA5 SS <<<<<<<..<<<<.........>>>>.<<<<<.......>>>>>.....<<<<<.......>>>>>>>>>>>>.
39 #=GC SS_cons <<<<<<<..<<<<.........>>>>.<<<<<.......>>>>>.....<<<<<.......>>>>>>>>>>>>.
40 //
41 EOF
42
43 $alimanip --sindi $tmppfx.sto > $tmppfx.new.sto 2>&1
44 if testscip-shell system . . test. $? -ne 0; then echoscip-shell system . . echo. "FAIL: esl-alimanip returned nonzero"; exit 1; fi
45
46 $alistat $tmppfx.new.sto > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
47 if testscip-shell system . . test. $? -ne 0; then echoscip-shell system . . echo. "FAIL: esl-alistat returned nonzero, esl-alimanip created bad MSA"; exit 1; fi
48
49 echoscip-shell system . . echo. "ok"
50
51 rmscip-shell system . . rm. $tmppfx.sto $tmppfx.new.sto
52 exit 0