Learn R Programming

plinkFile (version 0.2.1)

readVCM: 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)

Value

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

Arguments

pfx

prefix of GRM file set

fid

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

Examples

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

Run the code above in your browser using DataLab