-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Platform]: Use batching for coloc widgets on credible sets page (#591)
* update coloc and l2g widgets * fix l2g typos
- Loading branch information
Showing
12 changed files
with
123 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 27 additions & 24 deletions
51
packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
query GWASColocQuery($studyLocusId: String!) { | ||
query GWASColocQuery($studyLocusId: String!, $size: Int!, $index: Int!) { | ||
credibleSet(studyLocusId: $studyLocusId) { | ||
colocalisation(studyTypes: [gwas], page: { size: 250, index: 0 }) { | ||
otherStudyLocus { | ||
studyLocusId | ||
study { | ||
id | ||
projectId | ||
traitFromSource | ||
publicationFirstAuthor | ||
colocalisation(studyTypes: [gwas], page: { size: $size, index: $index }) { | ||
count | ||
rows { | ||
otherStudyLocus { | ||
studyLocusId | ||
study { | ||
id | ||
projectId | ||
traitFromSource | ||
publicationFirstAuthor | ||
} | ||
variant { | ||
id | ||
chromosome | ||
position | ||
referenceAllele | ||
alternateAllele | ||
} | ||
pValueMantissa | ||
pValueExponent | ||
} | ||
variant { | ||
id | ||
chromosome | ||
position | ||
referenceAllele | ||
alternateAllele | ||
} | ||
pValueMantissa | ||
pValueExponent | ||
numberColocalisingVariants | ||
colocalisationMethod | ||
h3 | ||
h4 | ||
clpp | ||
betaRatioSignAverage | ||
} | ||
numberColocalisingVariants | ||
colocalisationMethod | ||
h3 | ||
h4 | ||
clpp | ||
betaRatioSignAverage | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/sections/src/credibleSet/GWASColoc/GWASColocSummaryFragment.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
fragment GWASColocSummaryFragment on credibleSet { | ||
colocalisation(studyTypes: [gwas], page: { size: 1, index: 0 }) { | ||
colocalisationMethod | ||
count | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
packages/sections/src/credibleSet/Locus2Gene/Locus2GeneQuery.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
query Locus2GeneQuery($studyLocusId: String!) { | ||
credibleSet(studyLocusId: $studyLocusId) { | ||
l2Gpredictions { | ||
target { | ||
id | ||
approvedSymbol | ||
l2GPredictions { | ||
count | ||
rows { | ||
target { | ||
id | ||
approvedSymbol | ||
} | ||
score | ||
} | ||
score | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/sections/src/credibleSet/Locus2Gene/Locus2GeneQueryFragment.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
fragment Locus2GeneQueryFragment on credibleSet { | ||
l2Gpredictions { | ||
score | ||
l2GPredictions { | ||
count | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 34 additions & 31 deletions
65
packages/sections/src/credibleSet/MolQTLColoc/MolQTLColocQuery.gql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,43 @@ | ||
query MolQTLColocQuery($studyLocusId: String!) { | ||
query MolQTLColocQuery($studyLocusId: String!, $size: Int!, $index: Int!) { | ||
credibleSet(studyLocusId: $studyLocusId) { | ||
colocalisation(studyTypes: [tuqtl, pqtl, eqtl, sqtl], page: { size: 250, index: 0 }) { | ||
otherStudyLocus { | ||
studyLocusId | ||
study { | ||
id | ||
studyType | ||
projectId | ||
traitFromSource | ||
publicationFirstAuthor | ||
target { | ||
approvedSymbol | ||
colocalisation(studyTypes: [tuqtl, pqtl, eqtl, sqtl], page: { size: $size, index: $index }) { | ||
count | ||
rows { | ||
otherStudyLocus { | ||
studyLocusId | ||
study { | ||
id | ||
studyType | ||
projectId | ||
traitFromSource | ||
publicationFirstAuthor | ||
target { | ||
approvedSymbol | ||
id | ||
} | ||
biosample { | ||
biosampleId | ||
biosampleName | ||
description | ||
} | ||
} | ||
biosample { | ||
biosampleId | ||
biosampleName | ||
description | ||
variant { | ||
id | ||
chromosome | ||
position | ||
referenceAllele | ||
alternateAllele | ||
} | ||
pValueMantissa | ||
pValueExponent | ||
} | ||
variant { | ||
id | ||
chromosome | ||
position | ||
referenceAllele | ||
alternateAllele | ||
} | ||
pValueMantissa | ||
pValueExponent | ||
numberColocalisingVariants | ||
colocalisationMethod | ||
h3 | ||
h4 | ||
clpp | ||
betaRatioSignAverage | ||
} | ||
numberColocalisingVariants | ||
colocalisationMethod | ||
h3 | ||
h4 | ||
clpp | ||
betaRatioSignAverage | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters