Skip to content

Commit afd0d3a

Browse files
committed
feat(browser): add browser hail table links to Downloads page
1 parent 5958eac commit afd0d3a

File tree

3 files changed

+280
-0
lines changed

3 files changed

+280
-0
lines changed

browser/src/DownloadsPage/GnomadV2Downloads.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
StyledParagraph,
1616
} from './downloadsPageStyles'
1717

18+
import Link from '../Link'
19+
1820
const exomeChromosomeVcfs = [
1921
{ chrom: '1', size: '5.77 GiB', md5: '9817acdf1d9600efb3355e4cb4b7ee1f' },
2022
{ chrom: '2', size: '4.2 GiB', md5: 'c2822d7a914d06ede28d1078970336ac' },
@@ -284,6 +286,29 @@ const GnomadV2Downloads = () => {
284286
</ColumnsWrapper>
285287
</DownloadsSection>
286288

289+
<DownloadsSection>
290+
<SectionTitle id="v2-browser-tables">Browser Tables</SectionTitle>
291+
292+
<p>
293+
For more information about these files, see our{' '}
294+
<Link to="https://gnomad.broadinstitute.org/new/2024-08-release-gnomad-browser-tables">
295+
changelog entry
296+
</Link>{' '}
297+
on the browser tables, and the <Link to="/help/v4-browser-hts">help text</Link>.
298+
</p>
299+
300+
<h3>Browser gene models</h3>
301+
<FileList>
302+
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
303+
<ListItem>
304+
<GetUrlButtons
305+
label="Browser GRCh37 gene models Hail Table"
306+
path="/resources/grch37/genes/gnomad.genes.GRCh37.GENCODEv19.ht"
307+
/>
308+
</ListItem>
309+
</FileList>
310+
</DownloadsSection>
311+
287312
<DownloadsSection>
288313
<SectionTitle id="v2-coverage">Coverage</SectionTitle>
289314
<FileList>

browser/src/DownloadsPage/GnomadV4Downloads.tsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,40 @@ const GnomadV4Downloads = () => {
265265
</ColumnsWrapper>
266266
</DownloadsSection>
267267

268+
<DownloadsSection>
269+
<SectionTitle id="v4-browser-tables">Browser Tables</SectionTitle>
270+
271+
<p>
272+
For more information about these files, see our{' '}
273+
<Link to="https://gnomad.broadinstitute.org/new/2024-08-release-gnomad-browser-tables">
274+
changelog entry
275+
</Link>{' '}
276+
on the browser tables, and the <Link to="/help/v4-browser-hts">help text</Link>.
277+
</p>
278+
279+
<h3>Browser variants</h3>
280+
<FileList>
281+
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
282+
<ListItem>
283+
<GetUrlButtons
284+
label="Browser variants Hail Table"
285+
path="/release/4.1/ht/browser/gnomad.browser.v4.1.sites.ht"
286+
/>
287+
</ListItem>
288+
</FileList>
289+
290+
<h3>Browser gene models</h3>
291+
<FileList>
292+
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
293+
<ListItem>
294+
<GetUrlButtons
295+
label="Browser GRCh38 gene models Hail Table"
296+
path="/resources/grch38/genes/gnomad.genes.GRCh38.GENCODEv39.ht"
297+
/>
298+
</ListItem>
299+
</FileList>
300+
</DownloadsSection>
301+
268302
<DownloadsSection>
269303
<SectionTitle id="v4-coverage">Coverage</SectionTitle>
270304
<FileList>

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

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7310,6 +7310,138 @@ exports[`Downloads Page has no unexpected changes 1`] = `
73107310
</div>
73117311
</div>
73127312
</section>
7313+
<section
7314+
className="c15"
7315+
>
7316+
<span
7317+
className="c6"
7318+
>
7319+
<h2
7320+
className="c16"
7321+
>
7322+
<a
7323+
aria-hidden="true"
7324+
className="c8 c9"
7325+
href="#v4-browser-tables"
7326+
id="v4-browser-tables"
7327+
>
7328+
<img
7329+
alt=""
7330+
aria-hidden="true"
7331+
height={12}
7332+
src="test-file-stub"
7333+
width={12}
7334+
/>
7335+
</a>
7336+
Browser Tables
7337+
</h2>
7338+
</span>
7339+
<p>
7340+
For more information about these files, see our
7341+
<a
7342+
className="-Link c13"
7343+
href="https://gnomad.broadinstitute.org/new/2024-08-release-gnomad-browser-tables"
7344+
onClick={[Function]}
7345+
>
7346+
changelog entry
7347+
</a>
7348+
on the browser tables, and the
7349+
<a
7350+
className="-Link c13"
7351+
href="/help/v4-browser-hts"
7352+
onClick={[Function]}
7353+
>
7354+
help text
7355+
</a>
7356+
.
7357+
</p>
7358+
<h3>
7359+
Browser variants
7360+
</h3>
7361+
<ul
7362+
className="c19"
7363+
>
7364+
<li
7365+
className="c20"
7366+
>
7367+
<span>
7368+
Browser variants Hail Table
7369+
</span>
7370+
<br />
7371+
Show URL for
7372+
7373+
<button
7374+
aria-label="Show Google URL for Browser variants Hail Table"
7375+
className="c21"
7376+
onClick={[Function]}
7377+
type="button"
7378+
>
7379+
Google
7380+
</button>
7381+
/
7382+
<button
7383+
aria-label="Show Amazon URL for Browser variants Hail Table"
7384+
className="c21"
7385+
onClick={[Function]}
7386+
type="button"
7387+
>
7388+
Amazon
7389+
</button>
7390+
/
7391+
<button
7392+
aria-label="Show Microsoft URL for Browser variants Hail Table"
7393+
className="c21"
7394+
onClick={[Function]}
7395+
type="button"
7396+
>
7397+
Microsoft
7398+
</button>
7399+
</li>
7400+
</ul>
7401+
<h3>
7402+
Browser gene models
7403+
</h3>
7404+
<ul
7405+
className="c19"
7406+
>
7407+
<li
7408+
className="c20"
7409+
>
7410+
<span>
7411+
Browser GRCh38 gene models Hail Table
7412+
</span>
7413+
<br />
7414+
Show URL for
7415+
7416+
<button
7417+
aria-label="Show Google URL for Browser GRCh38 gene models Hail Table"
7418+
className="c21"
7419+
onClick={[Function]}
7420+
type="button"
7421+
>
7422+
Google
7423+
</button>
7424+
/
7425+
<button
7426+
aria-label="Show Amazon URL for Browser GRCh38 gene models Hail Table"
7427+
className="c21"
7428+
onClick={[Function]}
7429+
type="button"
7430+
>
7431+
Amazon
7432+
</button>
7433+
/
7434+
<button
7435+
aria-label="Show Microsoft URL for Browser GRCh38 gene models Hail Table"
7436+
className="c21"
7437+
onClick={[Function]}
7438+
type="button"
7439+
>
7440+
Microsoft
7441+
</button>
7442+
</li>
7443+
</ul>
7444+
</section>
73137445
<section
73147446
className="c15"
73157447
>
@@ -24426,6 +24558,95 @@ exports[`Downloads Page has no unexpected changes 1`] = `
2442624558
</div>
2442724559
</div>
2442824560
</section>
24561+
<section
24562+
className="c15"
24563+
>
24564+
<span
24565+
className="c6"
24566+
>
24567+
<h2
24568+
className="c16"
24569+
>
24570+
<a
24571+
aria-hidden="true"
24572+
className="c8 c9"
24573+
href="#v2-browser-tables"
24574+
id="v2-browser-tables"
24575+
>
24576+
<img
24577+
alt=""
24578+
aria-hidden="true"
24579+
height={12}
24580+
src="test-file-stub"
24581+
width={12}
24582+
/>
24583+
</a>
24584+
Browser Tables
24585+
</h2>
24586+
</span>
24587+
<p>
24588+
For more information about these files, see our
24589+
<a
24590+
className="-Link c13"
24591+
href="https://gnomad.broadinstitute.org/new/2024-08-release-gnomad-browser-tables"
24592+
onClick={[Function]}
24593+
>
24594+
changelog entry
24595+
</a>
24596+
on the browser tables, and the
24597+
<a
24598+
className="-Link c13"
24599+
href="/help/v4-browser-hts"
24600+
onClick={[Function]}
24601+
>
24602+
help text
24603+
</a>
24604+
.
24605+
</p>
24606+
<h3>
24607+
Browser gene models
24608+
</h3>
24609+
<ul
24610+
className="c19"
24611+
>
24612+
<li
24613+
className="c20"
24614+
>
24615+
<span>
24616+
Browser GRCh37 gene models Hail Table
24617+
</span>
24618+
<br />
24619+
Show URL for
24620+
24621+
<button
24622+
aria-label="Show Google URL for Browser GRCh37 gene models Hail Table"
24623+
className="c21"
24624+
onClick={[Function]}
24625+
type="button"
24626+
>
24627+
Google
24628+
</button>
24629+
/
24630+
<button
24631+
aria-label="Show Amazon URL for Browser GRCh37 gene models Hail Table"
24632+
className="c21"
24633+
onClick={[Function]}
24634+
type="button"
24635+
>
24636+
Amazon
24637+
</button>
24638+
/
24639+
<button
24640+
aria-label="Show Microsoft URL for Browser GRCh37 gene models Hail Table"
24641+
className="c21"
24642+
onClick={[Function]}
24643+
type="button"
24644+
>
24645+
Microsoft
24646+
</button>
24647+
</li>
24648+
</ul>
24649+
</section>
2442924650
<section
2443024651
className="c15"
2443124652
>

0 commit comments

Comments
 (0)