Get cTWAS Fine-mapping Posteriors
Source:R/AllGenerics.R, R/CtwasResult.R, R/CtwasResultEntry.R
getFinemap.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
getFinemap(x, ...)
# S4 method for class 'CtwasResult'
getFinemap(x, ...)
# S4 method for class 'CtwasResultEntry'
getFinemap(x, ...)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