From 7948a4e9bfc9517a786a6d771322b2ee23d28089 Mon Sep 17 00:00:00 2001 From: David Ochoa Date: Fri, 22 Nov 2024 16:00:09 +0000 Subject: [PATCH 1/2] fix: bug listing only lead variant instead of all variants in credible set --- packages/sections/src/credibleSet/Variants/Body.tsx | 1 - .../sections/src/credibleSet/Variants/VariantsQuery.gql | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/sections/src/credibleSet/Variants/Body.tsx b/packages/sections/src/credibleSet/Variants/Body.tsx index 23d1e4e45..f74f3f8bd 100644 --- a/packages/sections/src/credibleSet/Variants/Body.tsx +++ b/packages/sections/src/credibleSet/Variants/Body.tsx @@ -152,7 +152,6 @@ function Body({ }: BodyProps) { const variables = { studyLocusId: studyLocusId, - variantIds: [leadVariantId], }; const request = useQuery(VARIANTS_QUERY, { diff --git a/packages/sections/src/credibleSet/Variants/VariantsQuery.gql b/packages/sections/src/credibleSet/Variants/VariantsQuery.gql index 640919df5..055ba0796 100644 --- a/packages/sections/src/credibleSet/Variants/VariantsQuery.gql +++ b/packages/sections/src/credibleSet/Variants/VariantsQuery.gql @@ -1,7 +1,7 @@ -query VariantsQuery($studyLocusId: String!, $variantIds: [String!]!) { +query VariantsQuery($studyLocusId: String!) { credibleSet(studyLocusId: $studyLocusId) { studyLocusId - locus(variantIds: $variantIds) { + locus { count rows { logBF @@ -12,6 +12,10 @@ query VariantsQuery($studyLocusId: String!, $variantIds: [String!]!) { position referenceAllele alternateAllele + mostSevereConsequence { + id + label + } } pValueMantissa pValueExponent From 2b2fe595606bbf3374b71696490a8d9625004b12 Mon Sep 17 00:00:00 2001 From: David Ochoa Date: Fri, 22 Nov 2024 16:04:29 +0000 Subject: [PATCH 2/2] revert: wrong commit --- packages/sections/src/credibleSet/Variants/VariantsQuery.gql | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/sections/src/credibleSet/Variants/VariantsQuery.gql b/packages/sections/src/credibleSet/Variants/VariantsQuery.gql index 055ba0796..e1c7a155c 100644 --- a/packages/sections/src/credibleSet/Variants/VariantsQuery.gql +++ b/packages/sections/src/credibleSet/Variants/VariantsQuery.gql @@ -12,10 +12,6 @@ query VariantsQuery($studyLocusId: String!) { position referenceAllele alternateAllele - mostSevereConsequence { - id - label - } } pValueMantissa pValueExponent