Skip to content

Commit d4dbdab

Browse files
authored
Update ascets_resources.R
1 parent 8aadea8 commit d4dbdab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ascets_resources.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ determine_noise_threshold <- function(cna, noise, keep_noisy = F) {
222222

223223
# internal function to annotate segments with supplied cytobands
224224
annotate_cytobands <- function(cna, cytoband) {
225-
left_join(cna, cytoband, by = "chrom") %>% ungroup() %>% filter(segment_start < end & (segment_start > start | segment_end > start)) %>%
225+
left_join(cna, cytoband, by = "chrom", relationship = "many-to-many") %>%
226+
ungroup() %>%
227+
filter(segment_start < end & (segment_start > start | segment_end > start)) %>%
226228
mutate(start = as.numeric(start), end = as.numeric(end),
227229
segment_start = as.numeric(segment_start), segment_end = as.numeric(segment_end),
228230
cyto_len = end - start) %>%

0 commit comments

Comments
 (0)