Skip to contents

Return the per-panel mixing proportions carried by an LdData when its genotypeHandle slot is a list of panels. NULL for single-panel objects.

Usage

getMixtureWeights(x)

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

Arguments

x

An LdData.

Value

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