diff --git a/src/webcomponents/clinical/clinical-analysis-browser.js b/src/webcomponents/clinical/clinical-analysis-browser.js index 7d522e2678..f4266e0a7b 100644 --- a/src/webcomponents/clinical/clinical-analysis-browser.js +++ b/src/webcomponents/clinical/clinical-analysis-browser.js @@ -92,7 +92,7 @@ export default class ClinicalAnalysisBrowser extends LitElement { // Apply user configuration UtilsNew.setObjectValue(this._config, "filter.result.grid", { ...this._config.filter?.result?.grid, - ...this.opencgaSession.user?.configs?.IVA?.[this._config.componentId]?.grid, + ...this.opencgaSession.user?.configs?.IVA?.settings?.[this._config.componentId]?.grid, }); @@ -281,6 +281,7 @@ export default class ClinicalAnalysisBrowser extends LitElement { } }; } + } customElements.define("clinical-analysis-browser", ClinicalAnalysisBrowser); diff --git a/src/webcomponents/variant/custom/steiner-report.js b/src/webcomponents/variant/custom/steiner-report.js index 63aea807e0..d187370326 100644 --- a/src/webcomponents/variant/custom/steiner-report.js +++ b/src/webcomponents/variant/custom/steiner-report.js @@ -800,7 +800,7 @@ class SteinerReport extends LitElement { .filter(v => SUBSTITUTIONS_AND_INDELS_TYPES.indexOf(v.type) > -1); const gridConfig = { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.snv]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.snv]?.grid || {}), ...defaultGridConfig, somatic: false, variantTypes: ["SNV", "INDEL", "INSERTION", "DELETION"], @@ -832,7 +832,7 @@ class SteinerReport extends LitElement { .filter(v => REARRANGEMENTS_TYPES.indexOf(v.type) > -1); const gridConfig = { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.rearrangements]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.rearrangements]?.grid || {}), ...defaultGridConfig, somatic: false, variantTypes: ["BREAKEND"], @@ -880,7 +880,7 @@ class SteinerReport extends LitElement { .filter(v => v.confidence?.value === "HIGH"); return this.renderSomaticVariantsGrid(filteredVariants, { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.snv]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.snv]?.grid || {}), ...defaultGridConfig, somatic: true, variantTypes: ["SNV", "INDEL"], @@ -903,7 +903,7 @@ class SteinerReport extends LitElement { .filter(v => v.confidence?.value === "HIGH"); return this.renderSomaticRearrangementVariantsGrid(filteredVariants, { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.rearrangements]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.rearrangements]?.grid || {}), ...defaultGridConfig, somatic: true, variantTypes: ["BREAKEND"], @@ -926,7 +926,7 @@ class SteinerReport extends LitElement { .filter(v => v.confidence?.value === "HIGH"); return this.renderSomaticVariantsGrid(filteredVariants, { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.cnv]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.cnv]?.grid || {}), ...defaultGridConfig, somatic: true, variantTypes: ["COPY_NUMBER", "CNV"], @@ -958,7 +958,7 @@ class SteinerReport extends LitElement { .filter(v => !v.confidence?.value || v.confidence?.value !== "HIGH"); return this.renderSomaticVariantsGrid(filteredVariants, { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.snv]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.snv]?.grid || {}), ...defaultGridConfig, somatic: true, variantTypes: ["SNV", "INDEL"], @@ -979,7 +979,7 @@ class SteinerReport extends LitElement { .filter(v => !v.confidence?.value || v.confidence?.value !== "HIGH"); return this.renderSomaticRearrangementVariantsGrid(filteredVariants, { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.rearrangements]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.rearrangements]?.grid || {}), ...defaultGridConfig, somatic: true, variantTypes: ["BREAKEND"], @@ -1000,7 +1000,7 @@ class SteinerReport extends LitElement { .filter(v => !v.confidence?.value || v.confidence?.value !== "HIGH"); return this.renderSomaticVariantsGrid(filteredVariants, { - ...(this.opencgaSession?.user?.configs?.IVA?.[this.gridTypes.cnv]?.grid || {}), + ...(this.opencgaSession?.user?.configs?.IVA?.settings?.[this.gridTypes.cnv]?.grid || {}), ...defaultGridConfig, somatic: true, variantTypes: ["COPY_NUMBER", "CNV"], diff --git a/src/webcomponents/variant/interpretation/variant-interpreter-review-primary.js b/src/webcomponents/variant/interpretation/variant-interpreter-review-primary.js index 9f95aab52f..ea78091e53 100644 --- a/src/webcomponents/variant/interpretation/variant-interpreter-review-primary.js +++ b/src/webcomponents/variant/interpretation/variant-interpreter-review-primary.js @@ -128,10 +128,10 @@ export default class VariantInterpreterReviewPrimary extends LitElement { } // Check for user configuration - if (this.toolId && this.opencgaSession.user?.configs?.IVA?.[this.toolId]?.grid) { + if (this.toolId && this.opencgaSession.user?.configs?.IVA?.settings?.[this.toolId]?.grid) { this._config.result.grid = { ...this._config.result.grid, - ...this.opencgaSession.user.configs.IVA[this.toolId].grid, + ...this.opencgaSession.user.configs.IVA.settings[this.toolId].grid, showGenomeBrowserLink: false, }; }