@@ -60,6 +60,7 @@ describe('resolveVACohortAlleleFrequency', () => {
60
60
faf95 : { popmax : 0.123 , popmax_population : 'afr' } ,
61
61
ancestry_groups : [ ] ,
62
62
filters : [ 'AC0' ] ,
63
+ flags : [ 'monoallelic' ] ,
63
64
}
64
65
65
66
const genomeEsDocument = {
@@ -68,7 +69,9 @@ describe('resolveVACohortAlleleFrequency', () => {
68
69
hemizygote_count : 4 ,
69
70
homozygote_count : 5 ,
70
71
faf95 : { popmax : 0.234 , popmax_population : 'eas' } ,
72
+ filters : [ 'AC0' ] ,
71
73
ancestry_groups : [ ] ,
74
+ flags : [ 'monoallelic' ] ,
72
75
}
73
76
74
77
const variantESDocument = {
@@ -78,6 +81,7 @@ describe('resolveVACohortAlleleFrequency', () => {
78
81
genome : genomeEsDocument ,
79
82
joint : { fafmax : { faf95_max : 0.234 , faf95_max_gen_anc : 'amr' } } ,
80
83
coverage : { exome : { mean : 0.345 , over_20 : 0.456 } , genome : { mean : 0.111 , over_20 : 0.222 } } ,
84
+ flags : [ 'lcr' , 'lc_lof' , 'lof_flag' ] ,
81
85
}
82
86
83
87
test ( 'parses a single CohortAlleleFrequency exome correctly' , async ( ) => {
@@ -109,10 +113,10 @@ describe('resolveVACohortAlleleFrequency', () => {
109
113
meanDepth : 0.345 ,
110
114
fractionCoverage20x : 0.456 ,
111
115
qcFilters : [ 'AC0' ] ,
112
- monoallelic : null ,
113
- lowComplexityRegion : null ,
114
- lowConfidenceLossOfFunctionError : null ,
115
- lossOfFunctionWarning : null ,
116
+ monoallelic : true ,
117
+ lowComplexityRegion : true ,
118
+ lowConfidenceLossOfFunctionError : true ,
119
+ lossOfFunctionWarning : true ,
116
120
heterozygousSkewedAlleleCount : null ,
117
121
} ,
118
122
} ,
@@ -149,11 +153,11 @@ describe('resolveVACohortAlleleFrequency', () => {
149
153
qualityMeasures : {
150
154
meanDepth : 0.111 ,
151
155
fractionCoverage20x : 0.222 ,
152
- monoallelic : null ,
153
- qcFilters : null ,
154
- lowComplexityRegion : null ,
155
- lowConfidenceLossOfFunctionError : null ,
156
- lossOfFunctionWarning : null ,
156
+ monoallelic : true ,
157
+ qcFilters : [ 'AC0' ] ,
158
+ lowComplexityRegion : true ,
159
+ lowConfidenceLossOfFunctionError : true ,
160
+ lossOfFunctionWarning : true ,
157
161
heterozygousSkewedAlleleCount : null ,
158
162
} ,
159
163
} ,
0 commit comments