create_population: Create a population

Description Usage Arguments Value Author(s) Examples

Description

Creates a population of individuals

Usage

1
2
3
4
create_population(pop_size, number_of_founders,
                       total_runtime, morgan,
                       seed, progress_bar,
                       track_junctions)

Arguments

pop_size

Total number of diploid individuals

number_of_founders

Number of unique ancestors

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

track_junctions

Track the average number of junctions over time if TRUE

Value

A population structure called "population", and a vector called "junctions" if track_junctions = TRUE

Author(s)

Thijs Janzen

Examples

1
2
3
4
5
6
7
wildpop =  create_population(pop_size = 100,
                             number_of_founders = 10,
                             total_runtime = 10,
                             morgan = 1,
                             seed = 42,
                             progress_bar = TRUE,
                             track_junctions = FALSE)

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