getDefaultXcmsSetStartingParams: Creates a List of parameters for xcms-methods...

Description Usage Arguments Details Value Author(s) Examples

View source: R/optimizeXcmsSetParameters.R

Description

This function creates a list of parameters used in the xcmsSet.findPeak-methods 'centWave' and 'matchedFilter'. Per default the following parameters have a defined range where optimization should start:
'centWave' parameters: 'peakwidth' (split into 'min_peakwidth' and 'max_peakwidth'), 'ppm', 'mzdiff'
'matchedFilter' parameters: 'fwhm', 'snthresh', 'step', 'steps'

Usage

1
getDefaultXcmsSetStartingParams(method = c("centWave", "matchedFilter"))

Arguments

method

Either parameters for 'centWave' or 'matchedFilter' should be created

Details

* Do not delete a parameter from the list returned.
* Optimization of qualitative parameters is not supported yet.
* If you want to optimize additional parameter just set an lower and an upper bound (e.g. params$snthresh <- c(5,20))
* If you dont want to optimize a parameter set a default value (e.g. params$snthresh <- 10)

Value

A List of parameters for the xcmsSet.findPeak-methods 'centWave' or 'matchedFilter'

Author(s)

Gunnar Libiseller

Examples

1
2
3
4
5
6
7
params <- getDefaultXcmsSetStartingParams()
params$ppm <- 10
params$snthresh <- c(5,15)
params

params <- getDefaultXcmsSetStartingParams("matchedFilter")
params

IPO documentation built on Nov. 8, 2020, 8:31 p.m.