founder | R Documentation |
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.
founder(specie, code)
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". |
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).
Objects of R6 class with methods to mimic in silico Specimens.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.