@genspectrum/dashboard-components 0.1.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/LICENSE +661 -0
- package/README.md +109 -0
- package/custom-elements.json +1587 -0
- package/dist/dashboard-components.js +7322 -0
- package/dist/dashboard-components.js.map +1 -0
- package/dist/genspectrum-components.d.ts +298 -0
- package/dist/style.css +2930 -0
- package/package.json +109 -0
- package/src/constants.ts +6 -0
- package/src/index.ts +1 -0
- package/src/lapisApi/ReferenceGenome.ts +30 -0
- package/src/lapisApi/__mockData__/referenceGenome.json +58 -0
- package/src/lapisApi/lapisApi.ts +99 -0
- package/src/lapisApi/lapisTypes.ts +51 -0
- package/src/operator/Dataset.ts +3 -0
- package/src/operator/DivisionOperator.spec.ts +27 -0
- package/src/operator/DivisionOperator.ts +60 -0
- package/src/operator/FetchAggregatedOperator.ts +44 -0
- package/src/operator/FetchInsertionsOperator.ts +24 -0
- package/src/operator/FetchSubstitutionsOrDeletionsOperator.ts +49 -0
- package/src/operator/FillMissingOperator.spec.ts +26 -0
- package/src/operator/FillMissingOperator.ts +30 -0
- package/src/operator/GroupByAndSumOperator.spec.ts +26 -0
- package/src/operator/GroupByAndSumOperator.ts +26 -0
- package/src/operator/GroupByOperator.spec.ts +43 -0
- package/src/operator/GroupByOperator.ts +32 -0
- package/src/operator/MapOperator.spec.ts +13 -0
- package/src/operator/MapOperator.ts +16 -0
- package/src/operator/MockOperator.spec.ts +11 -0
- package/src/operator/MockOperator.ts +12 -0
- package/src/operator/Operator.ts +5 -0
- package/src/operator/SlidingOperator.spec.ts +52 -0
- package/src/operator/SlidingOperator.ts +23 -0
- package/src/operator/SortOperator.spec.ts +13 -0
- package/src/operator/SortOperator.ts +16 -0
- package/src/preact/LapisUrlContext.ts +3 -0
- package/src/preact/ReferenceGenomeContext.ts +5 -0
- package/src/preact/components/SegmentSelector.tsx +62 -0
- package/src/preact/components/chart.stories.tsx +42 -0
- package/src/preact/components/chart.tsx +32 -0
- package/src/preact/components/checkbox-selector.stories.tsx +56 -0
- package/src/preact/components/checkbox-selector.tsx +46 -0
- package/src/preact/components/confidence-interval-selector.tsx +45 -0
- package/src/preact/components/csv-download-button.stories.tsx +25 -0
- package/src/preact/components/csv-download-button.tsx +51 -0
- package/src/preact/components/error-display.stories.tsx +22 -0
- package/src/preact/components/error-display.tsx +5 -0
- package/src/preact/components/headline.stories.tsx +29 -0
- package/src/preact/components/headline.tsx +16 -0
- package/src/preact/components/info.stories.tsx +22 -0
- package/src/preact/components/info.tsx +16 -0
- package/src/preact/components/loading-display.stories.tsx +20 -0
- package/src/preact/components/loading-display.tsx +5 -0
- package/src/preact/components/min-max-percent-slider.css +40 -0
- package/src/preact/components/min-max-range-slider.tsx +95 -0
- package/src/preact/components/mutation-type-selector.tsx +30 -0
- package/src/preact/components/no-data-display.stories.tsx +20 -0
- package/src/preact/components/no-data-display.tsx +5 -0
- package/src/preact/components/percent-intput.tsx +49 -0
- package/src/preact/components/proportion-selector-dropdown.stories.tsx +66 -0
- package/src/preact/components/proportion-selector-dropdown.tsx +33 -0
- package/src/preact/components/proportion-selector.stories.tsx +81 -0
- package/src/preact/components/proportion-selector.tsx +43 -0
- package/src/preact/components/scaling-selector.stories.tsx +25 -0
- package/src/preact/components/scaling-selector.tsx +36 -0
- package/src/preact/components/select.stories.tsx +42 -0
- package/src/preact/components/select.tsx +21 -0
- package/src/preact/components/table.stories.tsx +24 -0
- package/src/preact/components/table.tsx +51 -0
- package/src/preact/components/tabs.stories.tsx +60 -0
- package/src/preact/components/tabs.tsx +49 -0
- package/src/preact/dateRangeSelector/date-range-selector.stories.tsx +32 -0
- package/src/preact/dateRangeSelector/date-range-selector.tsx +228 -0
- package/src/preact/dateRangeSelector/dateConversion.ts +8 -0
- package/src/preact/locationFilter/__mockData__/aggregated.json +775 -0
- package/src/preact/locationFilter/fetchAutocompletionList.spec.ts +36 -0
- package/src/preact/locationFilter/fetchAutocompletionList.ts +43 -0
- package/src/preact/locationFilter/location-filter.stories.tsx +50 -0
- package/src/preact/locationFilter/location-filter.tsx +112 -0
- package/src/preact/mutationComparison/__mockData__/nucleotideMutationsOtherVariant.json +295 -0
- package/src/preact/mutationComparison/__mockData__/nucleotideMutationsSomeVariant.json +304 -0
- package/src/preact/mutationComparison/fetchMutationData.spec.ts +118 -0
- package/src/preact/mutationComparison/getMutationComparisonTableData.spec.ts +125 -0
- package/src/preact/mutationComparison/getMutationComparisonTableData.ts +40 -0
- package/src/preact/mutationComparison/mutation-comparison-table.tsx +43 -0
- package/src/preact/mutationComparison/mutation-comparison-venn.tsx +122 -0
- package/src/preact/mutationComparison/mutation-comparison.stories.tsx +152 -0
- package/src/preact/mutationComparison/mutation-comparison.tsx +179 -0
- package/src/preact/mutationComparison/queryMutationData.ts +53 -0
- package/src/preact/mutationFilter/mutation-filter.stories.tsx +164 -0
- package/src/preact/mutationFilter/mutation-filter.tsx +268 -0
- package/src/preact/mutationFilter/parseAndValidateMutation.ts +54 -0
- package/src/preact/mutationFilter/parseMutation.spec.ts +150 -0
- package/src/preact/mutationFilter/sequenceTypeFromSegment.spec.ts +66 -0
- package/src/preact/mutationFilter/sequenceTypeFromSegment.ts +20 -0
- package/src/preact/mutations/__mockData__/nucleotideInsertions.json +252 -0
- package/src/preact/mutations/__mockData__/nucleotideMutations.json +880 -0
- package/src/preact/mutations/getInsertionsTableData.spec.ts +36 -0
- package/src/preact/mutations/getInsertionsTableData.ts +10 -0
- package/src/preact/mutations/getMutationsGridData.spec.ts +135 -0
- package/src/preact/mutations/getMutationsGridData.ts +92 -0
- package/src/preact/mutations/getMutationsTableData.spec.ts +94 -0
- package/src/preact/mutations/getMutationsTableData.ts +17 -0
- package/src/preact/mutations/mutations-grid.tsx +84 -0
- package/src/preact/mutations/mutations-insertions-table.tsx +33 -0
- package/src/preact/mutations/mutations-table.tsx +47 -0
- package/src/preact/mutations/mutations.stories.tsx +95 -0
- package/src/preact/mutations/mutations.tsx +192 -0
- package/src/preact/mutations/queryMutations.ts +55 -0
- package/src/preact/prevalenceOverTime/__mockData__/denominator.json +1700 -0
- package/src/preact/prevalenceOverTime/__mockData__/denominatorOneVariant.json +608 -0
- package/src/preact/prevalenceOverTime/__mockData__/numeratorEG.json +1560 -0
- package/src/preact/prevalenceOverTime/__mockData__/numeratorJN1.json +592 -0
- package/src/preact/prevalenceOverTime/__mockData__/numeratorOneVariant.json +604 -0
- package/src/preact/prevalenceOverTime/getPrevalenceOverTimeTableData.spec.ts +67 -0
- package/src/preact/prevalenceOverTime/getPrevalenceOverTimeTableData.ts +18 -0
- package/src/preact/prevalenceOverTime/prevalence-over-time-bar-chart.tsx +105 -0
- package/src/preact/prevalenceOverTime/prevalence-over-time-bubble-chart.tsx +86 -0
- package/src/preact/prevalenceOverTime/prevalence-over-time-line-chart.tsx +141 -0
- package/src/preact/prevalenceOverTime/prevalence-over-time-table.tsx +46 -0
- package/src/preact/prevalenceOverTime/prevalence-over-time.stories.tsx +165 -0
- package/src/preact/prevalenceOverTime/prevalence-over-time.tsx +202 -0
- package/src/preact/relativeGrowthAdvantage/__mockData__/denominator.json +376 -0
- package/src/preact/relativeGrowthAdvantage/__mockData__/numerator.json +332 -0
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage-chart.tsx +138 -0
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.stories.tsx +71 -0
- package/src/preact/relativeGrowthAdvantage/relative-growth-advantage.tsx +136 -0
- package/src/preact/shared/charts/LogitScale.ts +48 -0
- package/src/preact/shared/charts/colors.ts +26 -0
- package/src/preact/shared/charts/confideceInterval.ts +29 -0
- package/src/preact/shared/charts/getYAxisScale.ts +16 -0
- package/src/preact/shared/charts/scales.ts +16 -0
- package/src/preact/shared/icons/DeleteIcon.tsx +17 -0
- package/src/preact/shared/sort/sortInsertions.spec.ts +47 -0
- package/src/preact/shared/sort/sortInsertions.ts +21 -0
- package/src/preact/shared/sort/sortMutationPositions.spec.ts +31 -0
- package/src/preact/shared/sort/sortMutationPositions.ts +14 -0
- package/src/preact/shared/sort/sortSubstitutionsAndDeletions.spec.ts +47 -0
- package/src/preact/shared/sort/sortSubstitutionsAndDeletions.ts +17 -0
- package/src/preact/shared/table/formatProportion.ts +3 -0
- package/src/preact/textInput/__mockData__/aggregated_hosts.json +24 -0
- package/src/preact/textInput/fetchAutocompleteList.ts +9 -0
- package/src/preact/textInput/text-input.stories.tsx +49 -0
- package/src/preact/textInput/text-input.tsx +73 -0
- package/src/preact/useQuery.ts +27 -0
- package/src/query/queryInsertions.ts +14 -0
- package/src/query/queryPrevalenceOverTime.ts +126 -0
- package/src/query/queryRelativeGrowthAdvantage.ts +131 -0
- package/src/query/querySubstitutionsOrDeletions.ts +19 -0
- package/src/styles/tailwind.css +3 -0
- package/src/styles/tailwind.d.ts +3 -0
- package/src/types.ts +23 -0
- package/src/utils/mutations.spec.ts +64 -0
- package/src/utils/mutations.ts +165 -0
- package/src/utils/temporal.spec.ts +97 -0
- package/src/utils/temporal.ts +348 -0
- package/src/utils/test-utils.ts +5 -0
- package/src/utils/type-utils.ts +15 -0
- package/src/utils/utils.spec.ts +16 -0
- package/src/utils/utils.ts +38 -0
- package/src/web-components/PreactLitAdapter.tsx +62 -0
- package/src/web-components/PreactLitAdapterWithGridJsStyles.tsx +12 -0
- package/src/web-components/app.ts +51 -0
- package/src/web-components/display/index.ts +4 -0
- package/src/web-components/display/mutation-comparison-component.stories.ts +138 -0
- package/src/web-components/display/mutation-comparison-component.tsx +31 -0
- package/src/web-components/display/mutations-component.stories.ts +107 -0
- package/src/web-components/display/mutations-component.tsx +27 -0
- package/src/web-components/display/prevalence-over-time-component.stories.ts +205 -0
- package/src/web-components/display/prevalence-over-time-component.tsx +46 -0
- package/src/web-components/display/relative-growth-advantage-component.stories.ts +89 -0
- package/src/web-components/display/relative-growth-advantage-component.tsx +37 -0
- package/src/web-components/index.ts +3 -0
- package/src/web-components/input/date-range-selector-component.stories.ts +53 -0
- package/src/web-components/input/date-range-selector-component.tsx +33 -0
- package/src/web-components/input/index.ts +4 -0
- package/src/web-components/input/location-filter-component.stories.ts +184 -0
- package/src/web-components/input/location-filter-component.tsx +68 -0
- package/src/web-components/input/location-filter.mdx +25 -0
- package/src/web-components/input/mutation-filter-component.stories.ts +97 -0
- package/src/web-components/input/mutation-filter-component.tsx +27 -0
- package/src/web-components/input/text-input-component.stories.ts +92 -0
- package/src/web-components/input/text-input-component.tsx +30 -0
- package/src/web-components/lapis-context.ts +3 -0
- package/src/web-components/reference-genome-context.ts +5 -0
- package/src/web-components/withinShadowRoot.story.ts +34 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"dataVersion": 1709685650
|
|
4
|
+
},
|
|
5
|
+
"data": [
|
|
6
|
+
{
|
|
7
|
+
"insertion": "ins_21571:TTT",
|
|
8
|
+
"count": 1,
|
|
9
|
+
"sequenceName": null,
|
|
10
|
+
"position": 21571,
|
|
11
|
+
"insertedSymbols": "TTT"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"insertion": "ins_26654:T",
|
|
15
|
+
"count": 1,
|
|
16
|
+
"sequenceName": null,
|
|
17
|
+
"position": 26654,
|
|
18
|
+
"insertedSymbols": "T"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"insertion": "ins_28250:CTG",
|
|
22
|
+
"count": 25,
|
|
23
|
+
"sequenceName": null,
|
|
24
|
+
"position": 28250,
|
|
25
|
+
"insertedSymbols": "CTG"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"insertion": "ins_13915:T",
|
|
29
|
+
"count": 1,
|
|
30
|
+
"sequenceName": null,
|
|
31
|
+
"position": 13915,
|
|
32
|
+
"insertedSymbols": "T"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"insertion": "ins_27552:TT",
|
|
36
|
+
"count": 28,
|
|
37
|
+
"sequenceName": null,
|
|
38
|
+
"position": 27552,
|
|
39
|
+
"insertedSymbols": "TT"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"insertion": "ins_2170:GAGCCAGGG",
|
|
43
|
+
"count": 3,
|
|
44
|
+
"sequenceName": null,
|
|
45
|
+
"position": 2170,
|
|
46
|
+
"insertedSymbols": "GAGCCAGGG"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"insertion": "ins_21305:GAGAGAGAGCAA",
|
|
50
|
+
"count": 1,
|
|
51
|
+
"sequenceName": null,
|
|
52
|
+
"position": 21305,
|
|
53
|
+
"insertedSymbols": "GAGAGAGAGCAA"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"insertion": "ins_11305:ATTTCATTGTTT",
|
|
57
|
+
"count": 1,
|
|
58
|
+
"sequenceName": null,
|
|
59
|
+
"position": 11305,
|
|
60
|
+
"insertedSymbols": "ATTTCATTGTTT"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"insertion": "ins_28230:AAACTTGTCA",
|
|
64
|
+
"count": 1,
|
|
65
|
+
"sequenceName": null,
|
|
66
|
+
"position": 28230,
|
|
67
|
+
"insertedSymbols": "AAACTTGTCA"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"insertion": "ins_27687:T",
|
|
71
|
+
"count": 1,
|
|
72
|
+
"sequenceName": null,
|
|
73
|
+
"position": 27687,
|
|
74
|
+
"insertedSymbols": "T"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"insertion": "ins_27553:TGATCAG",
|
|
78
|
+
"count": 1,
|
|
79
|
+
"sequenceName": null,
|
|
80
|
+
"position": 27553,
|
|
81
|
+
"insertedSymbols": "TGATCAG"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"insertion": "ins_29903:NNNNNNNNNNNNNNNNN",
|
|
85
|
+
"count": 1,
|
|
86
|
+
"sequenceName": null,
|
|
87
|
+
"position": 29903,
|
|
88
|
+
"insertedSymbols": "NNNNNNNNNNNNNNNNN"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"insertion": "ins_29727:GG",
|
|
92
|
+
"count": 1,
|
|
93
|
+
"sequenceName": null,
|
|
94
|
+
"position": 29727,
|
|
95
|
+
"insertedSymbols": "GG"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"insertion": "ins_29053:A",
|
|
99
|
+
"count": 1,
|
|
100
|
+
"sequenceName": null,
|
|
101
|
+
"position": 29053,
|
|
102
|
+
"insertedSymbols": "A"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"insertion": "ins_27672:A",
|
|
106
|
+
"count": 1,
|
|
107
|
+
"sequenceName": null,
|
|
108
|
+
"position": 27672,
|
|
109
|
+
"insertedSymbols": "A"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"insertion": "ins_29735:TACAGT",
|
|
113
|
+
"count": 1,
|
|
114
|
+
"sequenceName": null,
|
|
115
|
+
"position": 29735,
|
|
116
|
+
"insertedSymbols": "TACAGT"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"insertion": "ins_1813:A",
|
|
120
|
+
"count": 1,
|
|
121
|
+
"sequenceName": null,
|
|
122
|
+
"position": 1813,
|
|
123
|
+
"insertedSymbols": "A"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"insertion": "ins_20793:A",
|
|
127
|
+
"count": 1,
|
|
128
|
+
"sequenceName": null,
|
|
129
|
+
"position": 20793,
|
|
130
|
+
"insertedSymbols": "A"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"insertion": "ins_11521:T",
|
|
134
|
+
"count": 1,
|
|
135
|
+
"sequenceName": null,
|
|
136
|
+
"position": 11521,
|
|
137
|
+
"insertedSymbols": "T"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"insertion": "ins_18219:A",
|
|
141
|
+
"count": 1,
|
|
142
|
+
"sequenceName": null,
|
|
143
|
+
"position": 18219,
|
|
144
|
+
"insertedSymbols": "A"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"insertion": "ins_29005:A",
|
|
148
|
+
"count": 1,
|
|
149
|
+
"sequenceName": null,
|
|
150
|
+
"position": 29005,
|
|
151
|
+
"insertedSymbols": "A"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"insertion": "ins_2842:AC",
|
|
155
|
+
"count": 1,
|
|
156
|
+
"sequenceName": null,
|
|
157
|
+
"position": 2842,
|
|
158
|
+
"insertedSymbols": "AC"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"insertion": "ins_7021:T",
|
|
162
|
+
"count": 1,
|
|
163
|
+
"sequenceName": null,
|
|
164
|
+
"position": 7021,
|
|
165
|
+
"insertedSymbols": "T"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"insertion": "ins_14898:A",
|
|
169
|
+
"count": 1,
|
|
170
|
+
"sequenceName": null,
|
|
171
|
+
"position": 14898,
|
|
172
|
+
"insertedSymbols": "A"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"insertion": "ins_17019:T",
|
|
176
|
+
"count": 1,
|
|
177
|
+
"sequenceName": null,
|
|
178
|
+
"position": 17019,
|
|
179
|
+
"insertedSymbols": "T"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"insertion": "ins_4013:AGC",
|
|
183
|
+
"count": 1,
|
|
184
|
+
"sequenceName": null,
|
|
185
|
+
"position": 4013,
|
|
186
|
+
"insertedSymbols": "AGC"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"insertion": "ins_28250:CT",
|
|
190
|
+
"count": 1,
|
|
191
|
+
"sequenceName": null,
|
|
192
|
+
"position": 28250,
|
|
193
|
+
"insertedSymbols": "CT"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"insertion": "ins_29593:AT",
|
|
197
|
+
"count": 2,
|
|
198
|
+
"sequenceName": null,
|
|
199
|
+
"position": 29593,
|
|
200
|
+
"insertedSymbols": "AT"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"insertion": "ins_2857:A",
|
|
204
|
+
"count": 1,
|
|
205
|
+
"sequenceName": null,
|
|
206
|
+
"position": 2857,
|
|
207
|
+
"insertedSymbols": "A"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"insertion": "ins_21102:T",
|
|
211
|
+
"count": 1,
|
|
212
|
+
"sequenceName": null,
|
|
213
|
+
"position": 21102,
|
|
214
|
+
"insertedSymbols": "T"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"insertion": "ins_27231:TACATGGGGG",
|
|
218
|
+
"count": 2,
|
|
219
|
+
"sequenceName": null,
|
|
220
|
+
"position": 27231,
|
|
221
|
+
"insertedSymbols": "TACATGGGGG"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"insertion": "ins_19983:T",
|
|
225
|
+
"count": 1,
|
|
226
|
+
"sequenceName": null,
|
|
227
|
+
"position": 19983,
|
|
228
|
+
"insertedSymbols": "T"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"insertion": "ins_29725:T",
|
|
232
|
+
"count": 1,
|
|
233
|
+
"sequenceName": null,
|
|
234
|
+
"position": 29725,
|
|
235
|
+
"insertedSymbols": "T"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"insertion": "ins_29759:CACCGA",
|
|
239
|
+
"count": 1,
|
|
240
|
+
"sequenceName": null,
|
|
241
|
+
"position": 29759,
|
|
242
|
+
"insertedSymbols": "CACCGA"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"insertion": "ins_27863:TT",
|
|
246
|
+
"count": 1,
|
|
247
|
+
"sequenceName": null,
|
|
248
|
+
"position": 27863,
|
|
249
|
+
"insertedSymbols": "TT"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|