@molgenis/vip-report-template 7.1.2 → 8.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/.gitattributes +3 -1
- package/.travis.yml +1 -0
- package/README.md +13 -0
- package/eslint.config.mjs +6 -1
- package/package.json +6 -5
- package/scripts/validateConfig/README.txt +5 -0
- package/scripts/validateConfig/compileValidator.ts +17 -0
- package/scripts/validateConfig/createSchema.ts +6 -0
- package/scripts/validateConfig/schema.ts +370 -0
- package/src/App.tsx +2 -1
- package/src/components/DatasetDropdown.tsx +1 -1
- package/src/components/GenomeBrowser.tsx +14 -4
- package/src/components/RecordsTable.tsx +23 -6
- package/src/components/VariantConsequenceContainer.tsx +9 -2
- package/src/components/VariantInfoTable.tsx +1 -1
- package/src/components/VariantsContainer.tsx +47 -9
- package/src/components/VariantsContainerHeader.tsx +1 -8
- package/src/components/field/composed/FieldGenotype.tsx +1 -1
- package/src/components/field/composed/FieldGenotypeStr.tsx +18 -10
- package/src/components/field/composed/FieldGnomAd.tsx +1 -1
- package/src/components/field/composed/FieldInheritanceModes.tsx +1 -4
- package/src/components/field/composed/FieldVkgl.tsx +1 -1
- package/src/components/field/typed/FieldCategorical.tsx +1 -1
- package/src/components/field/typed/FieldCharacter.tsx +1 -1
- package/src/components/field/typed/FieldFlag.tsx +1 -1
- package/src/components/field/typed/FieldFloat.tsx +1 -1
- package/src/components/field/typed/FieldInteger.tsx +1 -1
- package/src/components/field/typed/FieldString.tsx +1 -1
- package/src/components/filter/Filter.tsx +1 -0
- package/src/components/filter/composed/FilterAllelicImbalance.tsx +1 -0
- package/src/components/filter/composed/FilterComposed.tsx +7 -0
- package/src/components/filter/composed/FilterDeNovo.tsx +1 -0
- package/src/components/filter/composed/FilterHpo.tsx +1 -0
- package/src/components/filter/composed/FilterInheritance.tsx +1 -0
- package/src/components/filter/composed/FilterLocus.tsx +17 -3
- package/src/components/filter/composed/FilterPick.tsx +30 -0
- package/src/components/filter/composed/FilterVipC.tsx +1 -0
- package/src/components/filter/composed/FilterVipCS.tsx +1 -0
- package/src/components/filter/fixed/FilterFixed.tsx +7 -0
- package/src/components/filter/typed/FilterCategorical.tsx +18 -1
- package/src/components/filter/typed/FilterFlag.tsx +2 -0
- package/src/components/filter/typed/FilterInterval.tsx +29 -1
- package/src/components/filter/typed/FilterString.tsx +8 -1
- package/src/components/filter/typed/FilterTyped.tsx +1 -0
- package/src/components/form/ButtonApply.tsx +6 -2
- package/src/mocks/GRCh38/README.txt +15 -0
- package/src/mocks/GRCh38/decisionTree.json +201 -0
- package/src/mocks/GRCh38/family.ped +6 -0
- package/src/mocks/GRCh38/field_metadata.json +36 -11
- package/src/mocks/GRCh38/sample1.ped +1 -0
- package/src/mocks/GRCh38/static.ts +36 -148
- package/src/mocks/GRCh38/str.ped +1 -0
- package/src/mocks/GRCh38/vcf/family.db.blob +0 -0
- package/src/mocks/GRCh38/vcf/family.vcf +312 -0
- package/src/mocks/GRCh38/vcf/fixPaths.sql +7 -0
- package/src/mocks/GRCh38/vcf/no_vep.db.blob +0 -0
- package/src/mocks/GRCh38/vcf/{no_vep.vcf.blob → no_vep.vcf} +1 -1
- package/src/mocks/GRCh38/vcf/samples_0.db.blob +0 -0
- package/src/mocks/GRCh38/vcf/samples_1.db.blob +0 -0
- package/src/mocks/GRCh38/vcf/samples_100.db.blob +0 -0
- package/src/mocks/GRCh38/vcf/{samples_100.vcf.blob → samples_100.vcf} +6 -6
- package/src/mocks/GRCh38/vcf/str.db.blob +0 -0
- package/src/mocks/GRCh38/vcf/{str.vcf.blob → str.vcf} +17 -17
- package/src/mocks/MockApiClient.ts +60 -226
- package/src/mocks/config_cram.json +4 -0
- package/src/mocks/config_default_values.json +722 -0
- package/src/mocks/config_vcf.json +15 -1
- package/src/mocks/sql-wasm.wasm.blob +0 -0
- package/src/types/config.d.ts +9 -5
- package/src/types/configCells.d.ts +1 -0
- package/src/types/configFilter.d.ts +1 -0
- package/src/types/configFilterComposed.d.ts +3 -0
- package/src/utils/api.ts +21 -49
- package/src/utils/config/configCellsComposed.ts +1 -1
- package/src/utils/config/configCellsField.ts +2 -0
- package/src/utils/config/configFiltersComposed.ts +7 -0
- package/src/utils/config/configFiltersField.ts +3 -2
- package/src/utils/config/configFiltersFixed.ts +7 -0
- package/src/utils/config/configValidator.precompiled.ts +83402 -0
- package/src/utils/config/configValidator.ts +3 -368
- package/src/utils/csq.ts +5 -10
- package/src/utils/decisionTree.ts +8 -9
- package/src/utils/query/query.ts +3 -2
- package/src/utils/query/queryFilter.ts +2 -3
- package/src/utils/query/queryFilterComposed.ts +12 -12
- package/src/utils/query/queryFilterField.ts +14 -7
- package/src/utils/query/queryFilterFixed.ts +5 -5
- package/src/utils/query/querySample.ts +15 -4
- package/src/utils/query/selector.ts +5 -20
- package/src/utils/query/sort.ts +4 -4
- package/src/utils/vcf.ts +20 -11
- package/src/views/Help.tsx +2 -2
- package/src/views/SampleVariant.tsx +4 -1
- package/src/views/Samples.tsx +10 -3
- package/src/views/data/data.tsx +2 -2
- package/tests/utils/config/configFiltersComposed.test.ts +2 -0
- package/tests/utils/config/configFiltersField.test.ts +4 -2
- package/tests/utils/config/configFiltersFixed.test.ts +23 -6
- package/tests/utils/query/query.test.ts +34 -6
- package/tests/utils/query/queryFilter.test.ts +4 -31
- package/tests/utils/query/queryFilterComposed.test.ts +13 -13
- package/tests/utils/query/queryFilterField.test.ts +5 -5
- package/tests/utils/query/queryFilterFixed.test.ts +5 -5
- package/tests/utils/query/querySample.test.ts +50 -10
- package/tests/utils/query/sort.test.ts +1 -1
- package/tests/utils/vcf.test.ts +1 -0
- package/vite.config.mts +2 -1
- package/src/mocks/GRCh37/alignment.cram.blob +0 -0
- package/src/mocks/GRCh37/alignment.cram.crai.blob +0 -0
- package/src/mocks/GRCh37/decisionTree.json +0 -355
- package/src/mocks/GRCh37/fasta/1-10042288-10042788.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/1-152520538-152521038.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/1-16375333-16375833.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/1-16376162-16376662.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/1-17348965-17349469.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/1-17348969-17349469.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/1-17354844-17355344.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/10-126091249-126091749.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/11-134013975-134014475.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/13-77569878-77570378.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/14-105167610-105168110.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/14-89307588-89308088.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/14-89309945-89310445.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/14-89336157-89336657.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/17-29555814-29556314.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/17-29585172-29585672.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/17-29663629-29664129.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/17-29675976-29676476.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/17-29683733-29684233.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/19-11215896-11216396.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/19-11223801-11224301.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/19-17449149-17449649.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/19-17451747-17452247.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/2-47635417-47635917.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/20-62326742-62327242.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/22-50627343-50627843.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/22-50721296-50721796.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/4-106320044-106320544.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/7-42017061-42017561.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/7-42064707-42065207.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/8-145140250-145140750.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/8-61764893-61765393.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/9-107546383-107546883.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/9-107584614-107585114.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/MT-15076-15576.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/X-48932771-48933271.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/fasta/Y-2655391-2655891.fasta.gz.blob +0 -0
- package/src/mocks/GRCh37/field_metadata.json +0 -794
- package/src/mocks/GRCh37/genes.gff.gz.blob +0 -0
- package/src/mocks/GRCh37/sampleTree.json +0 -143
- package/src/mocks/GRCh37/static.ts +0 -189
- package/src/mocks/GRCh37/vcf/family.vcf.blob +0 -134
- package/src/mocks/GRCh38/vcf/family.vcf.blob +0 -272
- package/src/mocks/static.ts +0 -1636
- /package/src/mocks/GRCh38/vcf/{samples_0.vcf.blob → samples_0.vcf} +0 -0
- /package/src/mocks/GRCh38/vcf/{samples_1.vcf.blob → samples_1.vcf} +0 -0
|
Binary file
|
|
@@ -1,143 +0,0 @@
|
|
|
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
|
-
"label": "Genotype Quality",
|
|
38
|
-
"type": "BOOL",
|
|
39
|
-
"description": "Genotype quality",
|
|
40
|
-
"query": {
|
|
41
|
-
"field": "FORMAT/GQ",
|
|
42
|
-
"operator": ">=",
|
|
43
|
-
"value": 20
|
|
44
|
-
},
|
|
45
|
-
"outcomeTrue": {
|
|
46
|
-
"nextNode": "dp"
|
|
47
|
-
},
|
|
48
|
-
"outcomeFalse": {
|
|
49
|
-
"nextNode": "exit_u3"
|
|
50
|
-
},
|
|
51
|
-
"outcomeMissing": {
|
|
52
|
-
"nextNode": "dp"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"DP": {
|
|
56
|
-
"label": "Sequencing Depth",
|
|
57
|
-
"type": "BOOL",
|
|
58
|
-
"description": "Sequencing depth",
|
|
59
|
-
"query": {
|
|
60
|
-
"field": "FORMAT/DP",
|
|
61
|
-
"operator": ">=",
|
|
62
|
-
"value": 10
|
|
63
|
-
},
|
|
64
|
-
"outcomeTrue": {
|
|
65
|
-
"nextNode": "vim"
|
|
66
|
-
},
|
|
67
|
-
"outcomeFalse": {
|
|
68
|
-
"nextNode": "exit_u3"
|
|
69
|
-
},
|
|
70
|
-
"outcomeMissing": {
|
|
71
|
-
"nextNode": "vim"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"VIM": {
|
|
75
|
-
"label": "Inheritance",
|
|
76
|
-
"type": "BOOL",
|
|
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
|
-
"VID": {
|
|
94
|
-
"label": "Denovo",
|
|
95
|
-
"type": "BOOL",
|
|
96
|
-
"description": "Inheritance denovo",
|
|
97
|
-
"query": {
|
|
98
|
-
"field": "FORMAT/VID",
|
|
99
|
-
"operator": "==",
|
|
100
|
-
"value": 1
|
|
101
|
-
},
|
|
102
|
-
"outcomeTrue": {
|
|
103
|
-
"nextNode": "exit_u1"
|
|
104
|
-
},
|
|
105
|
-
"outcomeFalse": {
|
|
106
|
-
"nextNode": "exit_u3"
|
|
107
|
-
},
|
|
108
|
-
"outcomeMissing": {
|
|
109
|
-
"nextNode": "exit_u2"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"exit_u1": {
|
|
113
|
-
"label": "probably",
|
|
114
|
-
"description": "Usable: probably",
|
|
115
|
-
"type": "LEAF",
|
|
116
|
-
"class": "U1"
|
|
117
|
-
},
|
|
118
|
-
"exit_u2": {
|
|
119
|
-
"label": "maybe",
|
|
120
|
-
"description": "Usable: maybe",
|
|
121
|
-
"type": "LEAF",
|
|
122
|
-
"class": "U2"
|
|
123
|
-
},
|
|
124
|
-
"exit_u3": {
|
|
125
|
-
"label": "probably not",
|
|
126
|
-
"description": "Usable: probably not",
|
|
127
|
-
"type": "LEAF",
|
|
128
|
-
"class": "U3"
|
|
129
|
-
},
|
|
130
|
-
"exit_ok": {
|
|
131
|
-
"label": "Okey",
|
|
132
|
-
"description": "OK",
|
|
133
|
-
"type": "LEAF",
|
|
134
|
-
"class": "OK"
|
|
135
|
-
},
|
|
136
|
-
"exit_nok": {
|
|
137
|
-
"label": "Not Okey",
|
|
138
|
-
"description": "NOK",
|
|
139
|
-
"type": "LEAF",
|
|
140
|
-
"class": "NOK"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import cramUrl from "./alignment.cram.blob";
|
|
4
|
-
import craiUrl from "./alignment.cram.crai.blob";
|
|
5
|
-
import decisionTreeJson from "./decisionTree.json";
|
|
6
|
-
import sampleTreeJson from "./sampleTree.json";
|
|
7
|
-
import fastaUrl1_10042288_10042788 from "./fasta/1-10042288-10042788.fasta.gz.blob";
|
|
8
|
-
import fastaUrl1_16375333_16375833 from "./fasta/1-16375333-16375833.fasta.gz.blob";
|
|
9
|
-
import fastaUrl1_16376162_16376662 from "./fasta/1-16376162-16376662.fasta.gz.blob";
|
|
10
|
-
import fastaUrl1_17348965_17349469 from "./fasta/1-17348965-17349469.fasta.gz.blob";
|
|
11
|
-
import fastaUrl1_17348969_17349469 from "./fasta/1-17348969-17349469.fasta.gz.blob";
|
|
12
|
-
import fastaUrl1_17354844_17355344 from "./fasta/1-17354844-17355344.fasta.gz.blob";
|
|
13
|
-
import fastaUrl1_152520538_152521038 from "./fasta/1-152520538-152521038.fasta.gz.blob";
|
|
14
|
-
import fastaUrl2_47635417_47635917 from "./fasta/2-47635417-47635917.fasta.gz.blob";
|
|
15
|
-
import fastaUrl4_106320044_106320544 from "./fasta/4-106320044-106320544.fasta.gz.blob";
|
|
16
|
-
import fastaUrl7_42017061_42017561 from "./fasta/7-42017061-42017561.fasta.gz.blob";
|
|
17
|
-
import fastaUrl7_42064707_42065207 from "./fasta/7-42064707-42065207.fasta.gz.blob";
|
|
18
|
-
import fastaUrl8_61764893_61765393 from "./fasta/8-61764893-61765393.fasta.gz.blob";
|
|
19
|
-
import fastaUrl8_145140250_145140750 from "./fasta/8-145140250-145140750.fasta.gz.blob";
|
|
20
|
-
import fastaUrl9_107546383_107546883 from "./fasta/9-107546383-107546883.fasta.gz.blob";
|
|
21
|
-
import fastaUrl9_107584614_107585114 from "./fasta/9-107584614-107585114.fasta.gz.blob";
|
|
22
|
-
import fastaUrl10_126091249_126091749 from "./fasta/10-126091249-126091749.fasta.gz.blob";
|
|
23
|
-
import fastaUrl11_134013975_134014475 from "./fasta/11-134013975-134014475.fasta.gz.blob";
|
|
24
|
-
import fastaUrl13_77569878_77570378 from "./fasta/13-77569878-77570378.fasta.gz.blob";
|
|
25
|
-
import fastaUrl14_89307588_89308088 from "./fasta/14-89307588-89308088.fasta.gz.blob";
|
|
26
|
-
import fastaUrl14_89309945_89310445 from "./fasta/14-89309945-89310445.fasta.gz.blob";
|
|
27
|
-
import fastaUrl14_89336157_89336657 from "./fasta/14-89336157-89336657.fasta.gz.blob";
|
|
28
|
-
import fastaUrl14_105167610_105168110 from "./fasta/14-105167610-105168110.fasta.gz.blob";
|
|
29
|
-
import fastaUrl17_29555814_29556314 from "./fasta/17-29555814-29556314.fasta.gz.blob";
|
|
30
|
-
import fastaUrl17_29585172_29585672 from "./fasta/17-29585172-29585672.fasta.gz.blob";
|
|
31
|
-
import fastaUrl17_29663629_29664129 from "./fasta/17-29663629-29664129.fasta.gz.blob";
|
|
32
|
-
import fastaUrl17_29675976_29676476 from "./fasta/17-29675976-29676476.fasta.gz.blob";
|
|
33
|
-
import fastaUrl17_29683733_29684233 from "./fasta/17-29683733-29684233.fasta.gz.blob";
|
|
34
|
-
import fastaUrl19_11215896_11216396 from "./fasta/19-11215896-11216396.fasta.gz.blob";
|
|
35
|
-
import fastaUrl19_11223801_11224301 from "./fasta/19-11223801-11224301.fasta.gz.blob";
|
|
36
|
-
import fastaUrl19_17449149_17449649 from "./fasta/19-17449149-17449649.fasta.gz.blob";
|
|
37
|
-
import fastaUrl19_17451747_17452247 from "./fasta/19-17451747-17452247.fasta.gz.blob";
|
|
38
|
-
import fastaUrl20_62326742_62327242 from "./fasta/20-62326742-62327242.fasta.gz.blob";
|
|
39
|
-
import fastaUrl22_50627343_50627843 from "./fasta/22-50627343-50627843.fasta.gz.blob";
|
|
40
|
-
import fastaUrl22_50721296_50721796 from "./fasta/22-50721296-50721796.fasta.gz.blob";
|
|
41
|
-
import fastaUrlX_48932771_48933271 from "./fasta/X-48932771-48933271.fasta.gz.blob";
|
|
42
|
-
import fastaUrlY_2655391_2655891 from "./fasta/Y-2655391-2655891.fasta.gz.blob";
|
|
43
|
-
import fastaUrlMT_15076_15576 from "./fasta/MT-15076-15576.fasta.gz.blob";
|
|
44
|
-
import genesUrl from "./genes.gff.gz.blob";
|
|
45
|
-
import vcfUrlFamily from "./vcf/family.vcf.blob";
|
|
46
|
-
/* eslint-enable */
|
|
47
|
-
import vcfMetaJson from "./field_metadata.json";
|
|
48
|
-
import { fetchAsBytes } from "../utils";
|
|
49
|
-
import { DecisionTree } from "@molgenis/vip-report-api";
|
|
50
|
-
import { SupplementaryMetadata } from "@molgenis/vip-report-vcf";
|
|
51
|
-
|
|
52
|
-
export async function fetchCram() {
|
|
53
|
-
return await fetchAsBytes(cramUrl as string);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export async function fetchCrai() {
|
|
57
|
-
return await fetchAsBytes(craiUrl as string);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export const decisionTree = decisionTreeJson as unknown as DecisionTree;
|
|
61
|
-
|
|
62
|
-
export const sampleTree = sampleTreeJson as unknown as DecisionTree;
|
|
63
|
-
|
|
64
|
-
export async function fetchFastaGz() {
|
|
65
|
-
return {
|
|
66
|
-
"1:10042288-10042788": await fetchAsBytes(fastaUrl1_10042288_10042788 as string),
|
|
67
|
-
"1:16375333-16375833": await fetchAsBytes(fastaUrl1_16375333_16375833 as string),
|
|
68
|
-
"1:16376162-16376662": await fetchAsBytes(fastaUrl1_16376162_16376662 as string),
|
|
69
|
-
"1:17348965-17349469": await fetchAsBytes(fastaUrl1_17348965_17349469 as string),
|
|
70
|
-
"1:17348969-17349469": await fetchAsBytes(fastaUrl1_17348969_17349469 as string),
|
|
71
|
-
"1:17354844-17355344": await fetchAsBytes(fastaUrl1_17354844_17355344 as string),
|
|
72
|
-
"1:152520538-152521038": await fetchAsBytes(fastaUrl1_152520538_152521038 as string),
|
|
73
|
-
"2:47635417-47635917": await fetchAsBytes(fastaUrl2_47635417_47635917 as string),
|
|
74
|
-
"4:106320044-106320544": await fetchAsBytes(fastaUrl4_106320044_106320544 as string),
|
|
75
|
-
"7:42017061-42017561": await fetchAsBytes(fastaUrl7_42017061_42017561 as string),
|
|
76
|
-
"7:42064707-42065207": await fetchAsBytes(fastaUrl7_42064707_42065207 as string),
|
|
77
|
-
"8:61764893-61765393": await fetchAsBytes(fastaUrl8_61764893_61765393 as string),
|
|
78
|
-
"8:145140250-145140750": await fetchAsBytes(fastaUrl8_145140250_145140750 as string),
|
|
79
|
-
"9:107546383-107546883": await fetchAsBytes(fastaUrl9_107546383_107546883 as string),
|
|
80
|
-
"9:107584614-107585114": await fetchAsBytes(fastaUrl9_107584614_107585114 as string),
|
|
81
|
-
"10:126091249-126091749": await fetchAsBytes(fastaUrl10_126091249_126091749 as string),
|
|
82
|
-
"11:134013975-134014475": await fetchAsBytes(fastaUrl11_134013975_134014475 as string),
|
|
83
|
-
"13:77569878-77570378": await fetchAsBytes(fastaUrl13_77569878_77570378 as string),
|
|
84
|
-
"14:89307588-89308088": await fetchAsBytes(fastaUrl14_89307588_89308088 as string),
|
|
85
|
-
"14:89309945-89310445": await fetchAsBytes(fastaUrl14_89309945_89310445 as string),
|
|
86
|
-
"14:89336157-89336657": await fetchAsBytes(fastaUrl14_89336157_89336657 as string),
|
|
87
|
-
"14:105167610-105168110": await fetchAsBytes(fastaUrl14_105167610_105168110 as string),
|
|
88
|
-
"17:29555814-29556314": await fetchAsBytes(fastaUrl17_29555814_29556314 as string),
|
|
89
|
-
"17:29585172-29585672": await fetchAsBytes(fastaUrl17_29585172_29585672 as string),
|
|
90
|
-
"17:29663629-29664129": await fetchAsBytes(fastaUrl17_29663629_29664129 as string),
|
|
91
|
-
"17:29675976-29676476": await fetchAsBytes(fastaUrl17_29675976_29676476 as string),
|
|
92
|
-
"17:29683733-29684233": await fetchAsBytes(fastaUrl17_29683733_29684233 as string),
|
|
93
|
-
"19:11215896-11216396": await fetchAsBytes(fastaUrl19_11215896_11216396 as string),
|
|
94
|
-
"19:11223801-11224301": await fetchAsBytes(fastaUrl19_11223801_11224301 as string),
|
|
95
|
-
"19:17449149-17449649": await fetchAsBytes(fastaUrl19_17449149_17449649 as string),
|
|
96
|
-
"19:17451747-17452247": await fetchAsBytes(fastaUrl19_17451747_17452247 as string),
|
|
97
|
-
"20:62326742-62327242": await fetchAsBytes(fastaUrl20_62326742_62327242 as string),
|
|
98
|
-
"22:50627343-50627843": await fetchAsBytes(fastaUrl22_50627343_50627843 as string),
|
|
99
|
-
"22:50721296-50721796": await fetchAsBytes(fastaUrl22_50721296_50721796 as string),
|
|
100
|
-
"X:48932771-48933271": await fetchAsBytes(fastaUrlX_48932771_48933271 as string),
|
|
101
|
-
"Y:2655391-2655891": await fetchAsBytes(fastaUrlY_2655391_2655891 as string),
|
|
102
|
-
"MT:15076-15576": await fetchAsBytes(fastaUrlMT_15076_15576 as string),
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export async function fetchGenesGz() {
|
|
107
|
-
return await fetchAsBytes(genesUrl as string);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export const vcfMeta = vcfMetaJson as unknown as SupplementaryMetadata;
|
|
111
|
-
|
|
112
|
-
export async function fetchVcfFamily() {
|
|
113
|
-
return await fetchAsBytes(vcfUrlFamily as string);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export const samplesFamily = {
|
|
117
|
-
samples: [
|
|
118
|
-
{
|
|
119
|
-
person: {
|
|
120
|
-
familyId: "FAM001",
|
|
121
|
-
individualId: "Patient",
|
|
122
|
-
paternalId: "Father",
|
|
123
|
-
maternalId: "MotherHasQuiteALongName",
|
|
124
|
-
sex: "MALE",
|
|
125
|
-
affectedStatus: "AFFECTED",
|
|
126
|
-
},
|
|
127
|
-
index: 0,
|
|
128
|
-
proband: true,
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
person: {
|
|
132
|
-
familyId: "FAM001",
|
|
133
|
-
individualId: "MotherHasQuiteALongName",
|
|
134
|
-
paternalId: "0",
|
|
135
|
-
maternalId: "0",
|
|
136
|
-
sex: "FEMALE",
|
|
137
|
-
affectedStatus: "UNAFFECTED",
|
|
138
|
-
},
|
|
139
|
-
index: 2,
|
|
140
|
-
proband: false,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
person: {
|
|
144
|
-
familyId: "FAM001",
|
|
145
|
-
individualId: "Father",
|
|
146
|
-
paternalId: "0",
|
|
147
|
-
maternalId: "0",
|
|
148
|
-
sex: "MALE",
|
|
149
|
-
affectedStatus: "UNAFFECTED",
|
|
150
|
-
},
|
|
151
|
-
index: 1,
|
|
152
|
-
proband: false,
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
phenotypes: [
|
|
156
|
-
{
|
|
157
|
-
phenotypicFeaturesList: [
|
|
158
|
-
{
|
|
159
|
-
type: {
|
|
160
|
-
id: "HP:0000951",
|
|
161
|
-
label: "HP:0000951",
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
type: {
|
|
166
|
-
id: "HP:0003124",
|
|
167
|
-
label: "HP:0003124",
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
subject: {
|
|
172
|
-
id: "Patient",
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
phenotypicFeaturesList: [
|
|
177
|
-
{
|
|
178
|
-
type: {
|
|
179
|
-
id: "HP:0000951",
|
|
180
|
-
label: "HP:0000951",
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
subject: {
|
|
185
|
-
id: "MotherHasQuiteALongName",
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
],
|
|
189
|
-
};
|