Founder: Constructor of a Founder Instances of the Specimen Class

founderR Documentation

Constructor of a Founder Instances of the Specimen Class

Description

Constructor of instances of the Specimen class given the Specie from which the individual will belong where all loci will equal to the provided genotype.

Usage

founder(specie, code)

Arguments

specie

an instance of the R6 class Specie with the genome's parameters.

code

a length one character vector with one of the genotype codes: "AA", "Aa", "aA" or "aa".

Details

Genotypes can be coded as AA, Aa, aA or aa, that meant to represent both homozigous (AA and aa) as well as both heterozigous (Aa and aA).

Value

Objects of R6 class with methods to mimic in silico Specimens.

Examples

data(ToyMap)
spc <- set_specie(ToyMap)

## through standalone function
AA <- founder(spc, "AA")
aa <- founder(spc, "aa")

## or by the Specie's method
Aa <- spc$founder("Aa")
aA <- spc$founder("aA")


isqg documentation built on Oct. 18, 2022, 9:07 a.m.

Related to Founder in isqg...