@molgenis/vip-report-template 8.3.0 → 8.3.1

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.3.0",
3
+ "version": "8.3.1",
4
4
  "description": "Report Template for Variant Call Format (VCF) Report Generator",
5
5
  "license": "LGPL-3.0",
6
6
  "devDependencies": {
@@ -18,7 +18,7 @@ export const FieldGenotypeStr: Component<{
18
18
  <span class="ml-1">{`(n=${props.value.genotype.a
19
19
  .map((allele) => (allele !== null ? props.value.repeatCount![allele - 1] : "?"))
20
20
  .join("/")})`}</span>
21
- <Show when={props.value.repeatUnitMatch === false}>
21
+ <Show when={props.value.repeatUnitMatch === 0}>
22
22
  <abbr
23
23
  title={"the called repeat unit does not match the repeat unit in the loci bed file"}
24
24
  class="ml-1 is-clickable"
@@ -4,11 +4,15 @@ import { CellValueSpanningReads } from "../../../types/configCellComposed";
4
4
  export const FieldSpanningReads: Component<{
5
5
  value: CellValueSpanningReads;
6
6
  }> = (props) => {
7
- return (
8
- <span>
9
- {props.value.genotype.a
7
+ const value = () => {
8
+ if (props.value.genotype.t === "hom_a" || props.value.genotype.t === "hom_r") {
9
+ return props.value.spanningReads[0];
10
+ } else {
11
+ return props.value.genotype.a
10
12
  .map((allele) => (allele !== null ? props.value.spanningReads[allele - 1] : "?"))
11
- .join("/")}
12
- </span>
13
- );
13
+ .join("/");
14
+ }
15
+ };
16
+
17
+ return <span>{value()}</span>;
14
18
  };
Binary file