Skip to content

Commit 9ae5182

Browse files
Liam Flinn SpurrLiam Flinn Spurr
Liam Flinn Spurr
authored and
Liam Flinn Spurr
committed
fix error with select dplyr function
1 parent 18ceb04 commit 9ae5182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ascets_resources.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ determine_noise_threshold <- function(cna, noise, keep_noisy = F) {
207207
if(!keep_noisy) {
208208
noisy <- noisy %>% mutate(seg_id = paste0(sample, "_", chrom, ":", segment_start, ":", segment_end))
209209
cna <- cna %>% mutate(seg_id = paste0(sample, "_", chrom, ":", segment_start, ":", segment_end)) %>%
210-
filter(!(seg_id %in% noisy$seg_id)) %>% select(-seg_id)
210+
filter(!(seg_id %in% noisy$seg_id)) %>% dplyr::select(-seg_id)
211211
}
212212

213213
# set the amplification and deletion thresholds
@@ -258,7 +258,7 @@ compute_alt_fractions <- function(cna, amp_thresh, del_thresh, min_boc) {
258258
mutate(alt_len_sum = sum(alt_len)) %>% # get how much of each arm is amplified and deleted
259259
ungroup() %>%
260260
mutate(alt_frac = alt_len_sum / cyto_len_corr) %>% # calculate the fraction
261-
select(sample, arm, alt, perc_chrom_cov, cov_pass, alt_frac) %>%
261+
dplyr::select(sample, arm, alt, perc_chrom_cov, cov_pass, alt_frac) %>%
262262
distinct()
263263
}
264264

0 commit comments

Comments
 (0)