Simulation of a metapopulation
METAPOP_SIMULATION(
nbPop,
ids,
migMat,
nsim,
verbose,
recording,
recordGenGap,
drift,
nbHaplo,
nbGeno,
idGeno,
nbAlleles,
idAlleles,
nbLoci,
initGenoFreq,
meiosisMat,
gametogenesisMat,
popSize,
threshold,
dioecy,
selfRate,
stopCondition,
IDstopCondition,
haploCrossMat,
alleleFreqMat,
gamFit,
indFit,
gamProdFit,
demography,
growthRate,
initPopSize,
nameOutFunct
)
number of populations in the metapopulation
population IDs
migration matrix
number of simulations
boolean determining if the progress of the simulations should be displayed or not (useful in case of many simulations)
a boolean indicating whether to record all mutations, i.e. to record allelic and genotypic frequencies along the simulations
the number of generations between two records during simulation, if the record parameter is TRUE. Whatever the value of this parameter, both the first and the last generation will be included in the record
a boolean indicating whether genetic drift should be considered (i.e. whether deterministic simulations are performed or not)
number of haplotypes
number of genotypes
genotypes ID
number of alleles for each loci
alleles ID
number of loci
list of initial genotype frequencies in the populations
meiosis matrix
gametogenesis matrix
list population sizes
threshold for simulations
whether the population(s) is dioecious or not (hermaphrodism)
list of the selfing rate in populations (only for hermaphroditic population)
list of stop conditions
vector of stop condition ID
haplotypes crossing matrix
matrix for calculating allelic frequencies
fitness of gametes
fitness of individuals
fitness for gamete production
list of population demographies
list of population growth rates
list of initial population
name of the custom output function
Ehouarn Le Faou