File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff 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} )
Original file line number Diff line number Diff line change @@ -13,11 +13,15 @@ type Props = {
1313}
1414
1515const allOfUsCMRGGenes = [ 'CBS' , 'KCNE1' , 'CRYAA' ]
16+ const vep115Genes = [ 'RNU4ATAC' ]
1617
1718const 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
Original file line number Diff line number Diff 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+
3556exports [` GeneFlags renders chip flag if present on gene 1` ] = `
3657<p >
3758 <span
You can’t perform that action at this time.
0 commit comments