detectModellingParameters: Detect modelling parameters

detectModellingParametersR Documentation

Detect modelling parameters

Description

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

Usage

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

an object of S4 class Binalysis,MetaboProfile or Analysis

...

arguments to pass to the appropriate method

type

detect modelling parameters for raw or pre-treated data for the Analysis S4 class

cls

sample information column to use as the response for modelling

Value

and object of S4 class AnalysisParameters

Examples

## Retrieve file paths and sample information for example data
files <- metaboData::filePaths('FIE-HRMS','BdistachyonEcotypes')

info <- metaboData::runinfo('FIE-HRMS','BdistachyonEcotypes')

## 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 July 31, 2023, 2:28 a.m.