From 9c3f9d3274797e001bf526661e70767be0bcab79 Mon Sep 17 00:00:00 2001 From: joshseth Date: Wed, 31 Jul 2024 08:06:17 -0400 Subject: [PATCH] added runtime parameter --- PATHpaper_functions.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PATHpaper_functions.R b/PATHpaper_functions.R index b83546d..4d9b5c6 100644 --- a/PATHpaper_functions.R +++ b/PATHpaper_functions.R @@ -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