Skip to content

Commit b499f5c

Browse files
Liam Flinn SpurrLiam Flinn Spurr
Liam Flinn Spurr
authored and
Liam Flinn Spurr
committed
fix error which caused errors with 0% altered arms in WGS samples
1 parent acab192 commit b499f5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ascets_resources.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ compute_alt_fractions <- function(cna, amp_thresh, del_thresh, min_boc) {
260260
ungroup() %>%
261261
mutate(alt_frac = alt_len_sum / cyto_len_corr) %>% # calculate the fraction
262262
dplyr::select(sample, arm, alt, perc_chrom_cov, cov_pass, alt_frac) %>%
263-
distinct()
263+
distinct() %>%
264+
mutate(alt_frac = ifelse(is.na(alt_frac), 0, alt_frac))
264265
}
265266

266267
calc_aneu_scores <- function(calls) {

0 commit comments

Comments
 (0)