Structure a granular cTWAS finemap result as a CtwasResult
Source:R/ctwasPipeline.R
asCtwasResult.RdDecompose the raw list returned by
finemapCtwasRegions (optionally after
mergeCtwasBoundaryRegions) into the structured, per-(study,
context) CtwasResult — the same decomposition
ctwasPipeline applies to its one-shot output, exposed for the
granular assembleCtwasInputs \(\to\) estCtwasParam \(\to\)
screenCtwasRegions \(\to\) finemapCtwasRegions path. The
GWAS study is read from z_snp$study and the (single) weight method
from the gene ids.
Arguments
- finemapResult
A list from
finemapCtwasRegionsormergeCtwasBoundaryRegions.- keepSnps
Logical (length 1). Retain the context-agnostic SNP background as one extra
study = context = "SNP"row. DefaultFALSE. SeectwasPipeline.
Value
A CtwasResult.