Learn R Programming

dartR (version 1.1.11)

gl.grm: Calculates the genomic relatedness matrix

Description

The G matrix is calculated by centering the allele frequency matrix of the second allele by substracting 2 times the allefrequency

Usage

gl.grm(gl, plotheatmap = TRUE, return.imputed = FALSE, ...)

Arguments

gl

-- a genlight object

plotheatmap

-- a switch if a heatmap should be shown [Default:TRUE]

return.imputed

switch if loci with imputed data should be returned (see ?A.mat in package rrBLUP)

...

parameters passed to function A.mat from package rrBLUP

Value

a genomic relatedness matrix

Examples

Run this code
# NOT RUN {
gl.grm(bandicoot.gl[1:5,1:10])  
# }

Run the code above in your browser using DataLab