bedasmatrix: Get Bed Data As A Matrix

Description Usage Arguments Value See Also

View source: R/access.R

Description

Gets a bed file as a regular R matrix.

Usage

1
bedasmatrix(bed, meanimpute = FALSE, normalise = TRUE, verbose = TRUE)

Arguments

bed

The "rbed" object to read

meanimpute

(default FALSE) Whether to replace missing values with their mean (if normalise=TRUE only)

normalise

(default TRUE) Whether to normalise data by SNP frequency, or return counts.

verbose

(default TRUE) whether to show progress for individual access

Value

A matrix of data with the additional attribute "idx" referring to the indexes of the returned individuals.

See Also

bedasbigmatrix


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