Skip to contents

Return the per-gene (and per-SNP) fine-mapping posterior table from a CtwasResultEntry or a CtwasResult collection (aggregated across rows, tagged with run identity).

Usage

getFinemap(x, ...)

# S4 method for class 'CtwasResult'
getFinemap(x, ...)

# S4 method for class 'CtwasResultEntry'
getFinemap(x, ...)

Arguments

x

A CtwasResultEntry or CtwasResult.

...

Class-specific selection arguments.

Value

A data.frame of posteriors (or NULL when absent).

Examples

cre <- CtwasResultEntry(
  finemap = data.frame(id = c("g1", "g2"), susie_pip = c(0.9, 0.1)),
  susieAlpha = data.frame(id = c("g1", "g2"), alpha = c(0.9, 0.1)))
getFinemap(cre)
#>   id susie_pip
#> 1 g1       0.9
#> 2 g2       0.1