Skip to content

Commit

Permalink
Add API support for exome FAFMax
Browse files Browse the repository at this point in the history
  • Loading branch information
phildarnowsky-broad committed May 10, 2024
1 parent 61ea796 commit 4503a94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 9 additions & 8 deletions graphql-api/src/graphql/types/variant.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ type LoFCuration {
project: String!
}

type Fafmax {
faf95_max: Float
faf95_max_gen_anc: String
faf99_max: Float
faf99_max_gen_anc: String
}

type VariantSequencingTypeData {
ac: Int
an: Int
Expand All @@ -107,6 +114,7 @@ type VariantSequencingTypeData {
filters: [String!]
populations: [VariantPopulation]
faf95: VariantFilteringAlleleFrequency
fafmax: Fafmax

# Deprecated - calculate from AC and AN
# Preserved for compatibility with existing browser queries
Expand All @@ -117,21 +125,14 @@ type VariantSequencingTypeData {
ac_hemi: Int
}

type JointFafmax {
faf95_max: Float
faf95_max_gen_anc: String
faf99_max: Float
faf99_max_gen_anc: String
}

type VariantJointSequencingTypeData {
ac: Int
an: Int
homozygote_count: Int
hemizygote_count: Int
filters: [String!]
populations: [VariantPopulation]
fafmax: JointFafmax
fafmax: Fafmax
}

type NonCodingConstraintRegion {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ const shapeVariantSummary = (subset: Subset, context: any) => {
(pop: any) => !(pop.id.includes('_') || pop.id === 'XX' || pop.id === 'XY')
),
filters: exomeFilters,
fafmax: variant.exome.fafmax[subset],
}
: null,
genome: hasGenomeVariant
Expand Down Expand Up @@ -349,6 +350,7 @@ const getMultiVariantSourceFields = (
`value.genome.freq.${genomeSubset}`,
`value.joint.freq.${jointSubset}`,
'value.exome.filters',
'value.exome.fafmax',
'value.genome.filters',
'value.joint.filters',
'value.alleles',
Expand Down

0 comments on commit 4503a94

Please sign in to comment.