Skip to content

Commit 32853c9

Browse files
Update GraphQL schema for STRs to reflect new ES schema
1 parent 3ff159d commit 32853c9

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

graphql-api/src/graphql/types/short-tandem-repeat.graphql

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -31,52 +31,48 @@ type ShortTandemRepeatRepeatUnit {
3131
classification: String!
3232
}
3333

34-
type ShortTandemRepeatAlleleSizeDistributionPopulation {
35-
id: String!
36-
distribution: [[Int!]!]!
37-
}
38-
39-
type ShortTandemRepeatAlleleSizeDistributionRepeatUnit {
40-
repeat_unit: String!
41-
distribution: [[Int!]!]!
42-
populations: [ShortTandemRepeatAlleleSizeDistributionPopulation!]!
43-
}
44-
45-
type ShortTandemRepeatAlleleSizeDistribution {
34+
type ShortTandemRepeatAgeDistributionBin {
35+
age_range: [Int]!
4636
distribution: [[Int!]!]!
47-
populations: [ShortTandemRepeatAlleleSizeDistributionPopulation!]!
48-
repeat_units: [ShortTandemRepeatAlleleSizeDistributionRepeatUnit!]!
4937
}
5038

51-
type ShortTandemRepeatGenotypeDistributionPopulation {
52-
id: String!
53-
distribution: [[Int!]!]!
39+
type ShortTandemRepeatAlleleSizeItem {
40+
repunit_count: Int!
41+
frequency: Int!
5442
}
5543

56-
type ShortTandemRepeatGenotypeDistributionRepeatUnit {
57-
repeat_units: [String!]!
58-
distribution: [[Int!]!]!
59-
populations: [ShortTandemRepeatGenotypeDistributionPopulation!]!
44+
type ShortTandemRepeatAlleleSizeDistributionCohort {
45+
ancestry_group: String!
46+
sex: String!
47+
repunit: String!
48+
quality_description: String!
49+
q_score: Float!
50+
distribution: [ShortTandemRepeatAlleleSizeItem!]!
6051
}
6152

62-
type ShortTandemRepeatGenotypeDistribution {
63-
distribution: [[Int!]!]!
64-
populations: [ShortTandemRepeatGenotypeDistributionPopulation!]!
65-
repeat_units: [ShortTandemRepeatGenotypeDistributionRepeatUnit!]!
53+
type ShortTandemRepeatGenotypeItem {
54+
short_allele_repunit_count: Int!
55+
long_allele_repunit_count: Int!
56+
frequency: Int!
6657
}
6758

68-
type ShortTandemRepeatAgeDistributionBin {
69-
age_range: [Int]!
70-
distribution: [[Int!]!]!
59+
type ShortTandemRepeatGenotypeDistributionCohort {
60+
ancestry_group: String!
61+
sex: String!
62+
short_allele_repunit: String!
63+
long_allele_repunit: String!
64+
quality_description: String!
65+
q_score: Float!
66+
distribution: [ShortTandemRepeatGenotypeItem!]!
7167
}
7268

7369
type ShortTandemRepeatAdjacentRepeat {
7470
id: String!
7571
reference_region: ShortTandemRepeatReferenceRegion!
7672
reference_repeat_unit: String!
7773
repeat_units: [String!]!
78-
allele_size_distribution: ShortTandemRepeatAlleleSizeDistribution!
79-
genotype_distribution: ShortTandemRepeatGenotypeDistribution!
74+
allele_size_distribution: [ShortTandemRepeatAlleleSizeDistributionCohort!]!
75+
genotype_distribution: [ShortTandemRepeatGenotypeDistributionCohort!]!
8076
age_distribution: [ShortTandemRepeatAgeDistributionBin!]
8177
}
8278

@@ -85,7 +81,8 @@ type ShortTandemRepeat {
8581
gene: ShortTandemRepeatGene!
8682
associated_diseases: [ShortTandemRepeatAssociatedDisease!]!
8783
stripy_id: String!
88-
reference_region: ShortTandemRepeatReferenceRegion!
84+
main_reference_region: ShortTandemRepeatReferenceRegion!
85+
reference_regions: [ShortTandemRepeatReferenceRegion!]!
8986
reference_repeat_unit: String!
9087
}
9188

@@ -94,11 +91,12 @@ type ShortTandemRepeatDetails {
9491
gene: ShortTandemRepeatGene!
9592
associated_diseases: [ShortTandemRepeatAssociatedDisease!]!
9693
stripy_id: String
97-
reference_region: ShortTandemRepeatReferenceRegion!
94+
main_reference_region: ShortTandemRepeatReferenceRegion!
95+
reference_regions: [ShortTandemRepeatReferenceRegion!]!
9896
reference_repeat_unit: String!
9997
repeat_units: [ShortTandemRepeatRepeatUnit!]!
100-
allele_size_distribution: ShortTandemRepeatAlleleSizeDistribution!
101-
genotype_distribution: ShortTandemRepeatGenotypeDistribution!
98+
allele_size_distribution: [ShortTandemRepeatAlleleSizeDistributionCohort!]!
99+
genotype_distribution: [ShortTandemRepeatGenotypeDistributionCohort!]!
102100
age_distribution: [ShortTandemRepeatAgeDistributionBin!]
103101
adjacent_repeats: [ShortTandemRepeatAdjacentRepeat!]!
104102
}

0 commit comments

Comments
 (0)