Description Usage Arguments Value Author(s) Examples
This function creates two independent populations linked through migration.
1 2 | create_two_populations_migration(pop_size, number_of_founders,
total_runtime, morgan, seed, migration, progress_bar)
|
pop_size |
Size of the population, the two populations are assumed to be equal in size. |
number_of_founders |
The number of unique ancestors per population. |
total_runtime |
Each population is allowed to inbreed until the total_runtime is reached. |
morgan |
Size of the chromosome in Morgan. |
seed |
The random seed. |
migration |
Probability of having an individual in the next generation being the result of a migration event from the other population, rather than the result of a reproduction event in the focal population. |
progress_bar |
Displays a progress_bar if TRUE. Default value is TRUE |
An object containing two population objects: Population_1
and Population_2
.
Thijs Janzen
1 2 3 4 5 6 7 | two_populations <- create_two_populations_migration(pop_size = 100,
number_of_founders = 20,
total_runtime = 10,
morgan = 1,
seed = 42,
migration = 0.25,
progress_bar = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.