Skip to content

Commit 394055e

Browse files
committed
Complete with zero alt frequency including region
1 parent 9c5660e commit 394055e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

workflow/scripts/report/snp_plots.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ vcf <- vcf %>%
5252

5353
# Fill positions without alt frequency with 0
5454
vcf <- vcf %>%
55-
complete(nesting(VARIANT_NAME, POS), SAMPLE, fill = list(ALT_FREQ = 0))
55+
complete(nesting(REGION, VARIANT_NAME, POS), SAMPLE, fill = list(ALT_FREQ = 0))
5656

5757
# Join variants file and metadata file
5858
vcf <- left_join(vcf, data, by = c("SAMPLE" = "ID"))
@@ -87,6 +87,7 @@ cor.df <- data.frame(
8787
cor.df.fill <- lapply(
8888
SNPs,
8989
function(snp) {
90+
message(snp)
9091
df <- filter(
9192
vcf,
9293
VARIANT_NAME == snp

0 commit comments

Comments
 (0)