Skip to content

Commit ab82680

Browse files
committed
Explicitly assign missing values
1 parent 77c33fa commit ab82680

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

workflow/scripts/format_vcf_fields_longer.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ sink(log, type = "output")
88
library(tidyverse)
99

1010
read_tsv(snakemake@input$tsv) %>%
11-
separate_rows(contains("[*]"), sep = snakemake@params$sep) %>%
11+
separate_longer_delim(contains("[*]"), delim = snakemake@params$sep) %>%
12+
mutate(across(contains("[*]"), ~ na_if(., ""))) %>%
1213
rename(all_of(unlist(snakemake@params$colnames_mapping))) %>%
1314
filter(
1415
!!!map2(

0 commit comments

Comments
 (0)