From c4f546e642ccb5f6fb8dfe46bc7acfaf076928a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81lvarez=20Herrera?= Date: Tue, 16 Apr 2024 17:22:08 +0200 Subject: [PATCH] Use log warning to show empty VCF --- workflow/scripts/report/NV_description.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/scripts/report/NV_description.R b/workflow/scripts/report/NV_description.R index eae4c7e..4a9d99e 100644 --- a/workflow/scripts/report/NV_description.R +++ b/workflow/scripts/report/NV_description.R @@ -316,9 +316,9 @@ window_plot_spike <- window %>% if (nrow(vcf_spike) == 0) { log_warn("Spike VCF has no rows") - print(vcf_spike) + log_warn(vcf_spike$REGION) vcf_spike <- empty_vcf - print(vcf_spike) + log_warn(vcf_spike$NV_class) } variants_spike <- vcf_spike %>%