Skip to content

Commit 0edb6c2

Browse files
committed
closes #6
1 parent 704e009 commit 0edb6c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wts.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ for (i in files) {
117117

118118
# apply minimal coverage threshold
119119
comb_data = comb_data %>%
120+
# next mutate() tries and resolve issue of WTS with very high AF
121+
mutate(WTS = ifelse(is.na(AF), WTS,
122+
ifelse(AF >= (100-variant_threshold), ALT, WTS))) %>%
120123
mutate(WTS = ifelse(is.na(COV), "-", ifelse(COV < minimal_coverage, "N", WTS)))
121124

122125
# write output files

0 commit comments

Comments
 (0)