Skip to content

Commit

Permalink
recover one line
Browse files Browse the repository at this point in the history
  • Loading branch information
Lchaoyue73 committed Feb 21, 2024
1 parent c137dd3 commit ebd4bea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/EstimateCCM.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ EstimateCCM <- function(profiles, phytree, ip=0.1, pen=0.5, ...){
invGAMMA %*% liks[des2, ]
v <- v.l * v.r
comp[anc] <- sum(v)
liks[anc, ] <- v/comp[anc]
}
nonNeg_comp <- ifelse(comp <= 0, 1e-13, comp)
dev <- -1 * sum(log(nonNeg_comp[-TIPS]))
Expand Down

0 comments on commit ebd4bea

Please sign in to comment.