parameters: Get or set analysis parameters

parametersR Documentation

Get or set analysis parameters

Description

Get or set parameters for AnalysisParameters or Analysis class objects.

Usage

parameters(d, ...)

## S4 method for signature 'AnalysisParameters'
parameters(d, element)

## S4 method for signature 'Analysis'
parameters(d)

parameters(d, element) <- value

## S4 replacement method for signature 'AnalysisParameters'
parameters(d, element) <- value

## S4 replacement method for signature 'Analysis'
parameters(d) <- value

Arguments

d

S4 object of class AnalysisParameters or Analysis

...

arguments to pass to the appropriate method

element

analysis element for parameters to extract or assign. Should be one of those returned by analysisElements()

value

list containing parameter values

Examples

p <- analysisParameters('pre-treatment')

## extract pre-treatment parameters
parameters(p,'pre-treatment')

## set pre-treatment parameters
parameters(p,'pre-treatment') <- preTreatmentParameters(
  list(
    remove = 'classes',
    QC = c('RSDfilter','removeQC'),
    transform = 'TICnorm'
  )
)

print(p)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.