Repository navigation
Expand file tree
/
Copy pathschema.graphql
More file actions
8789 lines (8454 loc) · 189 KB
/
Copy pathschema.graphql
File metadata and controls
8789 lines (8454 loc) · 189 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""
Significant adverse events associated with drugs sharing the same pharmacological target. This
dataset is based on the FDA's Adverse Event Reporting System (FAERS) reporting post-marketing
surveillance data and it's filtered to include only reports submitted by health professionals.
The significance of a given target-ADR is estimated using a Likelihood Ratio Test (LRT) using
all reports associated with the drugs with the same target.
"""
type AdverseEvent {
"""
Number of reports mentioning drug and adverse event.
"""
count: Int!
"""
Meddra term on adverse event.
"""
name: String!
"""
Log-likelihood ratio.
"""
logLR: Float!
"""
8 digit unique meddra identification number.
"""
meddraCode: String!
}
"""
The result of a paginated query, containing the total number of items, the items, and statistics
about the query.
"""
type AdverseEventPage {
count: Int!
rows: [AdverseEvent!]!
stats: AdverseEventStats!
}
"""
Statistics for a set of adverse events.
"""
type AdverseEventStats {
"""
LLR critical value to define significance.
"""
criticalValue: Float!
}
"""
Type of aggregation used to calculate the yearly evidence count.
"""
enum AggregationType {
"""
Aggregates all the evidence of all datasources into an overall score.
"""
overall
"""
Aggregates the evidence of each datasource separately.
"""
datasourceId
}
"""
Allele frequencies of the variant in different populations.
"""
type AlleleFrequency {
"""
Name of the population where the allele frequency was measured.
"""
populationName: String
"""
Frequency of the alternate allele in the population (ranging from 0 to 1).
"""
alleleFrequency: Float
}
"""
Assays used in the study.
"""
type Assay {
"""
Description of the assay.
"""
description: String
"""
Indicates if the assay was positive or negative for the target.
"""
isHit: Boolean
"""
Short name of the assay.
"""
shortName: String
}
"""
Sort types. Contain the sort field and direction.
"""
input AssociationSort {
"""
The key to sort by. Can either be `score` to use the overall association score (default) or
a datasource id (e.g., `impc`).
"""
key: String! = "score"
"""
The direction to sort in.
"""
direction: SortDirection!
}
"""
Association time series entry for a target-disease association.
"""
type AssociationTimeseries {
"""
EFO ID of the association disease.
"""
diseaseId: String!
"""
Ensembl ID of the association target.
"""
targetId: String!
"""
Type of aggregation used to calculate the yearly evidence count.
"""
aggregationType: AggregationType!
"""
Datasource identifier of the aggregation: eg. `gwas_credible_set` or `None` if the
aggregation is by overall score.
"""
aggregationValue: Datasource
"""
Flag indicating whether the novelty calculation is based on direct evidence only or
includes indirect evidence.
"""
isDirect: Boolean!
"""
Year up to and including which evidence is considered.
"""
year: Int
"""
Association score based on evidence up until a given year.
"""
associationScore: Float!
"""
Novelty of the association at the given year.
"""
novelty: Float
"""
Yearly count of evidence supporting the disease/target association (for a given
datasource).
"""
yearlyEvidenceCount: Int
}
"""
The result of a paginated query, containing the total number of items and the items.
"""
type AssociationTimeseriesPage {
count: Int!
rows: [AssociationTimeseries!]!
}
"""
Attributes of the hallmark annotation.
"""
type Attributes {
"""
Name of the hallmark attribute.
"""
name: String!
"""
Description of the hallmark attribute.
"""
description: String!
"""
PubMed ID of the supporting literature for the hallmark attribute [bioregistry:pubmed].
"""
pmid: Int
}
"""
Aggregated expression data generated from RNA-seq and mass spectrometry proteomic data.
"""
type BaselineExpression {
"""
Unique identifier for the target.
"""
targetId: String!
"""
Target identifier from the source.
"""
targetFromSourceId: String
"""
Cell type reported by study.
"""
tissueBiosampleFromSource: String
"""
Tissue or cell type reported by study.
"""
celltypeBiosampleFromSource: String
"""
Minimum value of expression.
"""
min: Float
"""
First quantile of expression.
"""
q1: Float
"""
Median value of expression.
"""
median: Float
"""
Third quantile of expression.
"""
q3: Float
"""
Maximum value of expression.
"""
max: Float
"""
Proportion of biosamples, within the dataset, that display median expression above a
threshold.
"""
distributionScore: Float!
"""
Measure of how specific expression is to a biosample.
"""
specificityScore: Float
"""
Origin of expression data.
"""
datasourceId: String!
"""
Type of expression data.
"""
datatypeId: String!
"""
Unit for the target expression.
"""
unit: String!
"""
Quality control flags or notes for baseline expression.
"""
qualityControls: [String!]!
"""
Tissue biosample reported by study.
"""
tissueBiosample: Biosample
"""
Tissue biosample parent reported by study.
"""
tissueBiosampleParent: Biosample
"""
Cell type biosample reported by study.
"""
celltypeBiosample: Biosample
"""
Cell type biosample parent reported by study.
"""
celltypeBiosampleParent: Biosample
}
"""
The result of a paginated query, containing the total number of items and the items.
"""
type BaselineExpressionPage {
count: Int!
rows: [BaselineExpression!]!
}
"""
Container for all biological model-related attributes.
"""
type BiologicalModels {
"""
The specific allelic composition of the mouse model.
"""
allelicComposition: String!
"""
The genetic background strain of the mouse model.
"""
geneticBackground: String!
"""
Unique identifier for the biological model [bioregistry:mgi].
"""
id: String
"""
References related to the mouse model [bioregistry:pubmed].
"""
literature: [String!]!
}
type BiomarkerGeneExpression {
"""
Raw gene expression annotation from the source.
"""
name: String
id: GeneOntology
}
"""
List of biomarkers.
"""
type Biomarkers {
"""
List of gene expression altering biomarkers.
"""
geneExpression: [BiomarkerGeneExpression!]!
"""
List of genetic variation biomarkers.
"""
geneticVariation: [GeneticVariation!]!
}
"""
Integration of biosample metadata about tissues or cell types derived from multiple ontologies
including EFO, UBERON, CL, GO and others.
"""
type Biosample {
"""
Unique identifier for the biosample.
"""
biosampleId: String!
"""
Name of the biosample.
"""
biosampleName: String!
"""
Description of the biosample.
"""
description: String
"""
Cross-reference IDs from other ontologies.
"""
xrefs: [String!]!
"""
List of synonymous names for the term.
"""
synonyms: [String!]!
"""
Direct parent biosample IDs in the ontology.
"""
parents: [String!]!
"""
List of ancestor biosample IDs in the ontology.
"""
ancestors: [String!]!
"""
Direct child biosample IDs in the ontology.
"""
children: [String!]!
"""
List of descendant biosample IDs in the ontology.
"""
descendants: [String!]!
}
"""
Cancer hallmarks associated with the target gene.
"""
type CancerHallmarks {
"""
Description of the cancer hallmark.
"""
description: String!
"""
Impact of the cancer hallmark on the target.
"""
impact: String
"""
Label associated with the cancer hallmark.
"""
label: String!
"""
PubMed ID of the supporting literature for the cancer hallmark [bioregistry:pubmed].
"""
pmid: Int!
}
"""
The Ensembl canonical transcript of the target gene.
"""
type CanonicalTranscript {
"""
The Ensembl transcript identifier for the canonical transcript.
"""
id: String!
"""
Chromosome location of the canonical transcript.
"""
chromosome: String!
"""
Genomic start position of the canonical transcript.
"""
start: Int!
"""
Genomic end position of the canonical transcript.
"""
end: Int!
"""
Strand orientation of the canonical transcript.
"""
strand: Strand!
}
"""
Entity category this similarity refers to (`Target`, `Disease` or `Drug`).
"""
enum Category {
"""
The similarity refers to a `Target` entity.
"""
TARGET
"""
The similarity refers to a `Disease` entity.
"""
DISEASE
"""
The similarity refers to a `Drug` entity.
"""
DRUG
}
"""
Chemical probes related to the target. High-quality chemical probes are small molecules that can
be used to modulate and study the function of proteins.
"""
type ChemicalProbe {
"""
Unique identifier for the chemical probe.
"""
id: String!
"""
Whether the chemical probe serves as a control.
"""
control: String
"""
Drug ID associated with the chemical probe.
"""
drugId: String
"""
Probe identifier from the source, used to cross-reference drug information.
"""
drugFromSourceId: String
"""
Mechanism of action of the chemical probe.
"""
mechanismOfAction: [String!]!
"""
Indicates if the chemical probe is high quality.
"""
isHighQuality: Boolean!
"""
Origin of the chemical probe.
"""
origin: [String!]!
"""
Score for chemical probes related to druggability.
"""
probesDrugsScore: Float
"""
Score indicating chemical probe activity in cells.
"""
scoreInCells: Float
"""
Score indicating chemical probe activity in organisms.
"""
scoreInOrganisms: Float
"""
Ensembl gene ID of the target for the chemical probe.
"""
targetFromSourceId: String!
"""
URLs linking to more information about the chemical probe.
"""
urls: [Url!]!
}
"""
Chromosome type.
"""
enum Chromosome {
chr1
chr2
chr3
chr4
chr5
chr6
chr7
chr8
chr9
chr10
chr11
chr12
chr13
chr14
chr15
chr16
chr17
chr18
chr19
chr20
chr21
chr22
chrx
chry
chrmt
}
"""
Diseases associated with the clinical report.
"""
type ClinicalDiseaseListItem {
"""
Disease name as reported in the source.
"""
diseaseFromSource: String!
"""
Disease in the clinical report.
"""
disease: Disease!
}
"""
A drug-disease pair as reported by clinical trial records.
Rows are decoded by position, so field order must match the column order of
`src/sql/clinical_indication.sql`. Update both together.
"""
type ClinicalIndication {
"""
Hash of drugId and diseaseId.
"""
id: String!
"""
Maximum Clinical Development Status for the association.
"""
maxClinicalStage: String!
"""
Name of the drug. Null if the drug isn't found.
"""
drugName: String
"""
Name of the disease. Null if the disease isn't found.
"""
diseaseName: String
"""
Number of clinical reports for the drug-disease pair.
"""
clinicalReportCount: Int!
"""
The molecule entity related to this clinical indication.
"""
drug: Drug!
"""
The disease entity related to this clinical indication.
"""
disease: Disease!
clinicalReports: [ClinicalReport!]!
}
"""
The result of a paginated query, containing the total number of items and the items.
"""
type ClinicalIndicationPage {
count: Int!
rows: [ClinicalIndication!]!
}
"""
Case-insensitive text search.
"""
input ClinicalIndicationSearch {
"""
Text to look for. Matches if any of `fields` contains it.
"""
text: String!
"""
Fields to search in. Defaults to all of them.
"""
fields: [ClinicalIndicationSearchField!]! = [DRUG_NAME]
}
"""
Text fields that `search` can match against.
"""
enum ClinicalIndicationSearchField {
DRUG_NAME
}
"""
Sort types. Contain the sort field and direction.
"""
input ClinicalIndicationSort {
"""
The field to sort by.
"""
key: ClinicalIndicationSortField!
"""
The direction to sort in.
"""
direction: SortDirection! = ASCENDING
}
"""
Fields available for sorting.
"""
enum ClinicalIndicationSortField {
"""
By stage, from unknown and withdrawn up to approved and phase IV.
"""
MAX_CLINICAL_STAGE
"""
Number of clinical reports.
"""
CLINICAL_REPORT_COUNT
"""
Alphabetically by drug name.
"""
DRUG_NAME
}
"""
A clinical record (e.g. trial, drug label) reporting on drugs and diseases.
"""
type ClinicalReport {
"""
Unique identifier for the clinical report.
"""
id: String!
"""
Source database or registry from which the clinical report was obtained.
"""
source: String!
"""
Clinical stage of the report.
"""
clinicalStage: ClinicalStage!
"""
Clinical phase as reported in the source.
"""
phaseFromSource: String
"""
Kind of evidence the report describes: INDICATION for a drug/disease claim, SAFETY for a
drug warning.
"""
evidenceType: String
"""
Title of the clinical report.
"""
title: String
"""
Type of clinical study (e.g. Interventional, Observational).
"""
trialStudyType: TrialStudyType
"""
Brief description of the clinical trial.
"""
trialDescription: String
"""
Number of arms in the clinical trial.
"""
trialNumberOfArms: Int
"""
Start date of the clinical trial.
"""
trialStartDate: NaiveDate
"""
Literature references associated with the clinical trial.
"""
trialLiterature: [TrialLiterature!]!
"""
Overall status of the clinical trial (e.g. Completed, Terminated).
"""
trialOverallStatus: String
"""
Reason provided for stopping the clinical trial.
"""
trialWhyStopped: String
"""
Primary purpose of the clinical trial (e.g. Treatment, Prevention).
"""
trialPrimaryPurpose: String
"""
Phase of the clinical trial.
"""
trialPhase: String
"""
Categories describing reasons why the trial was stopped.
"""
trialStopReasonCategories: [String!]!
"""
Lead sponsor associated with the clinical trial.
"""
trialSponsor: TrialSponsor!
"""
Quality control flags or notes for the clinical report.
"""
qualityControls: [String!]!
"""
Diseases associated with the clinical report.
"""
diseases: [ClinicalDiseaseListItem!]!
"""
Drugs associated with the clinical report.
"""
drugs: [ClinicalReportDrugListItem!]!
"""
Countries associated with the clinical report.
"""
countries: [String!]!
"""
Year the report was registered or published.
"""
year: Int
"""
Side effects or adverse events associated with the clinical report.
"""
sideEffects: [ClinicalSideEffectListItem!]!
"""
Official title of the clinical trial as registered.
"""
trialOfficialTitle: String
"""
URL linking to the source record.
"""
url: String
"""
Nature of the record the report originates from.
"""
origin: Origin!
"""
Resource or organisation that distributes the data fetched from the primary source.
"""
provider: Provider!
}
type ClinicalReportDrugListItem {
"""
Drug name as reported in the source.
"""
drugFromSource: String!
"""
Drug in the clinical report.
"""
drug: Drug!
}
"""
Side effects or adverse events associated with the clinical report.
"""
type ClinicalSideEffectListItem {
"""
Side effect disease name as reported in the source.
"""
diseaseFromSource: String
"""
Disease for the reported side effect.
"""
disease: Disease
}
"""
Clinical stage of the report.
"""
enum ClinicalStage {
"""
Unknown phase.
"""
UNKNOWN
"""
Preclinical stage.
"""
PRECLINICAL
"""
Ind.
"""
IND
"""
Early phase 1.
"""
EARLY_PHASE_1
"""
Phase 1.
"""
PHASE_1
"""
Phase 1/2.
"""
PHASE_1_2
"""
Phase 2.
"""
PHASE_2
"""
Phase 2/3.
"""
PHASE_2_3
"""
Phase 3.
"""
PHASE_3
"""
Preapproval.
"""
PREAPPROVAL
"""
The drog is approved for general use.
"""
APPROVAL
"""
Phase 4.
"""
PHASE_4
"""
The drug has been Withdrawn.
"""
WITHDRAWAL
}
"""
Target-drug associations derived from clinical reports, capturing the maximum clinical stage and
associated diseases for each target-drug pair.
Rows are decoded by position, so field order must match the column order of
`src/sql/clinical_target.sql`. Update both together.
"""
type ClinicalTargetFromTarget {
"""
Hash between drugId and targetId.
"""
id: String!
"""
Diseases associated with the clinical reports linked to the drug in question.
"""
diseases: [ClinicalDiseaseListItem!]!
maxClinicalStage: String!
"""
Name of the drug. Null if the drug isn't found.
"""
drugName: String
"""
Number of clinical reports for the target-drug pair.
"""
clinicalReportCount: Int!
"""
Drug or clinical candidate entity.
"""
drug: Drug!
"""
Reports related with the drug in question.
"""
clinicalReports: [ClinicalReport!]!
}
"""
The result of a paginated query, containing the total number of items and the items.
"""
type ClinicalTargetPage {
count: Int!
rows: [ClinicalTargetFromTarget!]!
}
"""
Case-insensitive text search.
"""
input ClinicalTargetSearch {
"""
Text to look for. Matches if any of `fields` contains it.
"""
text: String!
"""
Fields to search in. Defaults to all of them.
"""
fields: [ClinicalTargetSearchField!]! = [DRUG_NAME]
}
"""
Text fields that `search` can match against.
"""
enum ClinicalTargetSearchField {
DRUG_NAME
}
"""
Sort types. Contain the sort field and direction.
"""
input ClinicalTargetSort {
"""
The field to sort by.
"""
key: ClinicalTargetSortField!
"""
The direction to sort in.
"""
direction: SortDirection! = ASCENDING
}
"""
Fields available for sorting.
"""
enum ClinicalTargetSortField {
"""
By stage, from unknown and withdrawn up to approved and phase IV.
"""
MAX_CLINICAL_STAGE
"""
Number of clinical reports.
"""
CLINICAL_REPORT_COUNT
"""
Alphabetically by drug name.
"""
DRUG_NAME
}
"""
GWAS-GWAS and GWAS-molQTL credible set colocalisation results. Dataset includes colocalising
pairs as well as the method and statistics used to estimate the colocalisation.
"""
type Colocalisation {
"""
Credible set (study-locus) on the left side of the colocalisation pair.
"""
studyLocusId: String!
"""
The other credible set (study-locus) in the colocalisation pair.
"""
otherStudyLocusId: String!
"""
Type of the right-side study (e.g., gwas, eqtl, pqtl).
"""
rightStudyType: StudyType!
"""
Chromosome where the colocalisation occurs.
"""
chromosome: Chromosome!
"""
Method used to estimate colocalisation (e.g., coloc, eCAVIAR).
"""
colocalisationMethod: String!
"""
Number of variants intersecting between two overlapping study-loci.
"""
numberColocalisingVariants: Int!
"""
Posterior probability that both traits are associated, but with different causal variants
(H3). Used in coloc method.
"""
h3: Float!
"""
Posterior probability that both traits are associated and share a causal variant (H4). Used
in coloc method.
"""
h4: Float!
"""
Colocalisation posterior probability (CLPP) score estimating the probability of shared
causal variants. Used in eCAVIAR method.
"""
clpp: Float!
"""
Average sign of the beta ratio between colocalised variants.
"""
betaRatioSignAverage: Float!
"""
The other credible set (study-locus) in the colocalisation pair.
"""
otherStudyLocus: CredibleSet
}
"""
Filter for colocalisations.
"""
input ColocalisationFilter {
"""
Keep colocalisations whose study type is one of these.
"""
studyTypes: [StudyType!]! = [gwas]
}
"""
The result of a paginated query, containing the total number of items and the items.
"""
type ColocalisationPage {
count: Int!
rows: [Colocalisation!]!
}
"""
Constraint scores for the target gene from GnomAD. Indicates gene intolerance to
loss-of-function mutations.
"""
type Constraint {
"""
Type of constraint applied to the target.
"""
constraintType: String!
"""
Expected constraint score.
"""
exp: Float