source: trunk/GDE/SINA/builddir/tests/accuracy.test

Last change on this file was 19170, checked in by westram, 2 years ago
  • sina source
    • unpack + remove tarball
    • no longer ignore sina builddir.
  • Property svn:executable set to *
File size: 2.8 KB
Line 
1#!/bin/bash
2source tests/test_helper.sh
3
4TEST_ARB=$TEST_ARGS
5maketmpdir T
6
7cp $TEST_ARB $T/ref.arb
8
9SINA="./src/sina"
10
11SINA="$SINA -i $T/ref.arb --db $T/ref.arb  --orig-db $T/ref.arb -o /dev/null --show-dist"
12SINA="$SINA --threads 10 --fs-engine pt-server"
13
14begin_test "prealigned"
15capture_stdouterr "$SINA --select-step 250 --prealigned"
16assert_exit_success
17assert_output_contains "align 48 sequences"
18assert_output_contains "avg_sps: 1"
19assert_output_contains "avg_cpm: 0"
20assert_output_contains "avg_idty: 0"
21end_test
22
23
24begin_test "align copy"
25capture_stdouterr "$SINA --select-step 1000"
26assert_exit_success
27assert_output_contains "align 12 sequences"
28assert_output_contains "avg_sps: 1"
29assert_output_contains "avg_cpm: 0"
30assert_output_contains "avg_idty: 1"
31end_test
32
33begin_test "realign"
34capture_stdouterr "$SINA --select-step 250 --realign"
35assert_exit_success
36assert_output_contains "align 48 sequences"
37assert_output_value avg_sps: ">0.996"
38assert_output_value avg_cpm: "<0.0002"
39assert_output_value avg_idty: ">0.96"
40end_test
41
42begin_test "realign/noquery"
43capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out"
44assert_exit_success
45assert_output_contains "align 48 sequences"
46assert_output_value avg_sps: ">0.996"
47assert_output_value avg_cpm: "<0.00025"
48assert_output_value avg_idty: ">0.96"
49end_test
50
51begin_test "realign/noquery k=8"
52capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-kmer-len 8"
53assert_exit_success
54assert_output_contains "align 48 sequences"
55assert_output_value avg_sps: ">0.996"
56assert_output_value avg_cpm: "<0.0002"
57assert_output_value avg_idty: ">0.96"
58end_test
59
60begin_test "realign/noquery nofast"
61capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-kmer-no-fast"
62assert_exit_success
63assert_output_contains "align 48 sequences"
64assert_output_value avg_sps: ">0.996"
65assert_output_value avg_cpm: "<0.00015"
66assert_output_value avg_idty: ">0.96"
67end_test
68
69
70begin_test "realign msc 0.9"
71capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-msc-max 0.9"
72assert_exit_success
73assert_output_contains "align 48 sequences"
74assert_output_value avg_sps: ">0.99"
75assert_output_value avg_cpm: "<0.001"
76assert_output_value avg_idty: ">0.88" "<0.9"
77end_test
78
79begin_test "realign msc 0.8"
80capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-msc-max 0.8"
81assert_exit_success
82assert_output_contains "align 48 sequences"
83assert_output_value avg_sps: ">0.97"
84assert_output_value avg_cpm: "<0.002"
85assert_output_value avg_idty: ">0.78" "<0.8"
86end_test
87
88begin_test "realign msc 0.7"
89capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-msc-max 0.7"
90assert_exit_success
91assert_output_contains "align 48 sequences"
92assert_output_value avg_sps: ">0.95"
93assert_output_value avg_cpm: "<0.01"
94assert_output_value avg_idty: ">0.68" "<0.7"
95end_test
Note: See TracBrowser for help on using the repository browser.