Skip to content

Simulation gets killed #47

@Captain-Blackstone

Description

@Captain-Blackstone

I've tried to run this on two computers, one had enormous amount of REM (26 GB of unused by other processes), another only moderate (6 GB). The simulation gets killed on the second one almost instantly. On the second one it runs all the way, but then gets killed at the end when writing data to the files. Which is very surprising to me, since it says that only 7139 samples were sampled. I attach the code with the simulation.
Two questions:

  1. What parameters of the simulation get it killed on the low-memory computer?
  2. Why a simulation with number of samples = 7139 gets killed when writing data to files?
import VGsim

default_popsizes = [268555392, 3859820011, 141557911, 687201725, 217154786, 369140457, 438663234, 364736341]
number_of_sites = 1
number_of_susceptible_groups = 1
number_of_populations = 8
simulator = VGsim.Simulator(number_of_sites,
                            number_of_populations,
                            number_of_susceptible_groups,
                            seed=12235)


for i, popsize in enumerate(default_popsizes):
    simulator.set_population_size(popsize, i)

simulator.set_transmission_rate(0.25)
simulator.set_recovery_rate(0.009995268138801262)
simulator.set_sampling_rate(0.00001)

mutation_rate= 3e-06
substitution_weights=[1,1,1,1] #ATCG
simulator.set_mutation_rate(mutation_rate, substitution_weights)

simulator.set_migration_probability(10/365)


simulator.simulate(180000000)
simulator.genealogy()


simulator.output_migrations("migrations")
simulator.output_newick("tree")

P.S. I think I notice that regardless of the sample size the simulation gets killed on the stage of writing the output to files if it was long enough. So, a very long simulation with very small sampling rate (and very few samples as a result) will get killed, I noticed. I've been told it's not an expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions