Skip to contents

Per-run cTWAS payload wrapping the fine-mapping posterior table, the full per-effect susie alpha table, the estimated group prior(s), and region metadata. Held in every row of a CtwasResult collection.

Usage

CtwasResultEntry(
  finemap = NULL,
  susieAlpha = NULL,
  param = NULL,
  regionInfo = NULL
)

Arguments

finemap

The per-gene (and, when SNPs are retained, per-SNP) posterior summary table (ctwas::finemap_regions finemap_res shape), or NULL.

susieAlpha

The per-effect susie alpha table (ctwas::finemap_regions susie_alpha_res shape) – the fuller cTWAS output retained so the raw run is reconstructable, or NULL.

param

The estimated group_prior / group_prior_var for this run, or NULL.

regionInfo

Per-region metadata, or NULL.

Value

A CtwasResultEntry object.

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)))
cre
#> An object of class "CtwasResultEntry"
#> Slot "finemap":
#>   id susie_pip
#> 1 g1       0.9
#> 2 g2       0.1
#> 
#> Slot "susieAlpha":
#>   id alpha
#> 1 g1   0.9
#> 2 g2   0.1
#> 
#> Slot "param":
#> NULL
#> 
#> Slot "regionInfo":
#> NULL
#>