getinds: Extract a chunk of individuals from a binary format bed...

Description Usage Arguments Value See Also

View source: R/rbed.R

Description

The binary bed format stores 4 individuals in a byte. This returns the SNP details for these 4 individuals, applying any SNP filtering for a merged dataset as well as flipping any alleles.

Usage

1
getinds(bed, x)

Arguments

bed

An "rbed" object as returned from readbed or mergeref

x

The index of the chunk to extract (NOT an individual index)

Value

a matrix of dimension 4 by (bed$no.snp or length(bed$datkeep)) containing the SNP values for each individual

See Also

getind, getsnp


danjlawson/pcapred documentation built on Oct. 7, 2021, 3:47 p.m.