IBS_pseudo: Generate IBS pseudo variables

Description Usage Arguments Value Examples

Description

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.

Usage

1

Arguments

x

An n by q matrix of genetic variants.

Value

It returns an n by 3p matrix of pseudo variables for efficiently calculating IBS similarity.

Examples

 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.

LGRF documentation built on May 2, 2019, 10:59 a.m.

Related to IBS_pseudo in LGRF...