powered by
Function to calculate a relationship matrix from marker data. Option to return the inverse of matrix. Inverse calculated using Matrix package.
Matrix
calcG(M, data = NULL,solve = FALSE)
Matrix of class dgeMatrix.
dgeMatrix
Matrix of marker genotypes, usually the count of one of the two SNP alleles at each markers (0, 1, or 2).
Optional logical vector which can tell of which individuals we have phenotypes.
Logic, if TRUE then function returns the inverse of the relationship matrix.
SamplePedigree, gblup, makeAinv,blup
SamplePedigree
gblup
makeAinv
blup
example(gblup) G <- calcG(M) Ginv <- calcG(M,solve = TRUE)
Run the code above in your browser using DataLab