Skip to content

Commit 02533c8

Browse files
committed
Annotate distinct variants
1 parent 29f25e3 commit 02533c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

workflow/scripts/merge_annotation.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ log_info("Reading annotation table")
1717
annotation <- read_tsv(
1818
snakemake@input$annot,
1919
col_select = c("CHROM", "POS", "REF", "ALT", "VARIANT_NAME")
20-
)
20+
) %>%
21+
distinct()
2122

2223
log_info("Merging tables")
2324
merged <- left_join(
@@ -28,6 +29,6 @@ merged <- left_join(
2829

2930
log_info("Saving results")
3031
write_tsv(
31-
tsv,
32+
merged,
3233
snakemake@output$tsv
3334
)

0 commit comments

Comments
 (0)