@molgenis/vip-report-template 6.2.0 → 7.0.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/.nvmrc +1 -1
- package/.travis.yml +8 -8
- package/README.md +411 -1
- package/eslint.config.mjs +11 -0
- package/package.json +40 -35
- package/scripts/deploy_npm_registry.sh +5 -0
- package/src/App.tsx +30 -24
- package/src/assets/sass/main.scss +12 -4
- package/src/components/Allele.tsx +95 -0
- package/src/components/Anchor.tsx +1 -1
- package/src/components/Breadcrumb.tsx +6 -4
- package/src/components/DatasetDropdown.tsx +12 -25
- package/src/components/ErrorNotification.tsx +9 -0
- package/src/components/GenomeBrowser.tsx +40 -23
- package/src/components/HpoTerm.tsx +1 -1
- package/src/components/{record/Pager.tsx → Pager.tsx} +21 -14
- package/src/components/RecordsPerPage.tsx +9 -7
- package/src/components/RecordsTable.tsx +130 -0
- package/src/components/SampleTable.tsx +70 -98
- package/src/components/SearchBox.tsx +8 -2
- package/src/components/Sort.tsx +28 -25
- package/src/components/Table.tsx +16 -0
- package/src/components/Tooltip.tsx +20 -0
- package/src/components/VariantBreadcrumb.tsx +54 -0
- package/src/components/VariantConsequenceContainer.tsx +100 -0
- package/src/components/VariantConsequenceTable.tsx +58 -0
- package/src/components/VariantContainer.tsx +71 -0
- package/src/components/VariantFilters.tsx +27 -0
- package/src/components/VariantGenotypeTable.tsx +44 -0
- package/src/components/VariantInfoTable.tsx +24 -33
- package/src/components/VariantResults.tsx +103 -0
- package/src/components/VariantTable.tsx +62 -66
- package/src/components/VariantTypeSelect.tsx +34 -0
- package/src/components/VariantsContainer.tsx +150 -0
- package/src/components/VariantsContainerHeader.tsx +70 -0
- package/src/components/field/Field.tsx +80 -0
- package/src/components/field/FieldAlt.tsx +19 -0
- package/src/components/field/FieldChrom.tsx +6 -0
- package/src/components/{record/Id.tsx → field/FieldFilter.tsx} +2 -1
- package/src/components/field/FieldFormat.tsx +10 -0
- package/src/components/{record/Filter.tsx → field/FieldId.tsx} +1 -1
- package/src/components/field/FieldPos.tsx +6 -0
- package/src/components/field/FieldQual.tsx +6 -0
- package/src/components/field/FieldRef.tsx +8 -0
- package/src/components/field/composed/FieldClinVar.tsx +72 -0
- package/src/components/field/composed/FieldComposed.tsx +68 -0
- package/src/components/field/composed/FieldGene.tsx +39 -0
- package/src/components/field/composed/FieldGenotype.tsx +35 -0
- package/src/components/{record/format/GenotypeField.tsx → field/composed/FieldGenotypeSnvSv.tsx} +20 -16
- package/src/components/field/composed/FieldGenotypeStr.tsx +31 -0
- package/src/components/field/composed/FieldGnomAd.tsx +58 -0
- package/src/components/field/composed/FieldHpo.tsx +50 -0
- package/src/components/field/composed/FieldInheritanceModes.tsx +32 -0
- package/src/components/field/composed/FieldLocus.tsx +18 -0
- package/src/components/field/composed/FieldVipC.tsx +25 -0
- package/src/components/field/composed/FieldVipCS.tsx +15 -0
- package/src/components/field/composed/FieldVkgl.tsx +37 -0
- package/src/components/field/genotype/FieldGenotype.tsx +19 -0
- package/src/components/field/genotype/FieldGenotypeType.tsx +9 -0
- package/src/components/field/info/FieldConsequence.tsx +15 -0
- package/src/components/{record/info/Hgvs.tsx → field/info/FieldHgvs.tsx} +4 -6
- package/src/components/field/info/FieldInfo.tsx +27 -0
- package/src/components/{record/info/PubMed.tsx → field/info/FieldPubMed.tsx} +4 -7
- package/src/components/field/typed/FieldCategorical.tsx +17 -0
- package/src/components/{record/field/FieldValueCharacter.tsx → field/typed/FieldCharacter.tsx} +3 -2
- package/src/components/{record/field/FieldValueFlag.tsx → field/typed/FieldFlag.tsx} +3 -2
- package/src/components/{record/field/FieldValueFloat.tsx → field/typed/FieldFloat.tsx} +3 -2
- package/src/components/{record/field/FieldValueInteger.tsx → field/typed/FieldInteger.tsx} +3 -2
- package/src/components/{record/field/FieldValueString.tsx → field/typed/FieldString.tsx} +3 -2
- package/src/components/field/typed/FieldTyped.tsx +20 -0
- package/src/components/field/typed/FieldTypedItem.tsx +49 -0
- package/src/components/field/typed/FieldTypedMultiple.tsx +21 -0
- package/src/components/filter/Filter.tsx +56 -48
- package/src/components/filter/FilterWrapper.scss +23 -0
- package/src/components/filter/FilterWrapper.tsx +63 -0
- package/src/components/filter/composed/FilterAllelicImbalance.tsx +26 -0
- package/src/components/filter/composed/FilterComposed.tsx +92 -0
- package/src/components/filter/composed/FilterDeNovo.tsx +35 -0
- package/src/components/filter/composed/FilterHpo.tsx +16 -0
- package/src/components/filter/composed/FilterInheritance.tsx +42 -0
- package/src/components/filter/composed/FilterLocus.tsx +75 -0
- package/src/components/filter/composed/FilterVipC.tsx +16 -0
- package/src/components/filter/composed/FilterVipCS.tsx +16 -0
- package/src/components/filter/fixed/FilterAlt.tsx +20 -0
- package/src/components/filter/fixed/FilterChrom.tsx +22 -0
- package/src/components/filter/fixed/FilterFilter.tsx +20 -0
- package/src/components/filter/fixed/FilterFixed.tsx +96 -0
- package/src/components/filter/fixed/FilterId.tsx +20 -0
- package/src/components/filter/fixed/FilterPos.tsx +22 -0
- package/src/components/filter/fixed/FilterQual.tsx +21 -0
- package/src/components/filter/fixed/FilterRef.tsx +22 -0
- package/src/components/filter/typed/FilterCategorical.tsx +119 -0
- package/src/components/filter/typed/FilterFlag.tsx +23 -0
- package/src/components/filter/typed/FilterInterval.tsx +72 -0
- package/src/components/filter/typed/FilterString.tsx +43 -0
- package/src/components/filter/typed/FilterTyped.tsx +56 -0
- package/src/components/form/ButtonApply.tsx +11 -0
- package/src/components/form/ButtonDownload.tsx +11 -0
- package/src/components/form/ButtonReset.tsx +9 -0
- package/src/components/{Checkbox.tsx → form/Checkbox.tsx} +4 -9
- package/src/components/form/Input.tsx +19 -0
- package/src/components/form/Select.scss +7 -0
- package/src/components/form/Select.tsx +34 -0
- package/src/components/tree/DecisionTreeBoolMultiQuery.tsx +1 -1
- package/src/components/tree/DecisionTreeBoolQuery.tsx +1 -1
- package/src/components/tree/DecisionTreeNode.tsx +41 -39
- package/src/components/tree/DecisionTreeNodeBool.tsx +1 -1
- package/src/components/tree/DecisionTreeNodeBoolMulti.tsx +1 -1
- package/src/components/tree/DecisionTreeNodeCategorical.tsx +1 -1
- package/src/components/tree/DecisionTreeNodeExists.tsx +1 -1
- package/src/components/tree/DecisionTreeNodeLeaf.tsx +1 -1
- package/src/components/tree/DecisionTreeOutcomeNode.tsx +1 -1
- package/src/components/tree/DecisionTreePath.tsx +1 -1
- package/src/igv.d.ts +2 -1
- package/src/index.tsx +48 -19
- package/src/mocks/GRCh37/decisionTree.json +23 -22
- package/src/mocks/GRCh37/field_metadata.json +435 -95
- package/src/mocks/GRCh37/sampleTree.json +21 -1
- package/src/mocks/GRCh37/static.ts +62 -134
- package/src/mocks/GRCh37/vcf/family.vcf.blob +9 -3
- package/src/mocks/GRCh38/decisionTree.json +52 -33
- package/src/mocks/GRCh38/decisionTreeStr.json +572 -0
- package/src/mocks/GRCh38/fasta/chr1_149380406-149403321.fasta.gz.blob +0 -0
- package/src/mocks/GRCh38/field_metadata.json +435 -95
- package/src/mocks/GRCh38/sampleTree.json +175 -0
- package/src/mocks/GRCh38/static.ts +101 -42
- package/src/mocks/GRCh38/str.cram.blob +0 -0
- package/src/mocks/GRCh38/str.cram.crai.blob +0 -0
- package/src/mocks/GRCh38/vcf/family.vcf.blob +25 -24
- package/src/mocks/GRCh38/vcf/no_vep.vcf.blob +29 -28
- package/src/mocks/GRCh38/vcf/samples_0.vcf.blob +28 -27
- package/src/mocks/GRCh38/vcf/samples_1.vcf.blob +29 -28
- package/src/mocks/GRCh38/vcf/samples_100.vcf.blob +28 -27
- package/src/mocks/GRCh38/vcf/str.vcf.blob +321 -0
- package/src/mocks/MockApiClient.ts +339 -332
- package/src/mocks/config_cram.json +701 -0
- package/src/mocks/config_vcf.json +699 -0
- package/src/store/app.ts +30 -0
- package/src/store/index.tsx +3 -168
- package/src/store/variants.ts +182 -0
- package/src/types/config.d.ts +190 -0
- package/src/types/configCellComposed.d.ts +86 -0
- package/src/types/configCells.d.ts +129 -0
- package/src/types/configFilter.d.ts +80 -0
- package/src/types/configFilterComposed.d.ts +60 -0
- package/src/types/configSort.d.ts +13 -0
- package/src/types/filter.d.ts +17 -0
- package/src/types/store.d.ts +34 -0
- package/src/utils/api.ts +281 -0
- package/src/utils/config/config.ts +182 -0
- package/src/utils/config/configCells.ts +74 -0
- package/src/utils/config/configCellsComposed.ts +508 -0
- package/src/utils/config/configCellsField.ts +61 -0
- package/src/utils/config/configCellsFixed.ts +126 -0
- package/src/utils/config/configFilters.ts +46 -0
- package/src/utils/config/configFiltersComposed.ts +208 -0
- package/src/utils/config/configFiltersField.ts +49 -0
- package/src/utils/config/configFiltersFixed.ts +106 -0
- package/src/utils/config/configSorts.ts +44 -0
- package/src/utils/config/configValidator.ts +380 -0
- package/src/utils/config/configVip.ts +25 -0
- package/src/utils/csq.ts +115 -0
- package/src/utils/decisionTree.ts +45 -0
- package/src/utils/download.ts +30 -0
- package/src/utils/error.ts +69 -0
- package/src/utils/query/query.ts +55 -0
- package/src/utils/query/queryFilter.ts +132 -0
- package/src/utils/query/queryFilterComposed.ts +247 -0
- package/src/utils/query/queryFilterField.ts +75 -0
- package/src/utils/query/queryFilterFixed.ts +44 -0
- package/src/utils/query/querySample.ts +18 -0
- package/src/utils/query/queryVariantType.ts +76 -0
- package/src/utils/query/selector.ts +41 -0
- package/src/utils/{sortUtils.ts → query/sort.ts} +32 -11
- package/src/utils/sample.ts +19 -35
- package/src/utils/utils.ts +66 -2
- package/src/utils/variantType.ts +43 -0
- package/src/utils/vcf.ts +352 -0
- package/src/views/Help.tsx +109 -114
- package/src/views/Home.tsx +3 -2
- package/src/views/Sample.tsx +12 -7
- package/src/views/SampleVariant.tsx +23 -112
- package/src/views/SampleVariantConsequence.tsx +54 -144
- package/src/views/SampleVariants.tsx +33 -445
- package/src/views/SampleVariantsRedirect.tsx +20 -0
- package/src/views/Samples.tsx +7 -10
- package/src/views/Variant.tsx +31 -61
- package/src/views/VariantConsequence.tsx +42 -72
- package/src/views/Variants.tsx +29 -138
- package/src/views/VariantsRedirect.tsx +25 -0
- package/src/views/data/data.tsx +32 -6
- package/tests/store/variants.test.ts +122 -0
- package/tests/utils/config/config.test.ts +167 -0
- package/tests/utils/config/configCells.test.ts +86 -0
- package/tests/utils/config/configCellsComposed.test.ts +1163 -0
- package/tests/utils/config/configCellsField.test.ts +164 -0
- package/tests/utils/config/configCellsFixed.test.ts +99 -0
- package/tests/utils/config/configFilters.test.ts +80 -0
- package/tests/utils/config/configFiltersComposed.test.ts +504 -0
- package/tests/utils/config/configFiltersField.test.ts +140 -0
- package/tests/utils/config/configFiltersFixed.test.ts +81 -0
- package/tests/utils/config/configSorts.test.ts +55 -0
- package/tests/utils/config/configValidator.test.ts +56 -0
- package/tests/utils/config/configVip.test.ts +53 -0
- package/tests/utils/decisionTree.test.ts +71 -0
- package/tests/utils/download.test.ts +20 -0
- package/tests/utils/query/query.test.ts +84 -0
- package/tests/utils/query/queryFilter.test.ts +243 -0
- package/tests/utils/query/queryFilterComposed.test.ts +301 -0
- package/tests/utils/query/queryFilterField.test.ts +75 -0
- package/tests/utils/query/queryFilterFixed.test.ts +86 -0
- package/tests/utils/query/querySample.test.ts +45 -0
- package/tests/utils/query/queryVariantType.test.ts +56 -0
- package/{src/__tests__/sortUtils.test.ts → tests/utils/query/sort.test.ts} +3 -4
- package/tests/utils/sample.test.ts +259 -0
- package/tests/utils/utils.test.ts +120 -0
- package/tests/utils/variantType.test.ts +48 -0
- package/tests/utils/vcf.test.ts +649 -0
- package/tsconfig.json +6 -2
- package/vite.config.mts +20 -3
- package/.eslintignore +0 -4
- package/.eslintrc.js +0 -23
- package/src/Api.ts +0 -12
- package/src/__tests__/decisionTreeUtils.test.ts +0 -75
- package/src/__tests__/field.test.ts +0 -107
- package/src/__tests__/query.test.ts +0 -188
- package/src/__tests__/sample.test.ts +0 -184
- package/src/__tests__/utils.test.ts +0 -24
- package/src/__tests__/viewUtils.test.ts +0 -125
- package/src/components/ConsequenceTable.tsx +0 -45
- package/src/components/Error.tsx +0 -9
- package/src/components/FieldHeader.tsx +0 -26
- package/src/components/InfoCollapsablePane.tsx +0 -90
- package/src/components/VariantInfoNestedTable.tsx +0 -127
- package/src/components/VariantSampleTable.tsx +0 -58
- package/src/components/VariantsSampleTable.tsx +0 -184
- package/src/components/VariantsTable.tsx +0 -125
- package/src/components/filter/FilterAllelicBalance.tsx +0 -81
- package/src/components/filter/FilterCategorical.tsx +0 -81
- package/src/components/filter/FilterClinVar.tsx +0 -21
- package/src/components/filter/FilterGene.tsx +0 -34
- package/src/components/filter/FilterHpo.tsx +0 -161
- package/src/components/filter/FilterInheritance.tsx +0 -162
- package/src/components/filter/FilterIntegerGq.tsx +0 -47
- package/src/components/filter/FilterVI.tsx +0 -68
- package/src/components/filter/FilterVariantType.tsx +0 -146
- package/src/components/filter/Filters.tsx +0 -29
- package/src/components/filter/InfoFilter.tsx +0 -39
- package/src/components/filter/InfoFilters.tsx +0 -35
- package/src/components/filter/SampleFilters.tsx +0 -93
- package/src/components/filter/SamplesFilters.tsx +0 -33
- package/src/components/record/Allele.tsx +0 -38
- package/src/components/record/AlleleBreakend.tsx +0 -5
- package/src/components/record/AlleleMissing.tsx +0 -5
- package/src/components/record/AlleleNucs.tsx +0 -49
- package/src/components/record/AlleleSymbolic.tsx +0 -5
- package/src/components/record/Alt.tsx +0 -17
- package/src/components/record/Chrom.tsx +0 -5
- package/src/components/record/Format.tsx +0 -40
- package/src/components/record/Info.tsx +0 -55
- package/src/components/record/Pos.tsx +0 -5
- package/src/components/record/Qual.tsx +0 -5
- package/src/components/record/RecordDownload.tsx +0 -66
- package/src/components/record/Ref.tsx +0 -6
- package/src/components/record/field/Field.tsx +0 -36
- package/src/components/record/field/FieldMultipleValue.tsx +0 -22
- package/src/components/record/field/FieldSingleValue.tsx +0 -35
- package/src/components/record/info/ClinVar.tsx +0 -81
- package/src/components/record/info/Consequence.tsx +0 -18
- package/src/components/record/info/Gene.tsx +0 -56
- package/src/components/record/info/GnomAD.tsx +0 -54
- package/src/components/record/info/Hpo.tsx +0 -52
- package/src/components/record/info/InheritanceModes.tsx +0 -22
- package/src/components/record/info/VipC.tsx +0 -23
- package/src/components/record/info/Vkgl.tsx +0 -42
- package/src/mocks/GRCh37/vcf/no_vep.vcf.blob +0 -61
- package/src/mocks/GRCh37/vcf/samples_0.vcf.blob +0 -93
- package/src/mocks/GRCh37/vcf/samples_1.vcf.blob +0 -93
- package/src/mocks/GRCh37/vcf/samples_100.vcf.blob +0 -93
- package/src/utils/ApiUtils.ts +0 -263
- package/src/utils/csqUtils.ts +0 -27
- package/src/utils/decisionTreeUtils.ts +0 -31
- package/src/utils/field.ts +0 -49
- package/src/utils/query.ts +0 -154
- package/src/utils/viewUtils.ts +0 -32
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rootNode": "gt",
|
|
3
|
+
"nodes": {
|
|
4
|
+
"gt": {
|
|
5
|
+
"label": "Genotype",
|
|
6
|
+
"description": "Genotype",
|
|
7
|
+
"type": "CATEGORICAL",
|
|
8
|
+
"field": "FORMAT/GENOTYPE/TYPE",
|
|
9
|
+
"outcomeMap": {
|
|
10
|
+
"HET": {
|
|
11
|
+
"nextNode": "gq"
|
|
12
|
+
},
|
|
13
|
+
"HOM_REF": {
|
|
14
|
+
"nextNode": "exit_u3"
|
|
15
|
+
},
|
|
16
|
+
"HOM_VAR": {
|
|
17
|
+
"nextNode": "gq"
|
|
18
|
+
},
|
|
19
|
+
"MIXED": {
|
|
20
|
+
"nextNode": "gq"
|
|
21
|
+
},
|
|
22
|
+
"NO_CALL": {
|
|
23
|
+
"nextNode": "exit_u3"
|
|
24
|
+
},
|
|
25
|
+
"UNAVAILABLE": {
|
|
26
|
+
"nextNode": "exit_u3"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"outcomeMissing": {
|
|
30
|
+
"nextNode": "gq"
|
|
31
|
+
},
|
|
32
|
+
"outcomeDefault": {
|
|
33
|
+
"nextNode": "gq"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"gq": {
|
|
37
|
+
"type": "BOOL",
|
|
38
|
+
"label": "Genotype quality",
|
|
39
|
+
"description": "Genotype quality",
|
|
40
|
+
"query": {
|
|
41
|
+
"field": "FORMAT/GQ",
|
|
42
|
+
"operator": ">=",
|
|
43
|
+
"value": 20
|
|
44
|
+
},
|
|
45
|
+
"outcomeTrue": {
|
|
46
|
+
"nextNode": "only_IP"
|
|
47
|
+
},
|
|
48
|
+
"outcomeFalse": {
|
|
49
|
+
"nextNode": "exit_u3"
|
|
50
|
+
},
|
|
51
|
+
"outcomeMissing": {
|
|
52
|
+
"nextNode": "only_IP"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"only_IP": {
|
|
56
|
+
"type": "BOOL",
|
|
57
|
+
"label": "Only if AD IP",
|
|
58
|
+
"description": "Only AD IP suitable for pedigree.",
|
|
59
|
+
"query": {
|
|
60
|
+
"field": "FORMAT/VI",
|
|
61
|
+
"operator": "contains_none",
|
|
62
|
+
"value": ["AR","AD","XLR","XLD","YL","MT","AR_C"]
|
|
63
|
+
},
|
|
64
|
+
"outcomeTrue": {
|
|
65
|
+
"nextNode": "vid_IP"
|
|
66
|
+
},
|
|
67
|
+
"outcomeFalse": {
|
|
68
|
+
"nextNode": "vim"
|
|
69
|
+
},
|
|
70
|
+
"outcomeMissing": {
|
|
71
|
+
"nextNode": "vim"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"vim": {
|
|
75
|
+
"type": "BOOL",
|
|
76
|
+
"label": "Inheritance match",
|
|
77
|
+
"description": "Inheritance match",
|
|
78
|
+
"query": {
|
|
79
|
+
"field": "FORMAT/VIG",
|
|
80
|
+
"operator": "contains",
|
|
81
|
+
"value": "field:INFO/CSQ/Gene"
|
|
82
|
+
},
|
|
83
|
+
"outcomeTrue": {
|
|
84
|
+
"nextNode": "exit_u1"
|
|
85
|
+
},
|
|
86
|
+
"outcomeFalse": {
|
|
87
|
+
"nextNode": "vid"
|
|
88
|
+
},
|
|
89
|
+
"outcomeMissing": {
|
|
90
|
+
"nextNode": "exit_u2"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"vim_IP": {
|
|
94
|
+
"type": "BOOL",
|
|
95
|
+
"label": "Inheritance match (IP)",
|
|
96
|
+
"description": "Inheritance match",
|
|
97
|
+
"query": {
|
|
98
|
+
"field": "FORMAT/VIG",
|
|
99
|
+
"operator": "contains",
|
|
100
|
+
"value": "field:INFO/CSQ/Gene"
|
|
101
|
+
},
|
|
102
|
+
"outcomeTrue": {
|
|
103
|
+
"nextNode": "exit_u4"
|
|
104
|
+
},
|
|
105
|
+
"outcomeFalse": {
|
|
106
|
+
"nextNode": "exit_u3"
|
|
107
|
+
},
|
|
108
|
+
"outcomeMissing": {
|
|
109
|
+
"nextNode": "exit_u4"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"vid": {
|
|
113
|
+
"type": "BOOL",
|
|
114
|
+
"label": "Inheritance denovo",
|
|
115
|
+
"description": "Inheritance denovo",
|
|
116
|
+
"query": {
|
|
117
|
+
"field": "FORMAT/VID",
|
|
118
|
+
"operator": "==",
|
|
119
|
+
"value": 1
|
|
120
|
+
},
|
|
121
|
+
"outcomeTrue": {
|
|
122
|
+
"nextNode": "exit_u1"
|
|
123
|
+
},
|
|
124
|
+
"outcomeFalse": {
|
|
125
|
+
"nextNode": "exit_u3"
|
|
126
|
+
},
|
|
127
|
+
"outcomeMissing": {
|
|
128
|
+
"nextNode": "exit_u2"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"vid_IP": {
|
|
132
|
+
"type": "BOOL",
|
|
133
|
+
"label": "Inheritance denovo (IP)",
|
|
134
|
+
"description": "Inheritance denovo",
|
|
135
|
+
"query": {
|
|
136
|
+
"field": "FORMAT/VID",
|
|
137
|
+
"operator": "==",
|
|
138
|
+
"value": 1
|
|
139
|
+
},
|
|
140
|
+
"outcomeTrue": {
|
|
141
|
+
"nextNode": "exit_u1"
|
|
142
|
+
},
|
|
143
|
+
"outcomeFalse": {
|
|
144
|
+
"nextNode": "vim_IP"
|
|
145
|
+
},
|
|
146
|
+
"outcomeMissing": {
|
|
147
|
+
"nextNode": "exit_u2"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"exit_u1": {
|
|
151
|
+
"label": "Usable: probably",
|
|
152
|
+
"description": "Usable: probably",
|
|
153
|
+
"type": "LEAF",
|
|
154
|
+
"class": "U1"
|
|
155
|
+
},
|
|
156
|
+
"exit_u2": {
|
|
157
|
+
"label": "Usable: maybe",
|
|
158
|
+
"description": "Usable: maybe",
|
|
159
|
+
"type": "LEAF",
|
|
160
|
+
"class": "U2"
|
|
161
|
+
},
|
|
162
|
+
"exit_u3": {
|
|
163
|
+
"label": "Usable: probably not",
|
|
164
|
+
"description": "Usable: probably not",
|
|
165
|
+
"type": "LEAF",
|
|
166
|
+
"class": "U3"
|
|
167
|
+
},
|
|
168
|
+
"exit_u4": {
|
|
169
|
+
"label": "Usable: if IP",
|
|
170
|
+
"description": "Usable: in case of incomplete penetrance",
|
|
171
|
+
"type": "LEAF",
|
|
172
|
+
"class": "U4"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import cramUrl from "./alignment.cram.blob";
|
|
2
4
|
import craiUrl from "./alignment.cram.crai.blob";
|
|
5
|
+
import strCramUrl from "./str.cram.blob";
|
|
6
|
+
import strCraiUrl from "./str.cram.crai.blob";
|
|
3
7
|
import fastaUrl_chr1_9982230_9982730 from "./fasta/chr1-9982230-9982730.fasta.gz.blob";
|
|
4
8
|
import fastaUrl_chr1_16049667_16050167 from "./fasta/chr1-16049667-16050167.fasta.gz.blob";
|
|
5
9
|
import fastaUrl_chr1_17022474_17022974 from "./fasta/chr1-17022474-17022974.fasta.gz.blob";
|
|
10
|
+
import fastaUrl_chr1_149380406_149403321 from "./fasta/chr1_149380406-149403321.fasta.gz.blob";
|
|
6
11
|
import fastaUrl_chr1_152548062_152548562 from "./fasta/chr1-152548062-152548562.fasta.gz.blob";
|
|
7
12
|
import fastaUrl_chr2_47408278_47408778 from "./fasta/chr2-47408278-47408778.fasta.gz.blob";
|
|
8
13
|
import fastaUrl_chr4_105398887_105399387 from "./fasta/chr4-105398887-105399387.fasta.gz.blob";
|
|
@@ -27,65 +32,118 @@ import fastaUrl_chrM_15075_15575 from "./fasta/chrM-15075-15575.fasta.gz.blob";
|
|
|
27
32
|
import fastaUrl_chrX_49075112_49075612 from "./fasta/chrX-49075112-49075612.fasta.gz.blob";
|
|
28
33
|
import fastaUrl_chrY_2787350_2787850 from "./fasta/chrY-2787350-2787850.fasta.gz.blob";
|
|
29
34
|
import genesUrl from "./genes.gff.gz.blob";
|
|
30
|
-
import vcfMetaJson from "./field_metadata.json";
|
|
31
35
|
import vcfUrlFamily from "./vcf/family.vcf.blob";
|
|
32
36
|
import vcfUrlNoVep from "./vcf/no_vep.vcf.blob";
|
|
33
37
|
import vcfUrlSamples0 from "./vcf/samples_0.vcf.blob";
|
|
34
38
|
import vcfUrlSamples1 from "./vcf/samples_1.vcf.blob";
|
|
35
39
|
import vcfUrlSamples100 from "./vcf/samples_100.vcf.blob";
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
import vcfUrlStr from "./vcf/str.vcf.blob";
|
|
41
|
+
/* eslint-enable */
|
|
38
42
|
import decisionTreeJson from "./decisionTree.json";
|
|
39
|
-
import
|
|
40
|
-
import
|
|
43
|
+
import decisionTreeStrJson from "./decisionTreeStr.json";
|
|
44
|
+
import sampleTreeJson from "./sampleTree.json";
|
|
45
|
+
import vcfMetaJson from "./field_metadata.json";
|
|
46
|
+
import { fetchAsBytes } from "../utils";
|
|
47
|
+
import { DecisionTree } from "@molgenis/vip-report-api";
|
|
48
|
+
import { SupplementaryMetadata } from "@molgenis/vip-report-vcf";
|
|
49
|
+
|
|
50
|
+
export async function fetchCram() {
|
|
51
|
+
return await fetchAsBytes(cramUrl as string);
|
|
52
|
+
}
|
|
41
53
|
|
|
42
|
-
export
|
|
43
|
-
|
|
54
|
+
export async function fetchCrai() {
|
|
55
|
+
return await fetchAsBytes(craiUrl as string);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export async function fetchStrCram() {
|
|
59
|
+
return await fetchAsBytes(strCramUrl as string);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export async function fetchStrCrai() {
|
|
63
|
+
return await fetchAsBytes(strCraiUrl as string);
|
|
64
|
+
}
|
|
44
65
|
|
|
45
66
|
export const decisionTree: DecisionTree = decisionTreeJson as unknown as DecisionTree;
|
|
67
|
+
export const decisionTreeStr: DecisionTree = decisionTreeStrJson as unknown as DecisionTree;
|
|
68
|
+
export const sampleTree: DecisionTree = sampleTreeJson as unknown as DecisionTree;
|
|
46
69
|
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
export async function fetchFastaGz() {
|
|
71
|
+
return {
|
|
72
|
+
"chr1:9982230-9982730": await fetchAsBytes(fastaUrl_chr1_9982230_9982730 as string),
|
|
73
|
+
"chr1:16049667-16050167": await fetchAsBytes(fastaUrl_chr1_16049667_16050167 as string),
|
|
74
|
+
"chr1:17022474-17022974": await fetchAsBytes(fastaUrl_chr1_17022474_17022974 as string),
|
|
75
|
+
"chr1:149380406-149403321": await fetchAsBytes(fastaUrl_chr1_149380406_149403321 as string),
|
|
76
|
+
"chr1:152548062-152548562": await fetchAsBytes(fastaUrl_chr1_152548062_152548562 as string),
|
|
77
|
+
"chr2:47408278-47408778": await fetchAsBytes(fastaUrl_chr2_47408278_47408778 as string),
|
|
78
|
+
"chr4:105398887-105399387": await fetchAsBytes(fastaUrl_chr4_105398887_105399387 as string),
|
|
79
|
+
"chr7:41977462-41977962": await fetchAsBytes(fastaUrl_chr7_41977462_41977962 as string),
|
|
80
|
+
"chr7:42025108-42025608": await fetchAsBytes(fastaUrl_chr7_42025108_42025608 as string),
|
|
81
|
+
"chr8:60852334-60852834": await fetchAsBytes(fastaUrl_chr8_60852334_60852834 as string),
|
|
82
|
+
"chr8:144085347-144085847": await fetchAsBytes(fastaUrl_chr8_144085347_144085847 as string),
|
|
83
|
+
"chr9:104784102-104784602": await fetchAsBytes(fastaUrl_chr9_104784102_104784602 as string),
|
|
84
|
+
"chr10:124402680-124403180": await fetchAsBytes(fastaUrl_chr10_124402680_124403180 as string),
|
|
85
|
+
"chr11:134144080-134144580": await fetchAsBytes(fastaUrl_chr11_134144080_134144580 as string),
|
|
86
|
+
"chr13:76995743-76996243": await fetchAsBytes(fastaUrl_chr13_76995743_76996243 as string),
|
|
87
|
+
"chr14:88869813-88870313": await fetchAsBytes(fastaUrl_chr14_88869813_88870313 as string),
|
|
88
|
+
"chr14:104701273-104701773": await fetchAsBytes(fastaUrl_chr14_104701273_104701773 as string),
|
|
89
|
+
"chr17:31228796-31229296": await fetchAsBytes(fastaUrl_chr17_31228796_31229296 as string),
|
|
90
|
+
"chr17:31336611-31337111": await fetchAsBytes(fastaUrl_chr17_31336611_31337111 as string),
|
|
91
|
+
"chr19:11105220-11105720": await fetchAsBytes(fastaUrl_chr19_11105220_11105720 as string),
|
|
92
|
+
"chr19:17340938-17341438": await fetchAsBytes(fastaUrl_chr19_17340938_17341438 as string),
|
|
93
|
+
"chr20:63695389-63695889": await fetchAsBytes(fastaUrl_chr20_63695389_63695889 as string),
|
|
94
|
+
"chr22:50188914-50189414": await fetchAsBytes(fastaUrl_chr22_50188914_50189414 as string),
|
|
95
|
+
"chr22:50282867-50283367": await fetchAsBytes(fastaUrl_chr22_50282867_50283367 as string),
|
|
96
|
+
"chrX:49075112-49075612": await fetchAsBytes(fastaUrl_chrX_49075112_49075612 as string),
|
|
97
|
+
"chrY:2787350-2787850": await fetchAsBytes(fastaUrl_chrY_2787350_2787850 as string),
|
|
98
|
+
"chrM:15075-15575": await fetchAsBytes(fastaUrl_chrM_15075_15575 as string),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
75
101
|
|
|
76
|
-
export
|
|
102
|
+
export async function fetchGenesGz() {
|
|
103
|
+
return await fetchAsBytes(genesUrl as string);
|
|
104
|
+
}
|
|
77
105
|
|
|
78
|
-
export const vcfMeta = vcfMetaJson as unknown as
|
|
106
|
+
export const vcfMeta = vcfMetaJson as unknown as SupplementaryMetadata;
|
|
79
107
|
|
|
80
|
-
export
|
|
108
|
+
export async function fetchVcfFamily() {
|
|
109
|
+
return await fetchAsBytes(vcfUrlFamily as string);
|
|
110
|
+
}
|
|
81
111
|
|
|
82
|
-
export
|
|
112
|
+
export async function fetchVcfNoVep() {
|
|
113
|
+
return await fetchAsBytes(vcfUrlNoVep as string);
|
|
114
|
+
}
|
|
83
115
|
|
|
84
|
-
export
|
|
116
|
+
export async function fetchVcfSamples0() {
|
|
117
|
+
return await fetchAsBytes(vcfUrlSamples0 as string);
|
|
118
|
+
}
|
|
85
119
|
|
|
86
|
-
export
|
|
120
|
+
export async function fetchVcfSamples1() {
|
|
121
|
+
return await fetchAsBytes(vcfUrlSamples1 as string);
|
|
122
|
+
}
|
|
87
123
|
|
|
88
|
-
export
|
|
124
|
+
export async function fetchVcfSamples100() {
|
|
125
|
+
return await fetchAsBytes(vcfUrlSamples100 as string);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export async function fetchVcfStr() {
|
|
129
|
+
return await fetchAsBytes(vcfUrlStr as string);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export const samplesStr = {
|
|
133
|
+
samples: [
|
|
134
|
+
{
|
|
135
|
+
person: {
|
|
136
|
+
familyId: "FAM001",
|
|
137
|
+
individualId: "Patient",
|
|
138
|
+
sex: "FEMALE",
|
|
139
|
+
affectedStatus: "AFFECTED",
|
|
140
|
+
},
|
|
141
|
+
index: 0,
|
|
142
|
+
proband: true,
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
phenotypes: [],
|
|
146
|
+
};
|
|
89
147
|
|
|
90
148
|
export const samplesFamily = {
|
|
91
149
|
samples: [
|
|
@@ -100,6 +158,7 @@ export const samplesFamily = {
|
|
|
100
158
|
},
|
|
101
159
|
index: 3,
|
|
102
160
|
proband: true,
|
|
161
|
+
filter_classes: ["U1", "U2"],
|
|
103
162
|
},
|
|
104
163
|
{
|
|
105
164
|
person: {
|
|
Binary file
|
|
Binary file
|