Description Usage Arguments Value Author(s) See Also Examples
Extract given pairs from relatedness matrix and apply given function
1 |
app |
Relatedness matrix |
pairs |
Vector or matrix defining wanted pairs or a |
FUN |
Function to apply to relatedness of given pairs. Argument function must be a vector. |
Result value of FUN function for relatedness between given pairs.
Claire Dandine-Roulland
1 2 3 4 5 6 7 8 | # load chr2 data set (~10k SNPs in low LD)
x <- read.bed.matrix( system.file("extdata", "chr2.bed", package="gaston") )
# Compute Rousset Relationship Matrix
K <- Rousset(x)$Rousset
# Compute mean of relatedness between individuals from similar population
app.pairs(K, x@ped$population, FUN=mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.