Skip to contents

Checks pAdjustMethod, CTD cache presence, x shape per method, and CAMERA-specific design/contrast requirements. Centralizing here keeps enrichment_CTD() below the BiocCheck 50-line recommendation.

Usage

.validate_enrichment_args(
  x,
  method,
  design,
  contrast,
  pAdjustMethod,
  cache_dir
)

Arguments

x

The user input (data.frame or matrix).

method

Already normalized via match.arg().

design

Design matrix for CAMERA (or NULL).

contrast

Contrast spec for CAMERA (or NULL).

pAdjustMethod

Multiple-testing correction name.

cache_dir

Directory expected to hold CTD .rda files.

Value

Invisibly TRUE on success; otherwise stop()s with an informative message.