From 705eaf68d1c438f6d3bb3d30c27e811393ec05fe Mon Sep 17 00:00:00 2001 From: bnguyen-bcgsc Date: Tue, 2 Apr 2024 12:04:58 -0700 Subject: [PATCH] - Add mutation burden back to genomic summary and rapid summary so old reports still display existing values - Remove redundant state property of totalMutationPerMb in tumour summary edit now that Mutation Burden is not editable anymore - DEVSU-2239 --- app/components/TumourSummaryEdit/index.tsx | 1 - app/views/ReportView/components/GenomicSummary/index.tsx | 4 ++++ app/views/ReportView/components/RapidSummary/index.tsx | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/components/TumourSummaryEdit/index.tsx b/app/components/TumourSummaryEdit/index.tsx index 335b94831..e03dd36e4 100644 --- a/app/components/TumourSummaryEdit/index.tsx +++ b/app/components/TumourSummaryEdit/index.tsx @@ -95,7 +95,6 @@ const TumourSummaryEdit = ({ if (mutationBurden) { setNewMutationBurdenData({ role: mutationBurden.role, - totalMutationsPerMb: mutationBurden.totalMutationsPerMb, qualitySvCount: mutationBurden.qualitySvCount, qualitySvPercentile: mutationBurden.qualitySvPercentile, }); diff --git a/app/views/ReportView/components/GenomicSummary/index.tsx b/app/views/ReportView/components/GenomicSummary/index.tsx index 6f30f980e..a856eb6d6 100644 --- a/app/views/ReportView/components/GenomicSummary/index.tsx +++ b/app/views/ReportView/components/GenomicSummary/index.tsx @@ -319,6 +319,10 @@ const GenomicSummary = ({ value: sigs, action: !isPrint ? () => history.push('mutation-signatures') : null, }, + { + term: 'Mutation Burden', + value: primaryBurden && primaryBurden.totalMutationsPerMb !== null && (!tmburMutBur?.adjustedTmb || tmburMutBur.tmbHidden === true) ? `${primaryBurden.totalMutationsPerMb} Mut/Mb` : null, + }, { term: `SV Burden (${primaryComparator ? primaryComparator.name : 'primary'})`, value: svBurden, diff --git a/app/views/ReportView/components/RapidSummary/index.tsx b/app/views/ReportView/components/RapidSummary/index.tsx index 2ed5d5e91..4646b7923 100644 --- a/app/views/ReportView/components/RapidSummary/index.tsx +++ b/app/views/ReportView/components/RapidSummary/index.tsx @@ -346,6 +346,10 @@ const RapidSummary = ({ ? `${tCellCd8.score} ${tCellCd8.percentile ? `(${tCellCd8.percentile}%)` : ''}` : null, }, + { + term: 'Mutation Burden', + value: primaryBurden && primaryBurden.totalMutationsPerMb !== null && (!tmburMutBur?.adjustedTmb || tmburMutBur.tmbHidden === true) ? `${primaryBurden.totalMutationsPerMb} Mut/Mb` : null, + }, { term: 'SV Burden (POG Average)', value: svBurden,