Skip to content

Commit 8ef5c15

Browse files
committed
fix: ensure all key columns are present
1 parent ab4b025 commit 8ef5c15

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

workflow/scripts/format_vcf_fields_longer.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ df <- read_tsv(
4747

4848
if (nrow(df) == 0) {
4949
log_info("Writing empty file")
50-
write_tsv(df, snakemake@output$tsv)
50+
df %>%
51+
mutate(
52+
VARIANT_NAME = character(),
53+
SAMPLE = character()
54+
) %>%
55+
write_tsv(snakemake@output$tsv)
5156
} else {
5257
log_info("Processing variants")
5358
df %>%

0 commit comments

Comments
 (0)