preTreatModes | R Documentation |
Pre-treat both positive and negative ionisation modes for Binalysis
and MetaboProfile
classes.
preTreatModes(processed_data, parameters, verbose = TRUE)
## S4 method for signature 'Binalysis'
preTreatModes(processed_data, parameters, verbose = TRUE)
## S4 method for signature 'MetaboProfile'
preTreatModes(processed_data, parameters, verbose = TRUE)
processed_data |
an object of S4 class |
parameters |
an object of S4 class |
verbose |
print console output |
An object of S4 class Analysis
.
## 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,]
## Detect spectral binning parameters
bp <- binneR::detectParameters(files)
## Perform spectral binning
analysis <- binneR::binneRlyse(files,
info,
parameters = bp)
## Dectect the pre-treatment parameters
pre_treatment_parameters <- detectPretreatmentParameters(analysis)
metabolyseR::changeParameter(pre_treatment_parameters,'parallel') <- 'no'
## Perform pre-treatment
pre_treated_data <- preTreatModes(analysis,
pre_treatment_parameters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.