Skip to content

Commit

Permalink
Add variant page link to All of Us data browser
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Jul 17, 2023
1 parent 63659f6 commit 608b5b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions browser/src/VariantPage/ReferenceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const ReferenceList = ({ variant }: Props) => {
const ucscURL = `https://genome.ucsc.edu/cgi-bin/hgTracks?db=${ucscReferenceGenomeId}&highlight=${ucscReferenceGenomeId}.chr${chrom}%3A${pos}-${
pos + (ref.length - 1)
}&position=chr${chrom}%3A${pos - 25}-${pos + (ref.length - 1) + 25}`
const allOfUsURL = `https://databrowser.researchallofus.org/variants/${variant.variant_id}`

return (
// @ts-expect-error TS(2746) FIXME: This JSX tag's 'children' prop expects a single ch... Remove this comment to see the full error message
Expand All @@ -96,6 +97,14 @@ export const ReferenceList = ({ variant }: Props) => {
</ExternalLink>
</ListItem>
)}

{variant.reference_genome === 'GRCh38' && (
// @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>
{/* @ts-expect-error TS(2786) FIXME: 'ExternalLink' cannot be used as a JSX component. */}
<ExternalLink href={allOfUsURL}>All of Us</ExternalLink>
</ListItem>
)}
</List>
)
}

0 comments on commit 608b5b5

Please sign in to comment.