Skip to content

Commit

Permalink
Count properly SNPs and INDELS
Browse files Browse the repository at this point in the history
  • Loading branch information
SeviJordi committed Sep 27, 2023
1 parent 5020acb commit 8e3c1aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion workflow/scripts/report/NV_description.R
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,12 @@ vcf_snp %>%

# STATS FOR REPORTING

n_indels <- filter(vcf, NV_class == "INDEL") %>% length()
n_indels <- vcf %>%
filter(NV_class == "INDEL") %>%
pull(SNP) %>%
unique() %>%
length()

n_snv <- length(unique(vcf$SNP)) - n_indels

list(
Expand Down

0 comments on commit 8e3c1aa

Please sign in to comment.