Description Usage Arguments Details Value Author(s) References See Also Examples
Apply given function to relatedness of permutated pairs
1 |
app |
Relatedness matrix |
permut.pairs |
Vector defining permutated pairs |
group |
Vector defining potential group in which permutations are done |
FUN |
Function to apply to relatedness of individulas excepted for given pairs. Argument function must be a vector. |
unpairs |
Logical, if |
fixed.pairs |
Vector or matrix defining not permutated pairs or a |
B |
Number of permutations |
thread |
Number of thread used by |
In each group, pairs definition are permutated in main to apply FUN
function.
It is possible to include fixed rules for paris definition in fixed.pairs
argument.
A list of two.
First element, app_pairs
, is the value of function FUN
results for relatedness between given pairs or of individulas
pairs excepted for given pairs for given pairs.
Second element, permut
, is a vector of function FUN
results for relatedness between given pairs or of individulas
pairs excepted for given pairs for each permutations.
Claire Dandine-Roulland
Laurent, R and Chaix, R, 2012, MHC-dependent mate choice in humans: Why genomic patterns from the HapMap European American dataset support the hypothesi, BioEssays 34(4), 267-271
app.pairs
, app.unpairs
, zscore
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
# Permutations
str(app.permut(K, x@ped$population, FUN=mean, B=20, thread=2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.