readGRM | R Documentation |
GRM is the core formt of GCTA, which is an binary symmetric matrix with an extra variant count matrix (VCM), this function reads the binary sysmmetric matrix.
readGRM(pfx, fid = NULL)
pfx |
prefix of GRM file set |
fid |
separator after family ID (def=NULL, use IID only) |
GCTA GRM is represented by a set of three files:
GRM matrix in binary
sample FID and IID in text
number of valid variants for each GRM entry
and it always uses single precision (4 bytes per entry).
To read the extra the extra VCM (grm.N.bin), use readVCM
.
matrix of relatedness with sample ID in row and column names.
pfx <- file.path(system.file("extdata", package="plinkFile"), "m20")
(readGRM(pfx))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.