aggregate_omics: Aggregate multi-omics gene/protein-level statistics

View source: R/multi_omics.R

aggregate_omicsR Documentation

Aggregate multi-omics gene/protein-level statistics

Description

Aggregate multi-omics or multi-source statistics into a unified object for downstream enrichment analysis.

Usage

aggregate_omics(
  x,
  method = c("fisher", "stouffer", "brown", "mean", "weighted_mean", "max_abs"),
  input = c("pvalue", "signed_score"),
  feature_type = "gene",
  conflict_policy = c("keep_all", "strict", "penalty"),
  ...
)

Arguments

x

A list of named numeric vectors, a data.frame, or a matrix. Row names (or names for vectors) must represent feature IDs.

method

Character, aggregation method. One of "fisher", "stouffer", "mean", or "max_abs".

input

Character, input type. One of "pvalue" or "signed_score".

feature_type

Character, type of the features (e.g., "gene", "protein"). Default is "gene".

conflict_policy

Character, strategy to handle directional conflicts when input is "signed_score". One of "keep_all" (default, ignore conflicts), "strict" (set to NA if any signs conflict), or "penalty" (divide final score by 2 if signs conflict).

...

Additional arguments.

Value

An object of class omics_aggregated containing score, pvalue (if input is "pvalue"), input_type, feature_type, and feature_id.


enrichit documentation built on Oct. 28, 2026, 9:07 a.m.