Skip to contents

Return the full per-effect susie alpha table (ctwas::finemap_regions susie_alpha_res shape) from a CtwasResultEntry or a CtwasResult collection (aggregated across rows, tagged with run identity). This is the fuller cTWAS output retained so the raw run is reconstructable.

Usage

getSusieAlpha(x, ...)

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

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

Arguments

x

A CtwasResultEntry or CtwasResult.

...

Class-specific selection arguments.

Value

A data.frame of per-effect alphas (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)))
getSusieAlpha(cre)
#>   id alpha
#> 1 g1   0.9
#> 2 g2   0.1