Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions workflow/scripts/format_vcf_fields_longer.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@ filter.exclude <- lapply(snakemake@params$filter_exclude, empty.to.na)

# Process input table
log_info("Applying filters and writing results")
read_tsv(snakemake@input$tsv) %>%
read_tsv(
snakemake@input$tsv,
col_types = cols(
POS = col_integer(),
.default = col_character()
)
) %>%

# Separate <sep>-delimited "...[*]..." columns (e.g. ANN[*].EFFECT)
separate_rows(
contains("[*]"),
sep = snakemake@params$sep,
convert = TRUE
convert = FALSE
) %>%

# Rename "...[*]..." columns using the provided lookup via Snakemake config
Expand Down
Loading