Skip to contents

Decompose 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.

Usage

asCtwasResult(finemapResult, keepSnps = FALSE)

Arguments

finemapResult

A list from finemapCtwasRegions or mergeCtwasBoundaryRegions.

keepSnps

Logical (length 1). Retain the context-agnostic SNP background as one extra study = context = "SNP" row. Default FALSE. See ctwasPipeline.

Value

A CtwasResult.