readVCM: Read Variant Count Matrix (VCM) accompanying a GCTA GRM

View source: R/rel.R

readVCMR 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))


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

Related to readVCM in plinkFile...