Description Usage Arguments Value Examples
If users want to calculate the IBS similarity, this function creates the IBS pseudo variables. This is in order to calculate the IBS similarity in an efficient way.
1 | IBS_pseudo(x)
|
x |
An n by q matrix of genetic variants. |
It returns an n by 3p matrix of pseudo variables for efficiently calculating IBS similarity.
1 2 3 4 5 6 7 8 9 10 | library(LGRF)
# Load data example
# Z: genotype matrix, n by q matrix
data(LGRF.example)
Z<-LGRF.example$Z
A<-IBS_pseudo(Z)
# Then the IBS matrix can be calculated by K.IBS<-AA^T.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.