Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Platform]: evidence schema change #538

Merged
merged 3 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/sections/src/evidence/EVA/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const exportColumns = [
},
{
label: "variantId",
exportValue: row => row.variantId,
exportValue: row => row.variant.id,
},
{
label: "variantRsId",
Expand Down Expand Up @@ -110,7 +110,7 @@ function getColumns(label) {
{
id: "variantId",
label: "Variant",
renderCell: ({ variantId }) =>
renderCell: ({ variant: { id: variantId } }) =>
// trim long IDs and append '...'
variantId ? (
<>
Expand Down Expand Up @@ -139,7 +139,8 @@ function getColumns(label) {
{
id: "variantHgvsId",
label: "HGVS ID",
renderCell: ({ variantHgvsId }) => variantHgvsId || naLabel,
renderCell: ({ variant }) => variant.hgvsId || naLabel,
filterValue: ({ variant }) => `${variant.hgvsId}`,
},
{
id: "studyId",
Expand Down
6 changes: 4 additions & 2 deletions packages/sections/src/evidence/EVA/ClinvarQuery.gql
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ query ClinvarQuery($ensemblId: String!, $efoId: String!, $size: Int!, $cursor: S
id
name
}
variant {
id
hgvsId
}
variantEffect
directionOnTrait
diseaseFromSource
variantId
variantRsId
variantHgvsId
studyId
variantFunctionalConsequence {
id
Expand Down
8 changes: 4 additions & 4 deletions packages/sections/src/evidence/EVASomatic/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const getColumns = label => [
{
id: "variantId",
label: "Variant",
renderCell: ({ variantId }) =>
renderCell: ({ variant: { id: variantId } }) =>
variantId ? (
<>
{variantId.substring(0, 20)}
Expand All @@ -75,7 +75,7 @@ const getColumns = label => [
) : (
naLabel
),
filterValue: ({ variantId }) => `${variantId}`,
filterValue: ({ variant: { id: variantId } }) => `${variantId}`,
},
{
id: "variantRsId",
Expand All @@ -96,8 +96,8 @@ const getColumns = label => [
{
id: "variantHgvsId",
label: "HGVS ID",
renderCell: ({ variantHgvsId }) => variantHgvsId || naLabel,
filterValue: ({ variantHgvsId }) => `${variantHgvsId}`,
renderCell: ({ variant }) => variant.hgvsId || naLabel,
filterValue: ({ variant }) => `${variant.hgvsId}`,
},
{
id: "studyId",
Expand Down
8 changes: 6 additions & 2 deletions packages/sections/src/evidence/EVASomatic/EvaSomaticQuery.gql
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ query EvaSomaticQuery($ensemblId: String!, $efoId: String!, $size: Int!, $cursor
id
name
}
variant {
hgvsId
}
variantEffect
directionOnTrait
diseaseFromSource
variantId
variant {
id
}
variantRsId
variantHgvsId
studyId
clinicalSignificances
allelicRequirements
Expand Down
Loading