inbFun | R Documentation |
Simple function for fitness where we only use the group relationship.
inbFun(Y,b,Q,D,a, lambda)
Y |
A matrix of trait values. See details. |
b |
A vector of trait weights. See details. |
Q |
A QTL matrix. See details. |
D |
An LD matrix. See details. |
a |
A named list with vectors of average allelic effects per trait. See details. |
lambda |
A numeric value to weight the Q'DQ portion of the objective function (to be provided by the user with the lambda argument). See details. |
A simple apply function of a regular index weighted by a vector of relationships.
Matrix::diag(Q%*%Matrix::tcrossprod(D,Q)) of dimensions n x n
Notice that Q represents the marker of QTLs (columns) for all solutions (rows) and D the LD between QTLs. The user can modify this function as needed and provide it to the evolafit function along with other arguments.
a vector of values
Giovanny Covarrubias-Pazaran (2024). evola: a simple evolutionary algorithm for complex problems. To be submitted to Bioinformatics.
evolafit
– the core function of the package
Q <- matrix(1,3,3) # QTL matrix available internally
D <- diag(3) # LD matrix
inbFun(Q=Q, D=D) # group relationship
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.