from_msconvert_parameter_to_code: from_msconvert_parameter_to_code

View source: R/utils.R

from_msconvert_parameter_to_codeR Documentation

from_msconvert_parameter_to_code

Description

From msconvert_parameter class to running code

Usage

from_msconvert_parameter_to_code(msconvert_parameter)

Arguments

msconvert_parameter

msconvert_parameter class object.

Value

Running code for docker.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

parameter1 =
create_msconvert_parameter(
  output_format = "mzXML",
  binary_encoding_precision = "64",
  zlib = TRUE,
  write_index = TRUE,
  peak_picking_algorithm = "vendor",
  vendor_mslevels = c(1, 2),
  cwt_mslevels = c(1, NA),
  cwt_min_snr = 0.1,
  cwt_min_peak_spacing = 0.1,
  subset_polarity = "any",
  subset_scan_number = c(NA, NA),
  subset_scan_time = c(NA, NA),
  subset_mslevels = c(1, NA),
  zero_samples_mode = "no",
  zero_samples_mslevels = c(1, NA),
  zero_samples_add_missing_flanking_zero_count = 5
)
from_msconvert_parameter_to_code(parameter1)

parameter2 =
  create_msconvert_parameter(
    output_format = "mzXML",
    binary_encoding_precision = "32",
    zlib = TRUE,
    write_index = TRUE,
    peak_picking_algorithm = "cwt",
    vendor_mslevels = c(1, NA),
    cwt_mslevels = c(1, NA),
    cwt_min_snr = 0.1,
    cwt_min_peak_spacing = 0.1,
    subset_polarity = "positive",
    subset_scan_number = c(NA, NA),
    subset_scan_time = c(60, 300),
    subset_mslevels = c(1, 2),
    zero_samples_mode = "removeExtra",
    zero_samples_mslevels = c(1, NA),
    zero_samples_add_missing_flanking_zero_count = 5
  )
parameter2
from_msconvert_parameter_to_code(parameter2)

tidymass/massconverter documentation built on Sept. 25, 2022, 1:53 p.m.