initializeScheme: initializeScheme function

Description Usage Arguments Details Value Examples

View source: R/InitializationFunctions.R

Description

function to initialize simulation of a breeding program. A single additive-dominance trait is simulated. Check are used in this scheme

Usage

1
initializeScheme(bsp, nThreadsForMacs = NULL)

Arguments

bsp

A list of breeding scheme parameters. See specifyPipeline and specifyPopulation

nThreadsForMacs

uses the nThreads argument in runMacs2, parallelizes founder sim by chrom.

Details

Creates the founders and the initial records at the beginning of the simulation of a breeding program.

Value

A list containing: 1. The simulation parameters in SP; 2. The initial records of the breeding program in records. See fillPipeline for details; 3. A completed bsp object

Examples

1
2
3
4
5
6
bsp <- specifyPopulation(bsp)
bsp <- specifyPipeline()
initList <- initializeScheme(bsp)
SP <- initList$SP
bsp <- initList$bsp
records <- initList$records

wolfemd/alphaSimHlpR documentation built on Sept. 19, 2021, 6:25 p.m.