From 3b1c2615517b316d27f47ca8f4fc5f7506b8241e Mon Sep 17 00:00:00 2001 From: Zach Wright Date: Mon, 11 Dec 2023 12:04:51 -0500 Subject: [PATCH] Alias some fields --- src/components/Plots/LMDDotPlot.js | 4 ++-- src/helpers/ApolloClient.js | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/Plots/LMDDotPlot.js b/src/components/Plots/LMDDotPlot.js index 9f5ebfb5..e2b51f2b 100644 --- a/src/components/Plots/LMDDotPlot.js +++ b/src/components/Plots/LMDDotPlot.js @@ -84,9 +84,9 @@ class LMDDotPlot extends Component { if (data) { resultArr.forEach((row) => { - xValues.push(row.segment ? row.segment : row.region); + xValues.push(row.segment); yValues.push(this.abbreviate(row.tissueType).toUpperCase()); - bubbles.push(row.pValLog10 ? row.pValLog10 : row.adjPVal); + bubbles.push(row.pValLog10); colors.push(row.foldChange); }); plotObj = { diff --git a/src/helpers/ApolloClient.js b/src/helpers/ApolloClient.js index bf8ef341..1d368560 100644 --- a/src/helpers/ApolloClient.js +++ b/src/helpers/ApolloClient.js @@ -340,9 +340,9 @@ export const fetchRegionalProteomics = async (geneSymbol) => { numPeptides numUniquePeptides comparison - region + segment: region foldChange - adjPVal + pValLog10: adjPVal tissueType sampleCount } @@ -356,9 +356,9 @@ export const fetchRegionalProteomics = async (geneSymbol) => { numPeptides numUniquePeptides comparison - region + segment: region foldChange - adjPVal + pValLog10: adjPVal tissueType sampleCount } @@ -372,9 +372,9 @@ export const fetchRegionalProteomics = async (geneSymbol) => { numPeptides numUniquePeptides comparison - region + segment: region foldChange - adjPVal + pValLog10: adjPVal tissueType sampleCount } @@ -388,9 +388,9 @@ export const fetchRegionalProteomics = async (geneSymbol) => { numPeptides numUniquePeptides comparison - region + segment: region foldChange - adjPVal + pValLog10: adjPVal tissueType sampleCount } @@ -404,9 +404,9 @@ export const fetchRegionalProteomics = async (geneSymbol) => { numPeptides numUniquePeptides comparison - region + segment: region foldChange - adjPVal + pValLog10: adjPVal tissueType sampleCount }