Skip to content

Commit

Permalink
added runtime parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
joshseth committed Jul 31, 2024
1 parent ec270fb commit 9c3f9d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PATHpaper_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,9 @@ SSE_vs_PATHpro_FE <- function(x, P, birth, death, total_prolif = NULL, depth = 3
Pro_eucG <- euc(true_prolif, Pro$gamma)

s3 <- Sys.time()
# Setting max_model_runtime = 60 significantly speeds up fit_musse.
SSE <- fit_musse(x$tree, n , tip_pstates = x$states, sampling_fractions = rho,
transition_rate_model = "ARD")
transition_rate_model = "ARD", max_model_runtime = 60)
s4 <- Sys.time()
Psse <- expm(SSE$parameters$transition_matrix)
gsse <- SSE$parameters$birth - SSE$parameters$death
Expand Down

0 comments on commit 9c3f9d3

Please sign in to comment.