source: trunk/GDE/SINA/builddir/tests/accuracy_kmer.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.9 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 $SINA_EXTRA_PARAMS"
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 internal"
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
69begin_test "realign msc 0.9"
70capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-msc-max 0.9"
71assert_exit_success
72assert_output_contains "align 48 sequences"
73assert_output_value avg_sps: ">0.99"
74assert_output_value avg_cpm: "<0.001"
75assert_output_value avg_idty: ">0.88" "<0.9"
76end_test
77
78begin_test "realign msc 0.8"
79capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-msc-max 0.8"
80assert_exit_success
81assert_output_contains "align 48 sequences"
82assert_output_value avg_sps: ">0.97"
83assert_output_value avg_cpm: "<0.002"
84assert_output_value avg_idty: ">0.78" "<0.8"
85end_test
86
87begin_test "realign msc 0.7"
88capture_stdouterr "$SINA --select-step 250 --realign --fs-leave-query-out --fs-msc-max 0.7"
89assert_exit_success
90assert_output_contains "align 48 sequences"
91assert_output_value avg_sps: ">0.95"
92assert_output_value avg_cpm: "<0.01"
93assert_output_value avg_idty: ">0.68" "<0.7"
94end_test
95
96
97
Note: See TracBrowser for help on using the repository browser.