Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add v4 regional missense constraint #1662

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading