Skip to content

Commit

Permalink
prevent scale1 = Inf when input is monoclonal
Browse files Browse the repository at this point in the history
  • Loading branch information
whelena committed Oct 7, 2024
1 parent 609e27a commit 6fe99c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

## Bug
* Fixed S3 naming conflict in heatmap functions, using safe "create." prefix
* Fixed error when input is monoclonal


# CancerEvolutionVisualization 2.0.0 (2023-11-16)
Expand Down
2 changes: 1 addition & 1 deletion R/branch.length.scaling.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ get.smart.branch.length.scale <- function(branch.lengths, tree.depth) {
}

get.tree.depth.modifier <- function(tree.depth) {
log2(tree.depth);
max(log2(tree.depth), 1);
}

0 comments on commit 6fe99c4

Please sign in to comment.