lcms_write_parameter_table: Write parameter table

Description Usage Arguments Value See Also Examples

View source: R/metabolite_identification.R

Description

Write a parameter Table for MAIT functionalities.

Usage

1
lcms_write_parameter_table(listParameters, folder)

Arguments

listParameters

Parameters.

folder

A directory to store a .csv file where the parameter table is stored.

Value

A template with MAIT parameters.

See Also

Other metabolite identification functions: lcms_identify_metabolites(), lcms_peak_annotation(), lcms_peak_table_boxplots(), lcms_peak_table_pca(), lcms_raw_data(), lcms_sig_peaks_table(), lcms_spectral_sig_features(), lcms_to_mait()

Other import/export functions: lcms_convert_ipo_to_xcms(), lcms_dataset_load(), lcms_dataset_save(), lcms_identify_metabolites(), lcms_meta_export(), lcms_meta_read(), lcms_peak_annotation(), lcms_raw_data(), lcms_read_ipo_to_xcms(), lcms_read_samples(), lcms_rearrange_datafiles_by_class(), lcms_sig_peaks_table(), lcms_spectral_sig_features(), lcms_to_mait(), lcms_write_opt_params(), phData()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
data_dir <-  system.file("extdata", "rearrange_mait", package = "AlpsLCMS")
mait_params_path <- system.file("extdata", "results_project", package = "AlpsLCMS")
opt_result_path <-  system.file("extdata", package = "AlpsLCMS")
preproc_params <- lcms_read_ipo_to_xcms(opt_result_path)
parameters <- c(dataDir = data_dir, preproc_params)

quiet <- function(x) {
             base::sink(base::tempfile())
             base::on.exit(base::sink())
             base::invisible(base::force(x))}

quiet(getClassDef("MAIT","MAIT"))
MAIT.object = signature(MAIT.Object = "MAIT")
MAIT.object <- methods::new("MAIT")

MAIT.object@RawData@parameters@sampleProcessing <- parameters
lcms_write_parameter_table(MAIT::parameters(MAIT.object), folder = mait_params_path)

## End(Not run)

sipss/AlpsLCMS documentation built on May 13, 2021, 6:18 p.m.