readREL: Read PLINK Binary REL matrix

View source: R/rel.R

readRELR Documentation

Read PLINK Binary REL matrix

Description

A PLINK REL (Relatedness) matrix is represented by

.rel.bin:

REL matrix in binary

.rel.id :

FID and IID in text

A binary REL matrix is the result of PLINK --make-rel bin

Usage

readREL(pfx, fid = ".")

Arguments

pfx

prefix of the REL file set

fid

separate after family ID. (def=NULL, use IID only)

Value

relatedness matrix with row and column names set to sample ID.

Examples

pfx <- file.path(system.file("extdata", package="plinkFile"), "m20")
(readREL(pfx))


plinkFile documentation built on Nov. 24, 2023, 5:10 p.m.

Related to readREL in plinkFile...