Skip to content

Commit

Permalink
fix bug map_mutations_to_subclonal_segments
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceAntonello committed Jul 12, 2024
1 parent 274cde9 commit 00cd966
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/map_mutations.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ map_mutations_to_subclonal_segments = function(mutations, cna_subclonal)
# Map mutations to the actual segments
cna_subclonal$mutations = NULL

if (nrow(cna_subclonal)>0){
# pb <- progress_estimated(nrow(cna_subclonal), min_time = 0)
pb = progress::progress_bar$new(format = paste0(" ▣ :spin [:bar] :percent [ETA :eta] ▶ :elapsedfull"),
total = nrow(cna_subclonal), clear = TRUE, complete = "~", incomplete = " ",
Expand Down Expand Up @@ -99,6 +100,7 @@ map_mutations_to_subclonal_segments = function(mutations, cna_subclonal)
}

cna_subclonal$n = sapply(cna_subclonal$mutations, nrow)
}

return(cna_subclonal)
}

0 comments on commit 00cd966

Please sign in to comment.