Skip to content

Commit

Permalink
refactor(browser): generalize download links associated files
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed May 6, 2024
1 parent 0ac3307 commit 4d7ff61
Show file tree
Hide file tree
Showing 7 changed files with 727 additions and 282 deletions.
2 changes: 1 addition & 1 deletion browser/src/DownloadsPage/ExacDownloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ExacDownloads = () => (
path="/legacy/exac_browser/ExAC.r1.sites.vep.vcf.gz"
size="4.56 GiB"
md5="f2b57a6f0660a00e7550f62da2654948"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
</FileList>
Expand Down
22 changes: 11 additions & 11 deletions browser/src/DownloadsPage/GnomadV2Downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const GnomadV2Downloads = () => {
path="/release/2.1.1/vcf/exomes/gnomad.exomes.r2.1.1.sites.vcf.bgz"
size="58.81 GiB"
md5="f034173bf6e57fbb5e8ce680e95134f2"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{exomeChromosomeVcfs.map(({ chrom, size, md5 }) => (
Expand All @@ -223,7 +223,7 @@ const GnomadV2Downloads = () => {
path={`/release/2.1.1/vcf/exomes/gnomad.exomes.r2.1.1.sites.${chrom}.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand All @@ -247,7 +247,7 @@ const GnomadV2Downloads = () => {
path="/release/2.1.1/vcf/genomes/gnomad.genomes.r2.1.1.sites.vcf.bgz"
size="460.93 GiB"
md5="e6eadf5ac7b2821b40f350da6e1279a2"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
Expand All @@ -257,7 +257,7 @@ const GnomadV2Downloads = () => {
path="/release/2.1.1/vcf/genomes/gnomad.genomes.r2.1.1.exome_calling_intervals.sites.vcf.bgz"
size="9.7 GiB"
md5="e5bd69a0f89468149bc3afca78cd5acc"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{genomeChromosomeVcfs.map(({ chrom, size, md5 }) => (
Expand All @@ -268,7 +268,7 @@ const GnomadV2Downloads = () => {
path={`/release/2.1.1/vcf/genomes/gnomad.genomes.r2.1.1.sites.${chrom}.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand Down Expand Up @@ -331,47 +331,47 @@ const GnomadV2Downloads = () => {
<DownloadLinks
label="SV 2.1 sites VCF"
path="/papers/2019-sv/gnomad_v2.1_sv.sites.vcf.gz"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<ListItem>
<DownloadLinks
label="SV 2.1 sites BED"
path="/papers/2019-sv/gnomad_v2.1_sv.sites.bed.gz"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<ListItem>
<DownloadLinks
label="SV 2.1 (controls) sites VCF"
path="/papers/2019-sv/gnomad_v2.1_sv.controls_only.sites.vcf.gz"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<ListItem>
<DownloadLinks
label="SV 2.1 (controls) sites BED"
path="/papers/2019-sv/gnomad_v2.1_sv.controls_only.sites.bed.gz"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<ListItem>
<DownloadLinks
label="SV 2.1 (non-neuro) sites VCF"
path="/papers/2019-sv/gnomad_v2.1_sv.nonneuro.sites.vcf.gz"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<ListItem>
<DownloadLinks
label="SV 2.1 (non-neuro) sites BED"
path="/papers/2019-sv/gnomad_v2.1_sv.nonneuro.sites.bed.gz"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
</FileList>
Expand Down
8 changes: 4 additions & 4 deletions browser/src/DownloadsPage/GnomadV2LiftoverDownloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const Gnomadv2LiftoverDownloads = () => {
path="/release/2.1.1/liftover_grch38/vcf/exomes/gnomad.exomes.r2.1.1.sites.liftover_grch38.vcf.bgz"
size="85.31 GiB"
md5="cff8d0cfed50adc9211d1feaed2d4ca7"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{liftoverExomeChromosomeVcfs.map(({ chrom, size, md5 }) => (
Expand All @@ -120,7 +120,7 @@ const Gnomadv2LiftoverDownloads = () => {
path={`/release/2.1.1/liftover_grch38/vcf/exomes/gnomad.exomes.r2.1.1.sites.${chrom}.liftover_grch38.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand All @@ -144,7 +144,7 @@ const Gnomadv2LiftoverDownloads = () => {
path="/release/2.1.1/liftover_grch38/vcf/genomes/gnomad.genomes.r2.1.1.sites.liftover_grch38.vcf.bgz"
size="743.06 GiB"
md5="83de3d5b52669f714e810d4fcf047c18"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{liftoverGenomeChromosomeVcfs.map(({ chrom, size, md5 }) => (
Expand All @@ -155,7 +155,7 @@ const Gnomadv2LiftoverDownloads = () => {
path={`/release/2.1.1/liftover_grch38/vcf/genomes/gnomad.genomes.r2.1.1.sites.${chrom}.liftover_grch38.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand Down
6 changes: 3 additions & 3 deletions browser/src/DownloadsPage/GnomadV3Downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const GnomadV3Downloads = () => (
path={`/release/3.1.2/vcf/genomes/gnomad.genomes.v3.1.2.sites.chr${chrom}.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand Down Expand Up @@ -206,7 +206,7 @@ const GnomadV3Downloads = () => (
path={`/release/3.1.2/vcf/genomes/gnomad.genomes.v3.1.2.hgdp_tgp.chr${chrom}.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand Down Expand Up @@ -238,7 +238,7 @@ const GnomadV3Downloads = () => (
path="/release/3.1/vcf/genomes/gnomad.genomes.v3.1.sites.chrM.vcf.bgz"
size="4.77 MiB"
md5="d0ef2bd882ae44236897d743cb5528cf"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
Expand Down
10 changes: 5 additions & 5 deletions browser/src/DownloadsPage/GnomadV4Downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const GnomadV4Downloads = () => {
path={`/release/4.1/vcf/exomes/gnomad.exomes.v4.1.sites.chr${chrom}.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand All @@ -172,7 +172,7 @@ const GnomadV4Downloads = () => {
path={`/release/4.1/vcf/genomes/gnomad.genomes.v4.1.sites.chr${chrom}.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand All @@ -199,7 +199,7 @@ const GnomadV4Downloads = () => {
path={`/release/4.1/vcf/joint/gnomad.joint.v4.1.sites.chr${chrom}.vcf.bgz`}
size={size}
md5={md5}
includeTBI
associatedFileType="TBI"
/>
</ListItem>
))}
Expand Down Expand Up @@ -358,7 +358,7 @@ const GnomadV4Downloads = () => {
path="/release/4.1/genome_sv/gnomad.v4.1.sv.sites.vcf.gz"
size="1.62 GiB"
md5="3ee614951c2f0c36659842876f7ce0ba"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
{/* @ts-expect-error TS(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
Expand All @@ -368,7 +368,7 @@ const GnomadV4Downloads = () => {
path="/release/4.1/genome_sv/gnomad.v4.1.sv.non_neuro_controls.sites.vcf.gz"
size="3.19 GiB"
md5="442b43a740f7f12f1f9b054f9d09b530"
includeTBI
associatedFileType="TBI"
/>
</ListItem>
</FileList>
Expand Down
Loading

0 comments on commit 4d7ff61

Please sign in to comment.