ReadGRMBin: Reading Genetic Relationship Matrix from binary files

Description Usage Arguments Value

Description

The function ReadGRMBin was taken from http://cnsgenomics.com/software/gcta/estimate_grm.html and was only slightly modified, but in essence the function here does the same thing. Given three files which have names starting with the same prefix, a list with the diagonal elements, the offdiagonal elements and the ids is returned

Usage

1
ReadGRMBin(prefix, AllN = F, size = 4)

Arguments

prefix

common prefix of input files

AllN

flag indicating whether to read 1 line (FALSE) or n(n+1)/2 lines from file prefix.N.bin

size

wordsize that is passed to readBin

Value

list with diagonal elements, offdiagonals, ids and total number of individuals


charlotte-ngs/rgrm documentation built on May 13, 2019, 3:34 p.m.