From 946a7cd40ea6de09871617733c8fd50a75be4005 Mon Sep 17 00:00:00 2001 From: Jacky Li Date: Wed, 16 Oct 2024 13:01:47 -0700 Subject: [PATCH] feat: add svBurdenHidden flag field to mutationBurden DEVSU-2461 --- app/models/reports/mutationBurden.js | 10 ++++++++++ test/routes/report/mutationBurden.test.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/models/reports/mutationBurden.js b/app/models/reports/mutationBurden.js index 995cef299..fc8134107 100644 --- a/app/models/reports/mutationBurden.js +++ b/app/models/reports/mutationBurden.js @@ -112,6 +112,16 @@ module.exports = (sequelize, Sq) => { description: 'somatic indels and SNVs per megabase in the genome', }, }, + svBurdenHidden: { + name: 'svBurdenHidden', + field: 'sv_burden_hidden', + type: Sq.BOOLEAN, + defaultValue: false, + allowNull: false, + jsonSchema: { + description: 'SV Burden Hidden', + }, + }, }, { ...DEFAULT_REPORT_OPTIONS, tableName: 'reports_mutation_burden', diff --git a/test/routes/report/mutationBurden.test.js b/test/routes/report/mutationBurden.test.js index 6d5812d0b..85b2ac861 100644 --- a/test/routes/report/mutationBurden.test.js +++ b/test/routes/report/mutationBurden.test.js @@ -23,7 +23,7 @@ const mutationBurdenProperties = [ 'ident', 'createdAt', 'updatedAt', 'role', 'codingSnvCount', 'truncatingSnvCount', 'codingIndelsCount', 'frameshiftIndelsCount', 'qualitySvCount', 'qualitySvExpressedCount', 'codingSnvPercentile', 'codingIndelPercentile', 'qualitySvPercentile', - 'totalSnvCount', 'totalIndelCount', 'totalMutationsPerMb', + 'totalSnvCount', 'totalIndelCount', 'totalMutationsPerMb', 'svBurdenHidden', ]; const checkMutationBurden = (mutationObject) => {