@molgenis/vip-report-template 8.2.1 → 8.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molgenis/vip-report-template",
3
- "version": "8.2.1",
3
+ "version": "8.3.0",
4
4
  "description": "Report Template for Variant Call Format (VCF) Report Generator",
5
5
  "license": "LGPL-3.0",
6
6
  "devDependencies": {
@@ -106,6 +106,7 @@ const schemaConfigJsonField: JTDSchemaType<ConfigJsonField> = {
106
106
  name: {
107
107
  enum: [
108
108
  "clinVar",
109
+ "confidenceInterval",
109
110
  "gene",
110
111
  "genotype",
111
112
  "genotype_maternal",
@@ -114,6 +115,7 @@ const schemaConfigJsonField: JTDSchemaType<ConfigJsonField> = {
114
115
  "hpo",
115
116
  "inheritancePattern",
116
117
  "locus",
118
+ "spanningReads",
117
119
  "vipC",
118
120
  "vipCS",
119
121
  "vkgl",
@@ -5,11 +5,14 @@ import { FieldGenotype } from "./FieldGenotype";
5
5
  import { FieldGene } from "./FieldGene";
6
6
  import { ErrorNotification } from "../../ErrorNotification";
7
7
  import { FieldClinVar } from "./FieldClinVar";
8
+ import { FieldConfidenceInterval } from "./FieldConfidenceInterval";
9
+ import { FieldSpanningReads } from "./FieldSpanningReads";
8
10
  import { FieldGnomAd } from "./FieldGnomAd";
9
11
  import { FieldHpo } from "./FieldHpo";
10
12
  import { ConfigCellCustom } from "../../../types/configCells";
11
13
  import {
12
14
  CellValueClinVar,
15
+ CellValueConfidenceInterval,
13
16
  CellValueCustom,
14
17
  CellValueGene,
15
18
  CellValueGenotype,
@@ -17,6 +20,7 @@ import {
17
20
  CellValueHpo,
18
21
  CellValueInheritanceModes,
19
22
  CellValueLocus,
23
+ CellValueSpanningReads,
20
24
  CellValueVipC,
21
25
  CellValueVipCS,
22
26
  CellValueVkgl,
@@ -36,6 +40,9 @@ export const FieldComposed: Component<{
36
40
  <Match when={id() === "clinVar"}>
37
41
  <FieldClinVar value={props.value as CellValueClinVar} />
38
42
  </Match>
43
+ <Match when={id() === "confidenceInterval"}>
44
+ <FieldConfidenceInterval value={props.value as CellValueConfidenceInterval} />
45
+ </Match>
39
46
  <Match when={id() === "gene"}>
40
47
  <FieldGene value={props.value as CellValueGene} />
41
48
  </Match>
@@ -54,6 +61,9 @@ export const FieldComposed: Component<{
54
61
  <Match when={id() === "locus"}>
55
62
  <FieldLocus value={props.value as CellValueLocus} />
56
63
  </Match>
64
+ <Match when={id() === "spanningReads"}>
65
+ <FieldSpanningReads value={props.value as CellValueSpanningReads} />
66
+ </Match>
57
67
  <Match when={id() === "vipC"}>
58
68
  <FieldVipC value={props.value as CellValueVipC} />
59
69
  </Match>
@@ -0,0 +1,14 @@
1
+ import { Component } from "solid-js";
2
+ import { CellValueConfidenceInterval } from "../../../types/configCellComposed";
3
+
4
+ export const FieldConfidenceInterval: Component<{
5
+ value: CellValueConfidenceInterval;
6
+ }> = (props) => {
7
+ return (
8
+ <span>
9
+ {props.value.genotype.a
10
+ .map((allele) => (allele !== null ? props.value.confidenceInterval[allele - 1] : "?"))
11
+ .join("/")}
12
+ </span>
13
+ );
14
+ };
@@ -15,7 +15,9 @@ export const FieldGenotypeStr: Component<{
15
15
  <AlleleStr value={props.value.repeatUnitValue!} />
16
16
  </abbr>
17
17
  </Show>
18
- <span class="ml-1">{`(n=${props.value.repeatCount!})`}</span>
18
+ <span class="ml-1">{`(n=${props.value.genotype.a
19
+ .map((allele) => (allele !== null ? props.value.repeatCount![allele - 1] : "?"))
20
+ .join("/")})`}</span>
19
21
  <Show when={props.value.repeatUnitMatch === false}>
20
22
  <abbr
21
23
  title={"the called repeat unit does not match the repeat unit in the loci bed file"}
@@ -4,7 +4,7 @@ import { FieldString } from "../typed/FieldString";
4
4
  import { CellValueHpo } from "../../../types/configCellComposed";
5
5
 
6
6
  type HpoTerm = {
7
- id: string;
7
+ label: string;
8
8
  href: string;
9
9
  };
10
10
 
@@ -13,7 +13,7 @@ export const FieldHpo: Component<{
13
13
  }> = (props) => {
14
14
  const hpoTerms = (): HpoTerm[] =>
15
15
  props.value.hpos.map((category) => ({
16
- id: category!.value!,
16
+ label: category!.label,
17
17
  href: `https://hpo.jax.org/app/browse/term/${encodeURI(category!.value!)}`,
18
18
  }));
19
19
 
@@ -26,7 +26,7 @@ export const FieldHpo: Component<{
26
26
  <>
27
27
  {i() !== 0 && <span>, </span>}
28
28
  <Anchor href={hpoTerm.href}>
29
- <FieldString value={hpoTerm.id} />
29
+ <FieldString value={hpoTerm.label} />
30
30
  </Anchor>
31
31
  </>
32
32
  )}
@@ -0,0 +1,14 @@
1
+ import { Component } from "solid-js";
2
+ import { CellValueSpanningReads } from "../../../types/configCellComposed";
3
+
4
+ export const FieldSpanningReads: Component<{
5
+ value: CellValueSpanningReads;
6
+ }> = (props) => {
7
+ return (
8
+ <span>
9
+ {props.value.genotype.a
10
+ .map((allele) => (allele !== null ? props.value.spanningReads[allele - 1] : "?"))
11
+ .join("/")}
12
+ </span>
13
+ );
14
+ };
@@ -14,12 +14,11 @@
14
14
  "numberCount": 1,
15
15
  "type": "STRING"
16
16
  },
17
- "ADSP": {
17
+ "RU_SPAN": {
18
18
  "label": "Spanning reads",
19
19
  "description": "Number of spanning reads consistent with the allele",
20
- "numberType": "NUMBER",
21
- "numberCount": 1,
22
- "type": "STRING"
20
+ "numberType": "PER_ALT",
21
+ "type": "INTEGER"
23
22
  },
24
23
  "LC": {
25
24
  "label": "Coverage",
@@ -28,13 +27,6 @@
28
27
  "numberCount": 1,
29
28
  "type": "FLOAT"
30
29
  },
31
- "REPCI": {
32
- "label": "Repeat CI",
33
- "description": "Confidence interval for the number of repeat units spanned by the allele",
34
- "numberType": "NUMBER",
35
- "numberCount": 1,
36
- "type": "STRING"
37
- },
38
30
  "REPCN": {
39
31
  "label": "Repeats",
40
32
  "description": "Number of repeat units spanned by the allele",
@@ -92,7 +84,7 @@
92
84
  },
93
85
  "info": {
94
86
  "n_object0": {
95
- "nestedAttributes" : {
87
+ "nestedAttributes": {
96
88
  "separator": "|"
97
89
  },
98
90
  "nestedFields": {
@@ -115,7 +107,7 @@
115
107
  }
116
108
  },
117
109
  "CSQ": {
118
- "nestedAttributes" : {
110
+ "nestedAttributes": {
119
111
  "prefix": "Consequence annotations from Ensembl VEP. Format: ",
120
112
  "separator": "|"
121
113
  },
@@ -822,6 +814,12 @@
822
814
  "numberCount": 1,
823
815
  "type": "STRING"
824
816
  },
817
+ "RU_CI": {
818
+ "label": "Repeat CI",
819
+ "description": "Confidence interval for the number of repeat units spanned by the allele",
820
+ "numberType": "PER_ALT",
821
+ "type": "STRING"
822
+ },
825
823
  "VIPC_S": {
826
824
  "label": "VIP sample classification",
827
825
  "numberType": "OTHER",
Binary file