From 2fd1e473a4ae2ae5ac8b6759d3cdeb529e5a1c0d Mon Sep 17 00:00:00 2001 From: Johannes Koester Date: Wed, 26 Mar 2025 09:37:00 +0100 Subject: [PATCH] feat: use semantic colors for heatmap in event probability columns --- .../variant-calls-template.datavzrd.yaml | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/workflow/resources/datavzrd/variant-calls-template.datavzrd.yaml b/workflow/resources/datavzrd/variant-calls-template.datavzrd.yaml index 271f5b5ed..80da89a66 100644 --- a/workflow/resources/datavzrd/variant-calls-template.datavzrd.yaml +++ b/workflow/resources/datavzrd/variant-calls-template.datavzrd.yaml @@ -259,7 +259,7 @@ views: scale: "linear" aux-domain-columns: - "regex('.+: read depth')" - "regex('prob: .+')": + "regex('prob: (?!artifact|absent)')": plot: heatmap: scale: linear @@ -267,6 +267,14 @@ views: range: - white - "#1f77b4" + "regex('prob: (artifact|absent)')": + plot: + heatmap: + scale: linear + domain: [0.0, 1.0] + range: + - white + - "#d4322c" "gnomad genome af": optional: true plot: @@ -433,7 +441,7 @@ views: scale: "linear" aux-domain-columns: - "regex('.+: read depth')" - "regex('prob: .+')": + "regex('prob: (?!artifact|absent)')": plot: heatmap: scale: linear @@ -441,6 +449,14 @@ views: range: - white - "#1f77b4" + "regex('prob: (artifact|absent)')": + plot: + heatmap: + scale: linear + domain: [0.0, 1.0] + range: + - white + - "#d4322c" "gnomad genome af": optional: true plot: