Learn R Programming

plinkFile (version 0.1.0)

dbd: Decompress Byte Data

Description

For each SNP (i.e., a row in the BED), a byte encodes the up to 4 genotype samples (2 bits each).

Usage

dbd(B, N, quiet = TRUE)

Value

a N x P matrix of genotype, where P is the number of variants.

Arguments

B

byte data in R "raw" mode

N

number of individuals in the byte data.

quiet

do not report (def=TRUE)

Details

The function decodes bytes read from a BED to allele dosage or NA.