Skip to content

Commit

Permalink
Restore VAF>=5% cutoff for non-hotspots, from 4%
Browse files Browse the repository at this point in the history
  • Loading branch information
ckandoth committed Jun 29, 2018
1 parent cd44b75 commit 1852bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter_dmp.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ annotate_maf <- function(maf) {

if (!('FILTER' %in% names(maf))) maf$FILTER = '.'
maf.annotated <- maf[, dmp_filter := ifelse(hotspot_whitelist == TRUE & as.numeric(t_depth) >= 12 & as.numeric(n_depth) >= 6 & as.numeric(t_alt_count) >= 3 & as.numeric(t_alt_count)/as.numeric(t_depth) >= 0.02, FALSE,
ifelse(hotspot_whitelist == FALSE & as.numeric(t_depth) >= 20 & as.numeric(n_depth) >= 10 & as.numeric(t_alt_count) >= 5 & as.numeric(t_alt_count)/as.numeric(t_depth) >= 0.04, FALSE, TRUE))]
ifelse(hotspot_whitelist == FALSE & as.numeric(t_depth) >= 20 & as.numeric(n_depth) >= 10 & as.numeric(t_alt_count) >= 5 & as.numeric(t_alt_count)/as.numeric(t_depth) >= 0.05, FALSE, TRUE))]
maf.annotated <- maf[, FILTER := ifelse(dmp_filter == TRUE, ifelse((FILTER == '' | FILTER == '.' | FILTER == 'PASS'), 'dmp_filter', paste0(FILTER, ';dmp_filter')), FILTER)]
return(maf.annotated)
}
Expand Down

0 comments on commit 1852bb3

Please sign in to comment.