Skip to content

Commit beeaf6d

Browse files
committed
feat(frontend): add ClinVar hail tables to Data page
1 parent 9037938 commit beeaf6d

File tree

3 files changed

+162
-0
lines changed

3 files changed

+162
-0
lines changed

browser/src/DataPage/GnomadV2Downloads.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,26 @@ const GnomadV2Downloads = () => {
458458
</FileList>
459459
</DownloadsSection>
460460

461+
<DownloadsSection>
462+
<SectionTitle id="v2-clinvar-grch37">ClinVar</SectionTitle>
463+
<p>
464+
For more information about these files, see the{' '}
465+
<Link to="/help/clinvar-hts">help text</Link>.
466+
</p>
467+
468+
<FileList>
469+
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
470+
<ListItem>
471+
<GetUrlButtons
472+
gcsBucket="gnomad-browser-clinvar"
473+
label="ClinVar GRCh37 Browser Hail Table"
474+
path="/gnomad_clinvar_grch37.ht"
475+
includeAWS={false}
476+
/>
477+
</ListItem>
478+
</FileList>
479+
</DownloadsSection>
480+
461481
<DownloadsSection>
462482
<SectionTitle id="v2-resources">Resources</SectionTitle>
463483
<FileList>

browser/src/DataPage/GnomadV4Downloads.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,26 @@ const GnomadV4Downloads = () => {
553553
</FileList>
554554
</DownloadsSection>
555555

556+
<DownloadsSection>
557+
<SectionTitle id="v4-clinvar-grch38">ClinVar</SectionTitle>
558+
<p>
559+
For more information about these files, see the{' '}
560+
<Link to="/help/clinvar-hts">help text</Link>.
561+
</p>
562+
563+
<FileList>
564+
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
565+
<ListItem>
566+
<GetUrlButtons
567+
gcsBucket="gnomad-browser-clinvar"
568+
label="ClinVar GRCh38 Browser Hail Table"
569+
path="/gnomad_clinvar_grch38.ht"
570+
includeAWS={false}
571+
/>
572+
</ListItem>
573+
</FileList>
574+
</DownloadsSection>
575+
556576
<DownloadsSection>
557577
<SectionTitle id="v4-resources">Resources</SectionTitle>
558578
<FileList>

browser/src/DataPage/__snapshots__/DataPage.spec.tsx.snap

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7077,6 +7077,67 @@ exports[`Data Page has no unexpected changes 1`] = `
70777077
</li>
70787078
</ul>
70797079
</section>
7080+
<section
7081+
className="c16"
7082+
>
7083+
<span
7084+
className="c8"
7085+
>
7086+
<h2
7087+
className="c17"
7088+
>
7089+
<a
7090+
aria-hidden="true"
7091+
className="c10 c11"
7092+
href="#v4-clinvar-grch38"
7093+
id="v4-clinvar-grch38"
7094+
>
7095+
<img
7096+
alt=""
7097+
aria-hidden="true"
7098+
height={12}
7099+
src="test-file-stub"
7100+
width={12}
7101+
/>
7102+
</a>
7103+
ClinVar
7104+
</h2>
7105+
</span>
7106+
<p>
7107+
For more information about these files, see the
7108+
7109+
<a
7110+
className="-Link c14"
7111+
href="/help/clinvar-hts"
7112+
onClick={[Function]}
7113+
>
7114+
help text
7115+
</a>
7116+
.
7117+
</p>
7118+
<ul
7119+
className="c20"
7120+
>
7121+
<li
7122+
className="c21"
7123+
>
7124+
<span>
7125+
ClinVar GRCh38 Browser Hail Table
7126+
</span>
7127+
<br />
7128+
Show URL for
7129+
7130+
<button
7131+
aria-label="Show Google URL for ClinVar GRCh38 Browser Hail Table"
7132+
className="c22"
7133+
onClick={[Function]}
7134+
type="button"
7135+
>
7136+
Google
7137+
</button>
7138+
</li>
7139+
</ul>
7140+
</section>
70807141
<section
70817142
className="c16"
70827143
>
@@ -21127,6 +21188,67 @@ exports[`Data Page has no unexpected changes 1`] = `
2112721188
</li>
2112821189
</ul>
2112921190
</section>
21191+
<section
21192+
className="c16"
21193+
>
21194+
<span
21195+
className="c8"
21196+
>
21197+
<h2
21198+
className="c17"
21199+
>
21200+
<a
21201+
aria-hidden="true"
21202+
className="c10 c11"
21203+
href="#v2-clinvar-grch37"
21204+
id="v2-clinvar-grch37"
21205+
>
21206+
<img
21207+
alt=""
21208+
aria-hidden="true"
21209+
height={12}
21210+
src="test-file-stub"
21211+
width={12}
21212+
/>
21213+
</a>
21214+
ClinVar
21215+
</h2>
21216+
</span>
21217+
<p>
21218+
For more information about these files, see the
21219+
21220+
<a
21221+
className="-Link c14"
21222+
href="/help/clinvar-hts"
21223+
onClick={[Function]}
21224+
>
21225+
help text
21226+
</a>
21227+
.
21228+
</p>
21229+
<ul
21230+
className="c20"
21231+
>
21232+
<li
21233+
className="c21"
21234+
>
21235+
<span>
21236+
ClinVar GRCh37 Browser Hail Table
21237+
</span>
21238+
<br />
21239+
Show URL for
21240+
21241+
<button
21242+
aria-label="Show Google URL for ClinVar GRCh37 Browser Hail Table"
21243+
className="c22"
21244+
onClick={[Function]}
21245+
type="button"
21246+
>
21247+
Google
21248+
</button>
21249+
</li>
21250+
</ul>
21251+
</section>
2113021252
<section
2113121253
className="c16"
2113221254
>

0 commit comments

Comments
 (0)