Skip to contents

Check whether an LdData object has a genotype handle for extracting raw genotypes.

Usage

hasGenotypes(x)

# S4 method for class 'LdData'
hasGenotypes(x)

Arguments

x

An LdData object.

Value

Logical.

Examples

data(eqtlRegionExample)
X <- eqtlRegionExample$X[, 1:8]
gr <- GenomicRanges::GRanges("22",
  IRanges::IRanges(seq(1L, by = 100L, length.out = 8), width = 1L))
ld <- LdData(correlation = cor(X), variants = gr,
  blockMetadata = S4Vectors::DataFrame(
    chrom = "22", start = 1L, end = 1000L))
hasGenotypes(ld)
#> [1] FALSE