make_GRM: Construct the G matrix from genotypes

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

This function ....

Usage

1
make_GRM(genomat)

Arguments

genomat

matrix of genotypes in -1,0,1 format (i.e. 0 is heterozygous, 1 and -1 are opposing homozygous states)

Value

additive Genomic Relationship Matrix with cols and rows named according to the rownames in genomat.Uses the cpgen package implementation of Van Radens GRM method

Examples

1
2
3
# get an example genotype matrix
data(M)
make_GRM(M)

dkainer/BLUPGA documentation built on Jan. 3, 2020, 1:09 a.m.