create_iso_female: Create isofemale

Description Usage Arguments Details Value Author(s) Examples

Description

Creates isofemale individuals, given a population

Usage

1
2
3
create_iso_female(source_pop, n = 1,
                  inbreeding_pop_size = 100, run_time = 2000,
                  morgan = 1, seed = 42, progress_bar = TRUE)

Arguments

source_pop

Source population from which isofemales are generated

n

Number of isofemales to be generated

inbreeding_pop_size

Population size of the population used to generate homozygous individuals

run_time

Maximum runtime used for inbreeding

morgan

Size of the chromosome in Morgan (e.g. the number of crossovers during meiosis)

seed

Random number generator seed

progress_bar

Displays a progress_bar if TRUE. Default value is TRUE

Details

To create an isofemale, two individuals are randomly picked from the source population. Using these two individuals, a new population is seeded, of size inbreeding_pop_size. Then, this population is allowed to inbreed until either run_time is reached, or until all individuals are homozygous and genetically identical, whatever happens first.

Value

A list of length n, where each entry is a fully homozygous isofemale.

Author(s)

Thijs Janzen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
  wildpop =  create_population(pop_size = 100,
                             number_of_founders = 10,
                             total_runtime = 5,
                             morgan = 1,
                             seed = 42,
                             progress_bar = TRUE)

  isofemale <- create_iso_female(source_pop = wildpop,
                               n = 1,
                               inbreeding_pop_size = 100,
                               run_time = 100,
                               morgan = 1,
                               seed = 42,
                               progress_bar = TRUE)
 
## End(Not run)

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