Skip to content

Commit 25d3afa

Browse files
committed
fix: keep distinct variant records before calculating pairwise AF correlations
1 parent bbca5e4 commit 25d3afa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workflow/scripts/report/pairwise_trajectory_correlation_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ date_order <- read_csv(snakemake@input[["metadata"]]) %>%
2525

2626
log_info("Formatting variants")
2727
all_variants_wider <- variants %>%
28-
select(SAMPLE, VARIANT_NAME, ALT_FREQ) %>%
28+
distinct(SAMPLE, VARIANT_NAME, ALT_FREQ) %>%
2929
pivot_wider(
3030
names_from = VARIANT_NAME,
3131
values_from = ALT_FREQ

0 commit comments

Comments
 (0)