View source: R/genetic_relatedness.R
genetic_relatedness | R Documentation |
This function returns single relatedness estimates as a pairwise matrix.
genetic_relatedness(
x,
loci = NA,
mode = c("Nason", "LynchRitland")[1],
freqs = NA
)
x |
A |
loci |
The loci to use (if missing all loci are used). |
mode |
The kind of relatedness to be estimated. Currently Fij (the default) and LynchRitland are available. |
freqs |
An optional |
A matrix of pairwise relatedness estimates.
This only works on diploid data and will return NA for any comparison of missing genotypes.
x <- c( locus(1:2), locus(c(2,2)), locus(1:2) )
genetic_relatedness( x )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.