founder: 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)
Value
Objects of R6 class with methods to mimic in silico Specimens.
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).
data(ToyMap)
spc <- set_specie(ToyMap)
## through standalone functionAA <- founder(spc, "AA")
aa <- founder(spc, "aa")
## or by the Specie's methodAa <- spc$founder("Aa")
aA <- spc$founder("aA")