Return the reference-panel sample size used to compute an
LdStatistic or carried by an LdData.
Usage
getNRef(x)
# S4 method for class 'LdData'
getNRef(x)
# S4 method for class 'LdStatistic'
getNRef(x)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))
getNRef(ld)
#> [1] 0