ora.render: Render altered gene sets by over-representation analysis

View source: R/render-ora.R

ora.renderR Documentation

Render altered gene sets by over-representation analysis

Description

Render altered gene sets by over-representation analysis

Usage

ora.render(
  ags,
  fgs,
  universe,
  case_sensitive = FALSE,
  n_cores = 1L,
  verbose = TRUE
)

Arguments

ags

Named list of altered gene sets.

fgs

Named list of functional gene sets.

universe

Character vector of eligible gene or protein identifiers, or a positive integer giving only the universe size. An explicit vector is preferred.

case_sensitive

Use case-sensitive identifier matching. By default, identifiers in AGS, FGS, and the universe are matched case-insensitively.

n_cores

Positive integer number of worker processes. Independent FGS rows are distributed across workers when greater than one.

verbose

Report progress with message().

Details

Each AGS–FGS pair is tested with a two-sided Fisher exact test. BH adjustment is applied across all cells, after which depleted pairs (odds ratio below 1) receive q-value 1 to retain the enrichment-only convention used by NEArender.

Value

A nearender_result. scores$odds_ratio contains Fisher-test odds ratios. The identical master matrix is also available as statistics$odds_ratio; other statistics are literal overlap counts (n.actual), two-sided p-values, and enrichment q-values. No statistical matrices occur at the result's top level. inputs records the analyzed set names, sizes, and universe size.

See Also

nea.render(), ear(), gsva.render()

Examples

data("NEArender.test")
ags <- NEArender.test$AGS$CCLE[1:2]
fgs <- NEArender.test$FGS$Hallmarks[1:3]
universe <- unique(c(unlist(ags), unlist(fgs)))
ora <- ora.render(ags, fgs, universe, verbose = FALSE)
ora$scores$odds_ratio
ora$statistics$p

NEArender documentation built on Nov. 28, 2026, 5:10 p.m.