Skip to contents

Returns an n_samples x length(col_idx) numeric matrix of dosage values (0/1/2/NA) for the selected SNP columns. Works identically for all supported backend types.

Usage

read_chunk(backend, col_idx)

Arguments

backend

An object of class "LDxBlocks_backend" as returned by read_geno.

col_idx

Integer vector of column indices (1-based SNP positions).

Value

Numeric matrix (n_samples x length(col_idx)).