Skip to content

Commit a42e0e3

Browse files
Change populations to ancestry_groups in short tandem repat page query and associated fields
1 parent 540099a commit a42e0e3

File tree

5 files changed

+308
-306
lines changed

5 files changed

+308
-306
lines changed

browser/src/ShortTandemRepeatPage/ShortTandemRepeatPage.tsx

+10-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import ShortTandemRepeatAdjacentRepeatSection from './ShortTandemRepeatAdjacentR
2929
type ShortTandemRepeatRepeatUnit = {
3030
repeat_unit: string
3131
distribution: number[][]
32-
populations: {
32+
ancestry_groups: {
3333
id: string
3434
distribution: number[][]
3535
}[]
@@ -46,22 +46,22 @@ export type ShortTandemRepeatAdjacentRepeat = {
4646
repeat_units: string[]
4747
allele_size_distribution: {
4848
distribution: number[][]
49-
populations: {
49+
ancestry_groups: {
5050
id: string
5151
distribution: number[][]
5252
}[]
5353
repeat_units: ShortTandemRepeatRepeatUnit[]
5454
}
5555
genotype_distribution: {
5656
distribution: number[][]
57-
populations: {
57+
ancestry_groups: {
5858
id: string
5959
distribution: number[][]
6060
}[]
6161
repeat_units: {
6262
repeat_units: string[]
6363
distribution: number[][]
64-
populations: {
64+
ancestry_groups: {
6565
id: string
6666
distribution: number[][]
6767
}[]
@@ -101,22 +101,22 @@ export type ShortTandemRepeat = {
101101
}[]
102102
allele_size_distribution: {
103103
distribution: number[][]
104-
populations: {
104+
ancestry_groups: {
105105
id: string
106106
distribution: number[][]
107107
}[]
108108
repeat_units: ShortTandemRepeatRepeatUnit[]
109109
}
110110
genotype_distribution: {
111111
distribution: number[][]
112-
populations: {
112+
ancestry_groups: {
113113
id: string
114114
distribution: number[][]
115115
}[]
116116
repeat_units: {
117117
repeat_units: string[]
118118
distribution: number[][]
119-
populations: {
119+
ancestry_groups: {
120120
id: string
121121
distribution: number[][]
122122
}[]
@@ -183,7 +183,9 @@ const ShortTandemRepeatPage = ({ datasetId, shortTandemRepeat }: ShortTandemRepe
183183

184184
const [showAdjacentRepeats, setShowAdjacentRepeats] = useState(false)
185185

186-
const populationIds = shortTandemRepeat.allele_size_distribution.populations.map((pop) => pop.id)
186+
const populationIds = shortTandemRepeat.allele_size_distribution.ancestry_groups.map(
187+
(pop) => pop.id
188+
)
187189

188190
const allRepeatUnitsByClassification: Record<string, string[]> = {}
189191
shortTandemRepeat.repeat_units.forEach((repeatUnit) => {

browser/src/ShortTandemRepeatPage/ShortTandemRepeatPageContainer.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,29 @@ query ${operationName}($strId: String!, $datasetId: DatasetId!) {
4343
}
4444
allele_size_distribution {
4545
distribution
46-
populations {
46+
ancestry_groups {
4747
id
4848
distribution
4949
}
5050
repeat_units {
5151
repeat_unit
5252
distribution
53-
populations {
53+
ancestry_groups {
5454
id
5555
distribution
5656
}
5757
}
5858
}
5959
genotype_distribution {
6060
distribution
61-
populations {
61+
ancestry_groups {
6262
id
6363
distribution
6464
}
6565
repeat_units {
6666
repeat_units
6767
distribution
68-
populations {
68+
ancestry_groups {
6969
id
7070
distribution
7171
}
@@ -87,29 +87,29 @@ query ${operationName}($strId: String!, $datasetId: DatasetId!) {
8787
repeat_units
8888
allele_size_distribution {
8989
distribution
90-
populations {
90+
ancestry_groups {
9191
id
9292
distribution
9393
}
9494
repeat_units {
9595
repeat_unit
9696
distribution
97-
populations {
97+
ancestry_groups {
9898
id
9999
distribution
100100
}
101101
}
102102
}
103103
genotype_distribution {
104104
distribution
105-
populations {
105+
ancestry_groups {
106106
id
107107
distribution
108108
}
109109
repeat_units {
110110
repeat_units
111111
distribution
112-
populations {
112+
ancestry_groups {
113113
id
114114
distribution
115115
}

0 commit comments

Comments
 (0)