Get cTWAS Fine-mapping Posteriors
Source:R/AllGenerics.R, R/CtwasResult.R, R/CtwasResultEntry.R
ctwasPosteriors.RdReturn 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
ctwasPosteriors(x, ...)
# S4 method for class 'CtwasResult'
ctwasPosteriors(x)
# S4 method for class 'CtwasResultEntry'
ctwasPosteriors(x)Examples
cre <- CtwasResultEntry(
posteriors = 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)))
ctwasPosteriors(cre)
#> id susie_pip
#> 1 g1 0.9
#> 2 g2 0.1