caravagnalab / rRACES

R wrapper for the RACES package
GNU General Public License v3.0
2 stars 1 forks source link

problem with muller plot #85

Closed riccardobergamin closed 6 months ago

riccardobergamin commented 7 months ago

I am getting an error with the function plot_muller()

library(rRACES)

sim <- new(Simulation, "homogeneous_test",seed = sample(x = 1:5000,size = 1,replace = F),
           save_snapshot = F)

sim$duplicate_internal_cells <- T

sim$update_tissue("Liver", 2e3, 2e3)

sim$add_mutant(name = "A",
               growth_rates = 1,
               death_rates = 0)

sim$place_cell("A", 1e3, 1e3)

sim$run_up_to_size("A",1e4)

sim$add_mutant(name = "B",
               growth_rates = 3.5,
               death_rates = 0)

sim$mutate_progeny(sim$choose_cell_in("A"), "B")

sim$run_up_to_size("B",1e4)

plot_muller(sim)
Screenshot 2024-02-28 alle 12 07 18 Screenshot 2024-02-28 alle 12 12 11
albertocasagrande commented 7 months ago

I successfully ran it with success 100 times on a MacBook with 16GB of RAM with macOS Sonoma 14.3.1.

Which system are you executing the script on? Can you provide the exact seed on which the script failed?

albertocasagrande commented 6 months ago

Closed because of the lack of feedback.