# Load the example network
data(lac_operon_net)
# Define parameters for the SDDS method
props <- rep(0.95, length(lac_operon_net$genes))
params <- list(p00 = props, p01 = props, p10 = props, p11 = props)
# Get node activities after simulation using the SDDS method
node_act <- calc_node_activities(lac_operon_net, method = "SDDS", params = params,
steps = 100, repeats = 10000)
# Calculate the convergence time
convergence_time <- calc_convergence_time(node_act, threshold = 0.01)
# Print the convergence time
print(convergence_time)
Run the code above in your browser using DataLab