@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 +1 -1
- package/src/components/field/composed/FieldGenotypeStr.tsx +1 -1
- package/src/components/field/composed/FieldSpanningReads.tsx +10 -6
- package/src/mocks/GRCh38/vcf/str.db.blob +0 -0
- package/src/mocks/GRCh38/vcf/str.vcf +48 -217
- package/src/types/configCellComposed.d.ts +1 -1
- package/src/utils/config/configCellsComposed.ts +20 -19
- package/tests/utils/config/configCellsComposed.test.ts +54 -31
package/package.json
CHANGED
|
@@ -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 ===
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
13
|
-
|
|
13
|
+
.join("/");
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
return <span>{value()}</span>;
|
|
14
18
|
};
|
|
Binary file
|