create_two_populations_migration: Create two populations, linked by migration

Description Usage Arguments Value Author(s) Examples

Description

This function creates two independent populations linked through migration.

Usage

1
2
create_two_populations_migration(pop_size, number_of_founders,
            total_runtime, morgan, seed, migration, progress_bar)

Arguments

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

Value

An object containing two population objects: Population_1 and Population_2.

Author(s)

Thijs Janzen

Examples

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)

thijsjanzen/isoSIM documentation built on May 29, 2019, 10:39 a.m.