From e19de48e1717eb99709b9c83a1c1a5a819c3b26b Mon Sep 17 00:00:00 2001 From: Graham McNeill Date: Thu, 28 Nov 2024 16:14:18 +0000 Subject: [PATCH] study api --- apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql | 2 +- apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx | 2 +- packages/sections/src/credibleSet/GWASColoc/Body.tsx | 4 ++-- .../sections/src/credibleSet/GWASColoc/GWASColocQuery.gql | 2 +- packages/sections/src/credibleSet/GWASMolQTL/Body.tsx | 4 ++-- .../src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql index b8fd51ee9..889be331a 100644 --- a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql +++ b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.gql @@ -6,7 +6,7 @@ query CredibleSetPageQuery($studyLocusId: String!) { alternateAllele } study { - studyId + id studyType } } diff --git a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx index 7ac373d22..5202289f3 100644 --- a/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx +++ b/apps/platform/src/pages/CredibleSetPage/CredibleSetPage.tsx @@ -24,7 +24,7 @@ function CredibleSetPage() { const variantId = credibleSet?.variant?.id; const referenceAllele = credibleSet?.variant?.referenceAllele; const alternateAllele = credibleSet?.variant?.alternateAllele; - const studyId = credibleSet?.study?.studyId; + const studyId = credibleSet?.study?.id; const studyType = credibleSet?.study?.studyType; if (!studyType) return null; diff --git a/packages/sections/src/credibleSet/GWASColoc/Body.tsx b/packages/sections/src/credibleSet/GWASColoc/Body.tsx index 245dbd98a..fd9cf2969 100644 --- a/packages/sections/src/credibleSet/GWASColoc/Body.tsx +++ b/packages/sections/src/credibleSet/GWASColoc/Body.tsx @@ -31,10 +31,10 @@ const columns = [ }, }, { - id: "otherStudyLocus.study.studyId", + id: "otherStudyLocus.study.id", label: "Study", renderCell: ({ otherStudyLocus }) => { - const studyId = otherStudyLocus?.study?.studyId; + const studyId = otherStudyLocus?.study?.id; if (!studyId) return naLabel; return {studyId}; }, diff --git a/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql b/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql index 2f90a779e..36f83ba95 100644 --- a/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql +++ b/packages/sections/src/credibleSet/GWASColoc/GWASColocQuery.gql @@ -4,7 +4,7 @@ query GWASColocQuery($studyLocusId: String!) { otherStudyLocus { studyLocusId study { - studyId + id projectId traitFromSource publicationFirstAuthor diff --git a/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx b/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx index 534014c9f..5d97bf02a 100644 --- a/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx +++ b/packages/sections/src/credibleSet/GWASMolQTL/Body.tsx @@ -31,10 +31,10 @@ const columns = [ }, }, { - id: "otherStudyLocus.study.studyId", + id: "otherStudyLocus.study.id", label: "Study", renderCell: ({ otherStudyLocus }) => { - const studyId = otherStudyLocus?.study?.studyId; + const studyId = otherStudyLocus?.study?.id; if (!studyId) return naLabel; return {studyId}; }, diff --git a/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql b/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql index c7ef295fa..6ae8a0b20 100644 --- a/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql +++ b/packages/sections/src/credibleSet/GWASMolQTL/GWASMolQTLColocQuery.gql @@ -4,7 +4,7 @@ query GWASMolQTLColocQuery($studyLocusId: String!) { otherStudyLocus { studyLocusId study { - studyId + id studyType projectId traitFromSource