Skip to contents

Return a per-tuple summary-statistics data.frame in the standardized layout variant_id, chrom, pos, A1, A2, z, beta, se, N, maf (optional columns omitted when absent on the entry). Combines tuple-keyed row selection (getSumStats) with mcols unpacking; replaces the pre-S4 idiom of pulling S4Vectors::mcols(entry)$<col> directly inside pipelines.

Usage

getSumstatDf(x, ...)

# S4 method for class 'QtlSumStats'
getSumstatDf(
  x,
  study = NULL,
  context = NULL,
  trait = NULL,
  require = character(0),
  derive = c("none", "zFromBetaSe"),
  keepChrPrefix = TRUE
)

# S4 method for class 'GwasSumStats'
getSumstatDf(
  x,
  study = NULL,
  require = character(0),
  derive = c("none", "zFromBetaSe"),
  keepChrPrefix = TRUE
)

Arguments

x

A GwasSumStats or QtlSumStats object.

...

Class-specific selectors (study for GwasSumStats; study, context, trait for QtlSumStats) plus pass-throughs require, derive, keepChrPrefix forwarded to the underlying unpacker.

Value

A data.frame.