Skip to content

Commit

Permalink
feat(browser): update rmc with v4
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Nov 26, 2024
1 parent c1208c5 commit 5b0e77c
Show file tree
Hide file tree
Showing 3 changed files with 480 additions and 4 deletions.
7 changes: 4 additions & 3 deletions browser/src/GenePage/GenePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
isExac,
hasCopyNumberVariants,
isV2,
isV4,
} from '@gnomad/dataset-metadata/metadata'
import ConstraintTable from '../ConstraintTable/ConstraintTable'
import VariantCooccurrenceCountsTable, {
Expand Down Expand Up @@ -134,7 +135,7 @@ export type Gene = GeneMetadata & {
id: string
}[]
exac_regional_missense_constraint_regions?: any
gnomad_v2_regional_missense_constraint?: RegionalMissenseConstraint
gnomad_regional_missense_constraint?: RegionalMissenseConstraint
variants: Variant[]
structural_variants: StructuralVariant[]
copy_number_variants: CopyNumberVariant[]
Expand Down Expand Up @@ -552,9 +553,9 @@ const GenePage = ({ datasetId, gene, geneId }: Props) => {
/>
)}

{isV2(datasetId) && (
{(isV2(datasetId) || isV4(datasetId)) && (
<RegionalMissenseConstraintTrack
regionalMissenseConstraint={gene.gnomad_v2_regional_missense_constraint}
regionalMissenseConstraint={gene.gnomad_regional_missense_constraint}
gene={gene}
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion browser/src/GenePage/GenePageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ query ${operationName}($geneId: String, $geneSymbol: String, $referenceGenome: R
obs_exp
chisq_diff_null
}
gnomad_v2_regional_missense_constraint {
gnomad_regional_missense_constraint {
passed_qc
has_no_rmc_evidence
regions {
Expand Down
Loading

0 comments on commit 5b0e77c

Please sign in to comment.