Skip to contents

Return the integer indices into the handle's snpInfo carried by an LdData.

Usage

getSnpIdx(x)

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

Arguments

x

An LdData.

Value

Integer vector or NULL.

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))
getSnpIdx(ld)
#> NULL