Skip to contents

R6 class for limma modelling strategy

R6 class for limma modelling strategy

Details

Analogous to strategy_lm but for limma's matrix-based pipeline. Consumed by build_model_limma.

Public fields

formula

model formula

model_name

name of model

trend

logical, passed to eBayes

robust

logical, passed to eBayes

weights

either a character string (column name) or a numeric matrix

Methods


Method new()

Create a new StrategyLimma

Usage

StrategyLimma$new(
  modelstr,
  model_name = "limma",
  trend = FALSE,
  robust = FALSE,
  weights = NULL
)

Arguments

modelstr

model formula as string (e.g. "abundance ~ group_")

model_name

name of model

trend

logical, passed to eBayes

robust

logical, passed to eBayes

weights

either a character string (column name in annotation for per-sample weights) or a numeric matrix (proteins x samples) passed to lmFit. Default NULL (no weights).


Method clone()

The objects of this class are cloneable with this method.

Usage

StrategyLimma$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.