Commit f117508
committed
Variant Rank Score Normalization
** Variant Ranking **
Normalize variant rank score by means of max-min normalization.
This is preferable because it makes output values
agnostic to the number of plugins and their scoring
behavior.
Max and min is computed as the total sum of upper and lower
bounds of each plugin.
The VCF attribute 'RankScoreNormalized' (bounded (0, 1))
is added to the scored VCF file.
No changes to existing 'RankScore' behavior, which
is still present in VCF.
** Compound Ranking **
This patch makes CompoundScore class use the additional
RankScoreNormalized VCF field for scoring purposes.
This patch adds a CompoundsNormalized INFO field to VCF,
based on RankScoreNormalized.
* Export RankScore bounds MIN, MAX to VCF file
This is required by CompoundScore because it thresholds and
edits RankScore(Normalized) during the scoring process.
* Configure CompoundScorer to use normalized rank score
in addition to legacy RankScore.
* Apply CompoundScorer custom thresholds normalized
to RankScore Min-Max bounds.
Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>1 parent e880836 commit f117508
File tree
12 files changed
+846
-134
lines changed- docs/commands
- genmod
- commands
- score_variants
- utils
- tests
- score_variants
- utils
12 files changed
+846
-134
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
| |||
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
172 | 183 | | |
173 | | - | |
| 184 | + | |
174 | 185 | | |
175 | 186 | | |
176 | 187 | | |
177 | 188 | | |
178 | 189 | | |
179 | 190 | | |
180 | | - | |
181 | 191 | | |
182 | 192 | | |
| 193 | + | |
| 194 | + | |
183 | 195 | | |
184 | 196 | | |
185 | 197 | | |
186 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
187 | 203 | | |
188 | 204 | | |
189 | 205 | | |
190 | 206 | | |
191 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
192 | 220 | | |
193 | 221 | | |
194 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
0 commit comments