backsolveSNPeff: backsolveSNPeff

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

From the GBLUP solutions and a centered SNP matrix backsolve SNP effects

Usage

1

Arguments

Z

Centered marker matrix (dominance deviations must also be centered)

g

The solutions (blups, i.e. GEBVs) from the GBLUP model

Value

matrix of SNP effects matching RR-BLUP / SNP-BLUP

Examples

 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)

wolfemd/predCrossVar documentation built on Dec. 21, 2020, 10:14 a.m.