Debian Codegraph @

features/diff_count.feature

raw
1 @diff
2
3 Feature: Variant calling (filters) - diffing nucleotide counts
4
5 Basic filtering happens on the command line with the --filter switch. To
6 support somewhat more advanced features the following features are
7 included.
8
9 When diffing nucleotide counts we want to find out which nucleotide defines
10 the tumor. The difference has to be larger than 0 and the relative difference
11 is the max. When a threshold is set only those nucleotides are included which
12 pass the threshold (i.e., no more than x supporting nucleotides in the
13 reference).
14
15 The advantage is that filtering is possible without actually looking at
16 the rec.alt and rec.ref values, i.e., no assumptions are being made
17 about the underlying nucleotides.
18
19 Scenario: Diffing nucleotide counts
20
21 Given normal and tumor counts [0,25,0,1] and [0,40,0,12]
22 When I look for the difference
23 Then I expect the diff to be [0,15,0,11]
24 And I expect the defining tumor nucleotide to be "T"
25 And I expect the tumor count to be 12
26 When I set an inclusion threshold for the reference
27 Then I expect the diff for threshold 2 to be [0,0,0,11]
28 And the relative diff to be [0,0,0,0.85]
29