Skip to content

Commit 540099a

Browse files
Change populations to ancestry_groups in mitochondrial variant query and associated fields
1 parent f218a0e commit 540099a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

browser/src/MitochondrialVariantPage/MitochondrialVariantPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export type MitochondrialVariant = {
9999
ac_het: number
100100
}[]
101101
max_heteroplasmy: number | null
102-
populations: {
102+
ancestry_groups: {
103103
id: PopulationId
104104
an: number
105105
ac_het: number
@@ -330,7 +330,7 @@ query ${operationName}($variantId: String!, $datasetId: DatasetId!, $referenceGe
330330
mitotip_trna_prediction
331331
pon_ml_probability_of_pathogenicity
332332
pon_mt_trna_prediction
333-
populations {
333+
ancestry_groups {
334334
id
335335
ac_het
336336
ac_hom

browser/src/MitochondrialVariantPage/MitochondrialVariantPopulationFrequenciesTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const MitochondrialVariantPopulationFrequenciesTable = ({
8484
)
8585
}
8686

87-
const renderedPopulations = variant.populations
87+
const renderedPopulations = variant.ancestry_groups
8888
.map((population) => ({
8989
...population,
9090
af_hom: population.an !== 0 ? population.ac_hom / population.an : 0,

browser/src/__factories__/MitochondrialVariant.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const mitochondrialVariantFactory = Factory.define<MitochondrialVariant>(
1515
haplogroup_defining = null,
1616
haplogroups = [],
1717
max_heteroplasmy = 0.1,
18-
populations = [],
18+
ancestry_groups = [],
1919
pos = 123,
2020
ref = 'A',
2121
rsids = null,
@@ -50,7 +50,7 @@ const mitochondrialVariantFactory = Factory.define<MitochondrialVariant>(
5050
haplogroup_defining,
5151
haplogroups,
5252
max_heteroplasmy,
53-
populations,
53+
ancestry_groups,
5454
pos,
5555
ref,
5656
reference_genome: 'GRCh38',

0 commit comments

Comments
 (0)