Description Usage Arguments Value Author(s) Examples
Create a population from isofemale individuals
1 2 | create_population_from_individuals(individuals, pop_size,
total_runtime, morgan, seed, progress_bar)
|
individuals |
List of isofemale individuals to be used to create a population from. |
pop_size |
Number of individuals in the population |
total_runtime |
Number of generations allowed for inbreeding |
morgan |
Length of the chromosome in Morgan (e.g. the number of crossovers during meiosis) |
seed |
Seed of the pseudo-random number generator |
progress_bar |
Displays a progress_bar if TRUE. Default value is TRUE |
A population object
Thijs Janzen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## Not run:
two_populations <- create_two_populations(pop_size = 100,
number_of_founders = 20,
total_runtime = 2,
morgan = 1,
seed = 42,
overlap = 0.25,
progress_bar = FALSE)
isofemale_1 <- create_iso_female(source_pop = two_populations$Population_1,
n = 1,
inbreeding_pop_size = 100,
run_time = 1000000,
morgan = 1,
progress_bar = FALSE)
isofemale_2 <- create_iso_female(source_pop = two_populations$Population_2,
n = 1,
inbreeding_pop_size = 100,
run_time = 1000000,
morgan = 1,
progress_bar = FALSE)
mixed_population <- create_population_from_individuals(list(isofemale_1[[1]],
isofemale_2[[1]]),
pop_size = 100, total_runtime = 10,
morgan = 1, seed = 42,
progress_bar = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.