Skip to content

Commit a5802b2

Browse files
Add VEP 115 warning to RNU4ATAC
1 parent a40c452 commit a5802b2

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

browser/src/GenePage/GeneFlags.spec.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,12 @@ describe('GeneFlags', () => {
2929

3030
expect(tree).toMatchSnapshot()
3131
})
32+
33+
test('renders VEP 115 warning for RNU4ATAC', () => {
34+
const testGene = geneFactory.build({ symbol: 'RNU4ATAC', reference_genome: 'GRCh38' })
35+
36+
const tree = renderer.create(<GeneFlags gene={testGene} />)
37+
38+
expect(tree).toMatchSnapshot()
39+
})
3240
})

browser/src/GenePage/GeneFlags.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ type Props = {
1313
}
1414

1515
const allOfUsCMRGGenes = ['CBS', 'KCNE1', 'CRYAA']
16+
const vep115Genes = ['RNU4ATAC']
1617

1718
const GeneFlags = ({ gene }: Props) => {
1819
const shouldDisplayCMRGWarning =
1920
gene.reference_genome === 'GRCh38' && allOfUsCMRGGenes.includes(gene.symbol)
2021

22+
const shouldDisplayVEP115Warning =
23+
gene.reference_genome === 'GRCh38' && vep115Genes.includes(gene.symbol)
24+
2125
return (
2226
<>
2327
{shouldDisplayCMRGWarning && (
@@ -35,6 +39,14 @@ const GeneFlags = ({ gene }: Props) => {
3539
) callset to remedy this issue in the future.
3640
</p>
3741
)}
42+
{shouldDisplayVEP115Warning && (
43+
<p>
44+
<Badge level="warning">Warning</Badge> MANE Select and variant consequence information in
45+
this gene were annotated using Ensembl VEP version 115 (GENCODE v49). For more
46+
information, see our{' '}
47+
<ExternalLink href="https://gnomad.broadinstitute.org/help/vep">help page</ExternalLink>.
48+
</p>
49+
)}
3850
{gene.flags.includes('chip') && (
3951
<p>
4052
<Badge level="warning">Note</Badge> Analysis of allele balance and age data indicates that

browser/src/GenePage/__snapshots__/GeneFlags.spec.tsx.snap

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,27 @@ exports[`GeneFlags renders CMRG flag if one of 3 relevant genes 1`] = `
3232
</p>
3333
`;
3434

35+
exports[`GeneFlags renders VEP 115 warning for RNU4ATAC 1`] = `
36+
<p>
37+
<span
38+
className="Badge__BadgeWrapper-sc-j4izdp-1 gRPPXC"
39+
>
40+
Warning
41+
</span>
42+
MANE Select and variant consequence information in this gene were annotated using Ensembl VEP version 115 (GENCODE v49). For more information, see our
43+
44+
<a
45+
className="Link-sc-14lgydv-0 Link__ExternalLink-sc-14lgydv-1 kswbwW"
46+
href="https://gnomad.broadinstitute.org/help/vep"
47+
rel="noopener noreferrer"
48+
target="_blank"
49+
>
50+
help page
51+
</a>
52+
.
53+
</p>
54+
`;
55+
3556
exports[`GeneFlags renders chip flag if present on gene 1`] = `
3657
<p>
3758
<span

0 commit comments

Comments
 (0)