readVCM {plinkFile}R Documentation

Read Variant Count Matrix (VCM) accompanying a GCTA GRM

Description

GRM (Genetic Relatedness Matrix) is the core formt of GCTA, which is a PLINK binary symmetric matrix with an extra variant count matrix (VCM), this function reads the VCM.

Usage

readVCM(pfx, fid = NULL)

Arguments

pfx

prefix of GRM file set

fid

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

Value

matrix of variant count with sample ID in row and column names.

Examples

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


[Package plinkFile version 0.2.1 Index]