Skip to contents

Return the per-block GRanges carried by an LdBlocks object.

Lightweight handle to genotype data in any supported format. Stores the file path, detected format, and cached SNP metadata. Used to defer reading genotypes until block-level extraction is needed.

Usage

getBlocks(x)

# S4 method for class 'LdBlocks'
getBlocks(x)

Arguments

x

An LdBlocks.

Value

A GRanges object.

Slots

path

Character, path to the genotype file (or stem for plink).

format

Character, one of "gds", "vcf", "plink1", "plink2".

snpInfo

A data.frame with columns SNP, CHR, BP, A1, A2. Cached on first access.

nSamples

Integer, number of samples.

sampleIds

Character vector of sample identifiers.

pgenPtr

An external pointer for plink2 pgen handle, or NULL.