Description Usage Arguments Value Examples
View source: R/utility_functions.R
From the GBLUP solutions and a centered SNP matrix backsolve SNP effects
1 | backsolveSNPeff(Z, g)
|
Z |
Centered marker matrix (dominance deviations must also be centered) |
g |
The solutions (blups, i.e. GEBVs) from the GBLUP model |
matrix of SNP effects matching RR-BLUP / SNP-BLUP
1 2 3 4 5 6 7 8 9 10 11 | A<-kinship(M,type="add")
trainingDF %<>% dplyr::mutate(ga=factor(as.character(id),
levels=rownames(A)),
gd=ga)
gblup<-mmer(pheno~1,
random=~vs(ga,Gu = A),
weights=WT,
data=trainingDF,verbose = T)
ga<-as.matrix(gblup$U$`u:ga`$pheno,ncol=1)
Za<-centerDosage(M)
snpeff<-backsolveSNPeff(Za,ga)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.