Skip to content

Commit 0cdff0f

Browse files
committed
More
1 parent f5542a9 commit 0cdff0f

11 files changed

+141
-123
lines changed

src/stories/COVIDApollo.stories.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export const Simple: StoryObj<ApolloArgs> = {
1414
args: {
1515
locString: 'NC_045512.2:17894..28259',
1616
genome: 'SARS-CoV-2',
17-
divId: 'mysvg',
1817
trackName: 'Mature peptides',
1918
type: TRACK_TYPE.ISOFORM,
20-
},
19+
} satisfies ApolloArgs,
2120
}

src/stories/COVIDStatic.stories.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ export default {
1010
render: args => createExampleStatic(args),
1111
} satisfies Meta
1212

13+
const ncListUrlTemplate =
14+
'https://s3.amazonaws.com/agrjbrowse/docker/3.2.0/SARS-CoV-2/tracks/All Genes/{refseq}/trackData.jsonz'
15+
1316
export const Simple: StoryObj<StaticArgs> = {
1417
args: {
1518
locString: 'NC_045512.2:17894..28259',
1619
genome: 'SARS-CoV-2',
17-
divId: 'mysvg',
1820
type: TRACK_TYPE.ISOFORM,
19-
},
21+
ncListUrlTemplate,
22+
} satisfies StaticArgs,
2023
}

src/stories/FlyApollo.stories.ts

+12-24
Original file line numberDiff line numberDiff line change
@@ -14,111 +14,99 @@ export const Fly1: StoryObj<ApolloArgs> = {
1414
args: {
1515
locString: '2L:130639..135911',
1616
genome: 'fly',
17-
divId: 'mysvg',
1817
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
19-
},
18+
} satisfies ApolloArgs,
2019
}
2120

2221
export const Fly2: StoryObj<ApolloArgs> = {
2322
args: {
2423
locString: '2R:23974973..23989002',
2524
genome: 'fly',
26-
divId: 'viewerFlyExample3',
2725
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
2826
variantFilter: ['NT_033778.4:g.23975146T>C'],
29-
},
27+
} satisfies ApolloArgs,
3028
}
3129

3230
export const Fly3: StoryObj<ApolloArgs> = {
3331
args: {
3432
locString: '2R:23974973..23989002',
3533
genome: 'fly',
36-
divId: 'viewerFlyExample2',
3734
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
38-
},
35+
} satisfies ApolloArgs,
3936
}
4037

4138
export const Fly4: StoryObj<ApolloArgs> = {
4239
args: {
4340
locString: '2L:130639..135911',
4441
genome: 'fly',
45-
divId: 'viewerFlyExample1NoLabel',
4642
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
47-
},
43+
} satisfies ApolloArgs,
4844
}
4945

5046
export const Fly5: StoryObj<ApolloArgs> = {
5147
args: {
5248
locString: '2R:23974973..23989002',
5349
genome: 'fly',
54-
divId: 'viewerFlyExample3NoLabel',
5550
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
5651
variantFilter: ['NT_033778.4:g.23975146T>C'],
57-
},
52+
} satisfies ApolloArgs,
5853
}
5954

6055
export const Fly6: StoryObj<ApolloArgs> = {
6156
args: {
6257
locString: '2R:23974973..23989002',
6358
genome: 'fly',
64-
divId: 'viewerFlyExample2NoLabel',
6559
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
66-
},
60+
} satisfies ApolloArgs,
6761
}
6862

6963
export const Fly7: StoryObj<ApolloArgs> = {
7064
args: {
7165
locString: '2R:23974973..23989002',
7266
genome: 'fly',
73-
divId: 'viewerFlyExample2NoLabelAnd',
7467
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
75-
},
68+
} satisfies ApolloArgs,
7669
}
7770

7871
export const Fly8: StoryObj<ApolloArgs> = {
7972
args: {
8073
locString: '3R:22693140..22699809',
8174
genome: 'fly',
82-
divId: 'viewerFlyExample3',
8375
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
84-
},
76+
} satisfies ApolloArgs,
8577
}
8678

8779
export const Fly9: StoryObj<ApolloArgs> = {
8880
args: {
8981
locString: '2R:23974972..23989001',
9082
genome: 'fly',
91-
divId: 'viewerFlyExample4',
9283
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
93-
},
84+
} satisfies ApolloArgs,
9485
}
9586

9687
export const Fly10: StoryObj<ApolloArgs> = {
9788
args: {
9889
locString: '3R:22693140..22699809',
9990
genome: 'fly',
100-
divId: 'viewerFlyExample5',
10191
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
10292
variantFilter: ['FB:FBal0265700', 'FB:FBal0265699'],
103-
},
93+
} satisfies ApolloArgs,
10494
}
10595

10696
export const Fly11: StoryObj<ApolloArgs> = {
10797
args: {
10898
locString: '2R:18614210..18615018',
10999
genome: 'fly',
110-
divId: 'viewerFlyExample6',
111100
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
112101
variantFilter: ['FB:FBal0325512'],
113-
},
102+
} satisfies ApolloArgs,
114103
}
115104

116105
export const Fly12: StoryObj<ApolloArgs> = {
117106
args: {
118107
locString: 'X:2023822..2043557',
119108
genome: 'fly',
120-
divId: 'viewerFlyExample7',
121109
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
122110
variantFilter: ['FB:FBal0212726'],
123-
},
111+
} satisfies ApolloArgs,
124112
}

src/stories/FlyStatic.stories.ts

+41-24
Original file line numberDiff line numberDiff line change
@@ -10,115 +10,132 @@ export default {
1010
render: args => createExampleStatic(args),
1111
} satisfies Meta
1212

13+
const vcfTabixUrl =
14+
'https://s3.amazonaws.com/agrjbrowse/VCF/7.0.0/fly-latest.vcf.gz'
15+
const ncListUrlTemplate =
16+
'https://s3.amazonaws.com/agrjbrowse/docker/7.0.0/FlyBase/fruitfly/tracks/All_Genes/{refseq}/trackData.jsonz'
17+
1318
export const Fly1: StoryObj<StaticArgs> = {
1419
args: {
1520
locString: '2L:130639..135911',
1621
genome: 'fly',
17-
divId: 'mysvg',
1822
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
19-
},
23+
ncListUrlTemplate,
24+
vcfTabixUrl,
25+
} satisfies StaticArgs,
2026
}
2127

2228
export const Fly2: StoryObj<StaticArgs> = {
2329
args: {
2430
locString: '2R:23974973..23989002',
2531
genome: 'fly',
26-
divId: 'viewerFlyExample3',
2732
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
2833
variantFilter: ['NT_033778.4:g.23975146T>C'],
29-
},
34+
ncListUrlTemplate,
35+
vcfTabixUrl,
36+
} satisfies StaticArgs,
3037
}
3138

3239
export const Fly3: StoryObj<StaticArgs> = {
3340
args: {
3441
locString: '2R:23974973..23989002',
3542
genome: 'fly',
36-
divId: 'viewerFlyExample2',
3743
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
38-
},
44+
ncListUrlTemplate,
45+
vcfTabixUrl,
46+
} satisfies StaticArgs,
3947
}
4048

4149
export const Fly4: StoryObj<StaticArgs> = {
4250
args: {
4351
locString: '2L:130639..135911',
4452
genome: 'fly',
45-
divId: 'viewerFlyExample1NoLabel',
4653
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
47-
},
54+
ncListUrlTemplate,
55+
vcfTabixUrl,
56+
} satisfies StaticArgs,
4857
}
4958

5059
export const Fly5: StoryObj<StaticArgs> = {
5160
args: {
5261
locString: '2R:23974973..23989002',
5362
genome: 'fly',
54-
divId: 'viewerFlyExample3NoLabel',
5563
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
5664
variantFilter: ['NT_033778.4:g.23975146T>C'],
57-
},
65+
ncListUrlTemplate,
66+
vcfTabixUrl,
67+
} satisfies StaticArgs,
5868
}
5969

6070
export const Fly6: StoryObj<StaticArgs> = {
6171
args: {
6272
locString: '2R:23974973..23989002',
6373
genome: 'fly',
64-
divId: 'viewerFlyExample2NoLabel',
6574
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
66-
},
75+
ncListUrlTemplate,
76+
vcfTabixUrl,
77+
} satisfies StaticArgs,
6778
}
6879

6980
export const Fly7: StoryObj<StaticArgs> = {
7081
args: {
7182
locString: '2R:23974973..23989002',
7283
genome: 'fly',
73-
divId: 'viewerFlyExample2NoLabelAnd',
7484
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
75-
},
85+
ncListUrlTemplate,
86+
vcfTabixUrl,
87+
} satisfies StaticArgs,
7688
}
7789

7890
export const Fly8: StoryObj<StaticArgs> = {
7991
args: {
8092
locString: '3R:22693140..22699809',
8193
genome: 'fly',
82-
divId: 'viewerFlyExample3',
8394
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
84-
},
95+
ncListUrlTemplate,
96+
vcfTabixUrl,
97+
} satisfies StaticArgs,
8598
}
8699

87100
export const Fly9: StoryObj<StaticArgs> = {
88101
args: {
89102
locString: '2R:23974972..23989001',
90103
genome: 'fly',
91-
divId: 'viewerFlyExample4',
92104
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
93-
},
105+
ncListUrlTemplate,
106+
vcfTabixUrl,
107+
} satisfies StaticArgs,
94108
}
95109

96110
export const Fly10: StoryObj<StaticArgs> = {
97111
args: {
98112
locString: '3R:22693140..22699809',
99113
genome: 'fly',
100-
divId: 'viewerFlyExample5',
101114
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
102115
variantFilter: ['FB:FBal0265700', 'FB:FBal0265699'],
103-
},
116+
ncListUrlTemplate,
117+
vcfTabixUrl,
118+
} satisfies StaticArgs,
104119
}
105120

106121
export const Fly11: StoryObj<StaticArgs> = {
107122
args: {
108123
locString: '2R:18614210..18615018',
109124
genome: 'fly',
110-
divId: 'viewerFlyExample6',
111125
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
112126
variantFilter: ['FB:FBal0325512'],
113-
},
127+
ncListUrlTemplate,
128+
vcfTabixUrl,
129+
} satisfies StaticArgs,
114130
}
115131

116132
export const Fly12: StoryObj<StaticArgs> = {
117133
args: {
118134
locString: 'X:2023822..2043557',
119135
genome: 'fly',
120-
divId: 'viewerFlyExample7',
121136
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
122137
variantFilter: ['FB:FBal0212726'],
123-
},
138+
ncListUrlTemplate,
139+
vcfTabixUrl,
140+
} satisfies StaticArgs,
124141
}

src/stories/MouseApollo.stories.ts

+8-16
Original file line numberDiff line numberDiff line change
@@ -14,70 +14,62 @@ export const Mouse1: StoryObj<ApolloArgs> = {
1414
args: {
1515
locString: '18:11035719..11058885',
1616
genome: 'mouse',
17-
divId: 'viewerMouseExample1',
1817
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
19-
},
18+
} satisfies ApolloArgs,
2019
}
2120

2221
export const Mouse2: StoryObj<ApolloArgs> = {
2322
args: {
2423
locString: '18:11042037..11052567',
2524
genome: 'mouse',
26-
divId: 'viewerMouseExample5',
2725
type: TRACK_TYPE.ISOFORM,
28-
},
26+
} satisfies ApolloArgs,
2927
}
3028

3129
export const Mouse3: StoryObj<ApolloArgs> = {
3230
args: {
3331
locString: '17:46007760..46041588',
3432
genome: 'mouse',
35-
divId: 'viewerMouseExample4',
3633
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
37-
},
34+
} satisfies ApolloArgs,
3835
}
3936

4037
export const Mouse4: StoryObj<ApolloArgs> = {
4138
args: {
4239
locString: '11:69550420..69563869',
4340
genome: 'mouse',
44-
divId: 'viewerMouseExample3',
4541
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
46-
},
42+
} satisfies ApolloArgs,
4743
}
4844

4945
export const Mouse5: StoryObj<ApolloArgs> = {
5046
args: {
5147
locString: '3:115707662..115717830',
5248
genome: 'mouse',
53-
divId: 'viewerMouseExample2',
5449
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
55-
},
50+
} satisfies ApolloArgs,
5651
}
5752

5853
export const Mouse6: StoryObj<ApolloArgs> = {
5954
args: {
6055
locString: '6:113619452..113636198',
6156
genome: 'mouse',
62-
divId: 'viewerMouseExample1',
6357
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
64-
},
58+
} satisfies ApolloArgs,
6559
}
6660

6761
export const Mouse7: StoryObj<ApolloArgs> = {
6862
args: {
6963
locString: '6:113619452..113636198',
7064
genome: 'mouse',
71-
divId: 'viewerMouseExample1NoLabel',
7265
type: TRACK_TYPE.ISOFORM_EMBEDDED_VARIANT,
73-
},
66+
} satisfies ApolloArgs,
7467
}
7568

7669
export const Mouse8: StoryObj<ApolloArgs> = {
7770
args: {
7871
locString: '6:113619452..113636198',
7972
genome: 'mouse',
80-
divId: 'viewerMouseExample1NoLabelAnd',
8173
type: TRACK_TYPE.ISOFORM_AND_VARIANT,
82-
},
74+
} satisfies ApolloArgs,
8375
}

0 commit comments

Comments
 (0)