-
Notifications
You must be signed in to change notification settings - Fork 0
create_empty_world
(max::Tuple=(DEF_X_MAX, DEF_Y_MAX); name::String=Dates.format(Dates.now(), dateformat"yyyy-mm-dd_HH-MM-SS"), k_capacity=DEF_K_CAPACITY, r_prolif_rate=DEF_R_PROLIF_RATE, n_loci=DEF_N_LOCI, n_sel_loci=DEF_N_SEL_LOCI, mut_rate=DEF_MUT_RATE, migr_rate=DEF_MIGR_RATE, migr_mode=DEF_MIGR_MODE, s_sel_coef=DEF_S_SEL_COEF, h_domin_coef=DEF_H_DOMIN_COEF, prop_of_del_muts=DEF_PROP_OF_DEL_MUTS)
Creates an empty deme space, i.e. an N-dimensional lattice of demes that can house individuals with a finite-site genetic structure.
N is determined from the dimensions of the max tuple (2-dimensional by default).
max: world extents
name: world name
k_capacity: capacity of each deme
r_prolif_rate: proliferation rate
n_loci: number of loci
n_sel_loci: number of selected loci
mut_rate: genome-wide mutation rate
migr_mode: mode of migration. Possible values:
ort - orthogonal directions only
all - orthogonal and diagonal
hex - hexagonal grid
diag1/2 - orthogonal and half-weighted diagonal
buffon1 - equidistant Buffon-Laplace (see documentation)
buffon2 - uniform Buffon-Laplace
buffon3 - inv.proportional Buffon-Laplace
s_sel_coef: selection coefficient
h_domin_coef: dominance coefficient (in heterozygous loci, new_fitness *= 1 - h_domin_coef * s_sel_coef)
prop_of_del_muts: proportion of deleterious mutations in nature
Output 1: a spatial array of demes that contain individuals' left monosome [Bool] arrays (all empty)
Output 2: a spatial array of demes that contain individuals' right monosome [Bool] arrays (all empty)
Output 3: world stats Dict