detectModellingParameters: Detect modelling parameters

Description Usage Arguments Value Examples

Description

Detect modelling parameters for Binalysis, MetaboProfile or Analysis S4 classes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
detectModellingParameters(x, ...)

## S4 method for signature 'Binalysis'
detectModellingParameters(x)

## S4 method for signature 'MetaboProfile'
detectModellingParameters(x)

## S4 method for signature 'Analysis'
detectModellingParameters(x, type = "pre-treated", cls = "class")

Arguments

x

S4 object of class Binalysis,MetaboProfile or Analysis

...

arguments to pass to the appropriate method

type

detect parameters for raw or pre-treated data for Analysis class

cls

sample information column to use for modelling

Value

S4 object of class AnalysisParameters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Retrieve file paths and sample information for example data
files <- metaboData::filePaths('FIE-HRMS','BdistachyonEcotypes')[1:2]

info <- metaboData::runinfo('FIE-HRMS','BdistachyonEcotypes')[1:2,]

## Perform spectral binning
analysis <- binneR::binneRlyse(files, 
                               info, 
                               parameters = binneR::detectParameters(files))

## Detect modelling parameters
modelling_parameters <- detectModellingParameters(analysis)

modelling_parameters

jasenfinch/metaboMisc documentation built on Feb. 10, 2022, 4:22 p.m.