@molgenis/vip-report-template 2.7.1 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.scannerwork/report-task.txt +5 -5
- package/.scannerwork/ucfg2/js/_home_travis_build_molgenis_vip_report_template_src_components_Gene_vue_1_1_P1_ENTRY.ucfg +0 -0
- package/.scannerwork/ucfg2/js/_home_travis_build_molgenis_vip_report_template_src_components_RecordTable_vue_1_1_P1_ENTRY.ucfg +0 -0
- package/.scannerwork/ucfg2/js/_home_travis_build_molgenis_vip_report_template_src_globals_utils_ts_1_1_P1_ENTRY.ucfg +0 -0
- package/.scannerwork/ucfg2/js/_home_travis_build_molgenis_vip_report_template_src_store_getters_ts_1_1_P1_ENTRY.ucfg +0 -0
- package/.scannerwork/ucfg2/js/src_components_RecordTable_vue_505_19_FE_15_rec.ucfg +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_515_41_A_15_con.ucfg → src_components_RecordTable_vue_520_41_A_15_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_527_43_A_16_con.ucfg → src_components_RecordTable_vue_532_43_A_16_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_532_41_A_17_con.ucfg → src_components_RecordTable_vue_537_41_A_17_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_536_41_A_18_con.ucfg → src_components_RecordTable_vue_541_41_A_18_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_540_41_A_19_con.ucfg → src_components_RecordTable_vue_545_41_A_19_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_551_41_A_20_con.ucfg → src_components_RecordTable_vue_556_41_A_20_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_555_41_A_21_con.ucfg → src_components_RecordTable_vue_560_41_A_21_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_559_41_A_22_con.ucfg → src_components_RecordTable_vue_564_41_A_22_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_563_41_A_23_con.ucfg → src_components_RecordTable_vue_568_41_A_23_con.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_575_11_FE_16_0.ucfg → src_components_RecordTable_vue_580_11_FE_16_0.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_579_33_FE_17_0.ucfg → src_components_RecordTable_vue_584_33_FE_17_0.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_582_44_FE_18_0.ucfg → src_components_RecordTable_vue_587_44_FE_18_0.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_586_46_FE_19_0.ucfg → src_components_RecordTable_vue_591_46_FE_19_0.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_590_41_FE_20_0.ucfg → src_components_RecordTable_vue_595_41_FE_20_0.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_components_RecordTable_vue_594_40_FE_21_0.ucfg → src_components_RecordTable_vue_599_40_FE_21_0.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_132_1_FD_2_getInfoConsequences.ucfg → src_globals_utils_ts_133_1_FD_2_getInfoConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_232_1_FD_3_hasVepConsequences.ucfg → src_globals_utils_ts_233_1_FD_3_hasVepConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_237_1_FD_4_getVepConsequences.ucfg → src_globals_utils_ts_238_1_FD_4_getVepConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_266_1_FD_5_hasSnpEffConsequences.ucfg → src_globals_utils_ts_267_1_FD_5_hasSnpEffConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_271_1_FD_6_getSnpEffConsequences.ucfg → src_globals_utils_ts_272_1_FD_6_getSnpEffConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_363_1_FD_7_sortConsequences.ucfg → src_globals_utils_ts_364_1_FD_7_sortConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_393_8_FD_8_getConsequences.ucfg → src_globals_utils_ts_394_8_FD_8_getConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_405_1_FD_9_getVepPhenotypesIndex.ucfg → src_globals_utils_ts_406_1_FD_9_getVepPhenotypesIndex.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_421_8_FD_10_getPhenotypesSelector.ucfg → src_globals_utils_ts_422_8_FD_10_getPhenotypesSelector.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_429_1_FD_11_getVepInheritanceModesGeneIndex.ucfg → src_globals_utils_ts_430_1_FD_11_getVepInheritanceModesGeneIndex.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_445_8_FD_12_getInheritanceModesGeneSelector.ucfg → src_globals_utils_ts_446_8_FD_12_getInheritanceModesGeneSelector.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_453_8_FD_13_getVariant.ucfg → src_globals_utils_ts_454_8_FD_13_getVariant.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/src_globals_utils_ts_59_1_FD_0_createConsequence.ucfg +0 -0
- package/.scannerwork/ucfg2/js/{src_globals_utils_ts_92_1_FD_1_createConsequences.ucfg → src_globals_utils_ts_93_1_FD_1_createConsequences.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_97_18_A_81_sta.ucfg → src_store_getters_ts_100_5_A_81_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_97_36_A_82_rec.ucfg → src_store_getters_ts_101_5_A_82_rec.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_125_24_A_83_sta.ucfg → src_store_getters_ts_129_24_A_83_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_137_46_A_84_ite.ucfg → src_store_getters_ts_141_46_A_84_ite.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_146_31_A_85_sta.ucfg → src_store_getters_ts_150_31_A_85_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_158_64_A_86_ite.ucfg → src_store_getters_ts_162_64_A_86_ite.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_167_32_A_87_sta.ucfg → src_store_getters_ts_171_32_A_87_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_180_27_A_88_sta.ucfg → src_store_getters_ts_184_27_A_88_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_193_26_A_89_sta.ucfg → src_store_getters_ts_197_26_A_89_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_23_18_A_70_sta.ucfg → src_store_getters_ts_24_5_A_70_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_23_36_A_71_id.ucfg → src_store_getters_ts_25_5_A_71_id.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_27_37_A_72_sam.ucfg → src_store_getters_ts_29_39_A_72_sam.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_29_19_A_73_sta.ucfg → src_store_getters_ts_31_19_A_73_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_40_37_A_74_sam.ucfg → src_store_getters_ts_42_37_A_74_sam.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_42_19_A_75_sta.ucfg → src_store_getters_ts_44_19_A_75_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_53_37_A_76_sam.ucfg → src_store_getters_ts_55_37_A_76_sam.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_55_20_A_77_sta.ucfg → src_store_getters_ts_57_20_A_77_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_85_14_A_78_sta.ucfg → src_store_getters_ts_87_14_A_78_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_88_20_A_79_sta.ucfg → src_store_getters_ts_90_20_A_79_sta.ucfg} +0 -0
- package/.scannerwork/ucfg2/js/{src_store_getters_ts_94_24_A_80_sta.ucfg → src_store_getters_ts_96_24_A_80_sta.ucfg} +0 -0
- package/package.json +1 -1
- package/src/components/Gene.vue +5 -3
- package/src/components/RecordTable.vue +12 -7
- package/src/globals/utils.ts +2 -1
- package/src/store/getters.ts +35 -31
- package/tests/unit/store/getters.spec.ts +1 -1
- package/tests/unit/utils/treeDrawer.spec.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
organization=molgenis
|
|
2
2
|
projectKey=molgenis_vip-report-template
|
|
3
3
|
serverUrl=https://sonarcloud.io
|
|
4
|
-
serverVersion=8.0.0.
|
|
5
|
-
branch=v2.7.
|
|
6
|
-
dashboardUrl=https://sonarcloud.io/dashboard?id=molgenis_vip-report-template&branch=v2.7.
|
|
7
|
-
ceTaskId=
|
|
8
|
-
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=
|
|
4
|
+
serverVersion=8.0.0.25242
|
|
5
|
+
branch=v2.7.2
|
|
6
|
+
dashboardUrl=https://sonarcloud.io/dashboard?id=molgenis_vip-report-template&branch=v2.7.2&resolved=false
|
|
7
|
+
ceTaskId=AX1_0IyO7H9iSdhZGXlC
|
|
8
|
+
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AX1_0IyO7H9iSdhZGXlC
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/src/components/Gene.vue
CHANGED
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
:href="'https://www.omim.org/search?search=' + encodeURIComponent(value.symbol) + '&field=approved_gene_symbol'"
|
|
5
5
|
:text="value.symbol"
|
|
6
6
|
/>
|
|
7
|
-
<b-button
|
|
7
|
+
<b-button
|
|
8
|
+
pill
|
|
8
9
|
v-if="value.incompletePenetrance"
|
|
9
10
|
size="sm"
|
|
10
11
|
variant="info"
|
|
11
|
-
|
|
12
|
+
class="ml-2 p-0"
|
|
12
13
|
v-b-tooltip.click
|
|
13
14
|
:title="$t('incompletePenetrance')"
|
|
14
|
-
>
|
|
15
|
+
>
|
|
16
|
+
<sup>IP</sup>
|
|
15
17
|
</b-button>
|
|
16
18
|
</span>
|
|
17
19
|
</template>
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
<Genotype
|
|
50
50
|
:genotype="data.item.s[sample.index].GT"
|
|
51
51
|
:alleles="[data.item.r].concat(data.item.a)"
|
|
52
|
-
:readDepth="data.item.s[sample.index].
|
|
53
|
-
:allelicDepth="data.item.s[sample.index].
|
|
52
|
+
:readDepth="data.item.s[sample.index].DP"
|
|
53
|
+
:allelicDepth="data.item.s[sample.index].AD"
|
|
54
54
|
/>
|
|
55
55
|
</template>
|
|
56
56
|
<template v-slot:cell(father)="data">
|
|
57
57
|
<Genotype
|
|
58
58
|
:genotype="data.item.s[samplePaternal.index].GT"
|
|
59
59
|
:alleles="[data.item.r].concat(data.item.a)"
|
|
60
|
-
:readDepth="data.item.s[samplePaternal.index].
|
|
61
|
-
:allelicDepth="data.item.s[samplePaternal.index].
|
|
60
|
+
:readDepth="data.item.s[samplePaternal.index].DP"
|
|
61
|
+
:allelicDepth="data.item.s[samplePaternal.index].AD"
|
|
62
62
|
/>
|
|
63
63
|
</template>
|
|
64
64
|
<template v-slot:cell(mother)="data">
|
|
65
65
|
<Genotype
|
|
66
66
|
:genotype="data.item.s[sampleMaternal.index].GT"
|
|
67
67
|
:alleles="[data.item.r].concat(data.item.a)"
|
|
68
|
-
:readDepth="data.item.s[sampleMaternal.index].
|
|
69
|
-
:allelicDepth="data.item.s[sampleMaternal.index].
|
|
68
|
+
:readDepth="data.item.s[sampleMaternal.index].DP"
|
|
69
|
+
:allelicDepth="data.item.s[sampleMaternal.index].AD"
|
|
70
70
|
/>
|
|
71
71
|
</template>
|
|
72
72
|
<template v-slot:cell(expand)="data">
|
|
@@ -511,7 +511,12 @@ export default Vue.extend({
|
|
|
511
511
|
items: consequences.items.map((consequence) => consequence.effect)
|
|
512
512
|
};
|
|
513
513
|
row.gene = {
|
|
514
|
-
metadata: {
|
|
514
|
+
metadata: {
|
|
515
|
+
id: 'GeneObject',
|
|
516
|
+
type: 'Other',
|
|
517
|
+
number: { type: 'NUMBER', count: 1 },
|
|
518
|
+
description: 'GeneObject'
|
|
519
|
+
},
|
|
515
520
|
items: consequences.items.map((consequence) =>
|
|
516
521
|
consequence.symbol !== null
|
|
517
522
|
? {
|
package/src/globals/utils.ts
CHANGED
|
@@ -75,7 +75,8 @@ function createConsequence(
|
|
|
75
75
|
return {
|
|
76
76
|
effect: effectIndex !== undefined ? (info[effectIndex] as string[]) : [],
|
|
77
77
|
symbol: symbolIndex !== undefined ? (info[symbolIndex] as string | null) : null,
|
|
78
|
-
incompletePenetrance:
|
|
78
|
+
incompletePenetrance:
|
|
79
|
+
incompletePenetranceIndex !== undefined ? (info[incompletePenetranceIndex] as boolean) : false,
|
|
79
80
|
inheritance: inheritanceIndex !== undefined ? (info[inheritanceIndex] as string[]) : [],
|
|
80
81
|
hgvsC: hgvsCIndex !== undefined ? (info[hgvsCIndex] as string | null) : null,
|
|
81
82
|
hgvsP: hgvsPIndex !== undefined ? (info[hgvsPIndex] as string | null) : null,
|
package/src/store/getters.ts
CHANGED
|
@@ -20,12 +20,14 @@ export default {
|
|
|
20
20
|
return 0;
|
|
21
21
|
});
|
|
22
22
|
},
|
|
23
|
-
getSampleById:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
getSampleById:
|
|
24
|
+
(state: State) =>
|
|
25
|
+
(id: string): Api.Sample | null => {
|
|
26
|
+
if (state.samples === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return state.samples.items.find((sample) => sample.person.individualId === id) || null;
|
|
30
|
+
},
|
|
29
31
|
sampleMaternal: (state: State): Api.Sample | null => {
|
|
30
32
|
if (state.selectedSample === null) {
|
|
31
33
|
return null;
|
|
@@ -94,31 +96,33 @@ export default {
|
|
|
94
96
|
isAnnotationEnabled: (state: State): boolean => {
|
|
95
97
|
return state.annotations !== null;
|
|
96
98
|
},
|
|
97
|
-
getAnnotation:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
getAnnotation:
|
|
100
|
+
(state: State) =>
|
|
101
|
+
(record: Vcf.Record): Annotation => {
|
|
102
|
+
if (state.annotations === null) {
|
|
103
|
+
throw 'Annotations disabled';
|
|
104
|
+
}
|
|
105
|
+
if (state.selectedSample == null) {
|
|
106
|
+
throw 'No sample selected';
|
|
107
|
+
}
|
|
104
108
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
109
|
+
const sampleId = state.selectedSample.person.individualId;
|
|
110
|
+
const key = `${sampleId}_${record.c}_${record.p}_${record.r}_${record.a.join(',')}`;
|
|
111
|
+
let annotation = state.annotations[key];
|
|
112
|
+
if (annotation === undefined) {
|
|
113
|
+
annotation = {
|
|
114
|
+
sampleId: sampleId,
|
|
115
|
+
chr: record.c,
|
|
116
|
+
pos: record.p,
|
|
117
|
+
ref: record.r,
|
|
118
|
+
alt: record.a,
|
|
119
|
+
geneMatch: null,
|
|
120
|
+
class: null,
|
|
121
|
+
txt: null
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
return annotation;
|
|
125
|
+
},
|
|
122
126
|
/**
|
|
123
127
|
* Returns whether records contain mvl annotations.
|
|
124
128
|
*/
|
|
@@ -200,4 +204,4 @@ export default {
|
|
|
200
204
|
}
|
|
201
205
|
return hasReadDepth;
|
|
202
206
|
}
|
|
203
|
-
};
|
|
207
|
+
};
|
|
@@ -517,7 +517,7 @@ test('whether records contain MVL annotations - no meta', () => {
|
|
|
517
517
|
|
|
518
518
|
test('whether records contain MVL annotations - no info meta', () => {
|
|
519
519
|
const recordsMetadata = mock<Vcf.Metadata>();
|
|
520
|
-
recordsMetadata.info = {
|
|
520
|
+
recordsMetadata.info = {};
|
|
521
521
|
|
|
522
522
|
const metadata = mock<Api.Metadata>();
|
|
523
523
|
metadata.records = recordsMetadata;
|