Skip to contents

Construct a CtwasResult DFrame-subclass collection of cTWAS runs from per-tuple vectors and a list of CtwasResultEntry payloads (one per run). A single-context run is one row; a multi-context run emits per-context rows sharing the same jointContexts set and jointly-estimated group priors.

Usage

CtwasResult(
  gwasStudy,
  study,
  context,
  method,
  entry,
  jointStudies = NULL,
  jointContexts = NULL
)

Arguments

gwasStudy

Character vector of GWAS (disease) study identifiers.

study

Character vector of QTL study identifiers.

context

Character vector of context labels (scalar per row).

method

Character vector of weight-method names.

entry

List / SimpleList of CtwasResultEntry objects.

jointStudies

Optional character vector (length length(gwasStudy)) listing the joined studies for a multi-study run, NA_character_ otherwise. NULL (default) omits the column.

jointContexts

Optional character vector for multi-context runs. Same shape as jointStudies.

Value

A CtwasResult object.