Description Usage Arguments Details Value Author(s) See Also Examples
A generic function to determine the true genetic performance (genotypic value) of individuals according to their genome.
1 2 3 | hypredTruePerformance(object, ...)
## S4 method for signature 'hypredGenome'
hypredTruePerformance(object, genotypes, DH)
|
object |
an object of a class that holds information on genome
parameters necessary to determine the true genetic performance of individuals, typically an
|
genotypes |
Integer matrix giving the genotypes of the
individuals (as a series of 1s and 0s). If |
DH |
logical argument indicating if one row in the matrix given to |
... |
Methods may require further arguments. |
The additive genotypic value is determined by multiplying the effects of the QTL with the number of 1 alleles of the given QTL in an individual and then summing over the QTL. The part of the genotypic value due to dominance is determined by summing the dominance effects of all dominance QTL that are heterozygous.
Example: Assume that there is only one QTL, with both additive and dominance effect. The additive effect is 1, the dominance effect is 0.5. An individual with genotype 0-1 at this QTL would have a performance of 1.5, a individual with 0-0 a performance of 0 and an individual with 1-1 a performance of 2.
Making use of DH = TRUE
, when the individuals under
consideration are indeed DHs, has two advantages, one is that the
comupations run a littly faster, because dominance can be
ignored. The main advantage, however, is that only half the amount of
data needs to be carried around because one row in the martrix is
sufficient to represent the genotype. When two adjacent (identical)
rows represent the genotypes of the DH individuals, using DH =
FALSE
gives identical results to DH = TRUE
when one row
stands for one DH individual.
When the individuals are not DH (or not all of them), using DH
= TRUE
would create nonsense results!
A one column matrix with as many elements as there were individuals, giving their true genetic performances in the order in which they appeard in the the matrix.
Frank Technow
The function hypredRecombine
which is used to
create progeny genomes and the function hypredNewQTL
which allows to assign new QTLs to the
"hypredGenome"
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ## one chromosome of length 1 M and 5 SNP
genomeDef <- hypredGenome(1, 1.0, 5)
## assign one QTL with and additive effect of 1 to the first two loci,
## with the first loci also having a dominance effect of 0.5 . Firts QTL
## is perfect marker.
genomeDef <- hypredNewQTL(genomeDef,
new.id.add = 1:2,
new.id.dom = 1,
new.id.per.mar = 1,
new.eff.add = c(1,1),
new.eff.dom = 0.5)
summary(genomeDef)
## QTL genotype individual 1 = 1-1; 0-1 value must be 3
## QTL genotype individual 2 = 1-0; 0-1 value must be 2.5
individuals <- matrix(c(1,0,1,0,1,
1,1,0,1,0,
1,0,1,0,1,
0,1,0,1,0), nrow = 4, byrow = TRUE)
gvalues <- hypredTruePerformance(genomeDef,
genotypes = individuals,
DH = FALSE)
print(gvalues)
## test
gvalues <- as.vector(gvalues)
stopifnot(all.equal(gvalues, c(3,2.5)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.