Skip to content

Commit

Permalink
Update ascets_resources.R
Browse files Browse the repository at this point in the history
  • Loading branch information
lfspurr authored Oct 24, 2023
1 parent 8aadea8 commit d4dbdab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ascets_resources.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ determine_noise_threshold <- function(cna, noise, keep_noisy = F) {

# internal function to annotate segments with supplied cytobands
annotate_cytobands <- function(cna, cytoband) {
left_join(cna, cytoband, by = "chrom") %>% ungroup() %>% filter(segment_start < end & (segment_start > start | segment_end > start)) %>%
left_join(cna, cytoband, by = "chrom", relationship = "many-to-many") %>%
ungroup() %>%
filter(segment_start < end & (segment_start > start | segment_end > start)) %>%
mutate(start = as.numeric(start), end = as.numeric(end),
segment_start = as.numeric(segment_start), segment_end = as.numeric(segment_end),
cyto_len = end - start) %>%
Expand Down

0 comments on commit d4dbdab

Please sign in to comment.