get_data: Get normalised data from an rbed object in an efficient...

Description Usage Arguments Value

View source: R/access.R

Description

This function is for efficient bulk processing. It accesses data in the format in which it is stored, rather than by individual IDs.

Usage

1
get_data(bed, i, meanimpute = FALSE, normalise = TRUE, verbose = TRUE)

Arguments

bed

The "rbed" object to read

i

The index of data to read. 4 individuals are stored in each binary object. so i refers to the index of this set, i.e. i=2 gives individuals 5:8. You can give a single value or a vector. It returns fewer entries if you are at the end of the data.

meanimpute

default FALSE. If normalise=TRUE, whether to replace missing values with their mean.

normalise

default TRUE. Whether to return the raw data or normalise by frequency.

verbose

(default TREE) 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.


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