Description Usage Arguments Value Examples
Set trait values for one or several genotypes.
1 2 | setPhenotypes(genopheno, traitName, genotypes, traitValue,
equivalent = "phase")
|
genopheno |
genopheno object specifying the genetic setup. |
traitName |
The name of the trait whose values are to be set. |
genotypes |
A vector of strings specifying genotypes. |
traitValue |
The trait value. |
equivalent |
Argument determining which genotypes are to be treated as equivalent. Possible options are "phase" (genotypes that differ only by phase are equivalent, i.e. the order of alleles within a locus does not matter), "origin" (phase is important but not the origin of alleles), and "none" (no two genotypes are equivalent). |
genopheno object with trait information added.
1 2 3 4 | MendelsPeas <- newGenopheno(nloci = 1, alleleNames = list(c('Y', 'y')))
MendelsPeas <- setPhenotypes(MendelsPeas, 'colour', 'Y_', 'yellow')
MendelsPeas <- setPhenotypes(MendelsPeas, 'colour', 'yy', 'green')
getPhenotypes(MendelsPeas)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.