knitr::opts_chunk$set( collapse = TRUE, comment = "#>", warning = FALSE, message = TRUE, out.width = "100%" )
pwiz
dockerPlease run docker first.
We need the docker image:
https://hub.docker.com/r/chambm/pwiz-skyline-i-agree-to-the-vendor-licenses. So first we need use the docker_pull_pwiz()
to pull this image.
library(massconverter)
docker_pull_pwiz()
If you want to pull the latest version, set force = TRUE
docker_pull_pwiz(force = TRUE)
The we need to set parameters for converter.
parameter = massconverter::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 )
parameter
Just put the raw data into one folder, and then begin to convert data.
Here we use the demo data, please download them here. And then put them in one folder named as demo_data/raw_data
.
convert_raw_data(input_path = "demo_data/raw_data", output_path = "demo_data/mzxml", msconvert_parameter = parameter, docker_parameters = c(), process_all = FALSE)
Then the converted data will be in the demo_data/mzxml
If you want to run it in bash, you can also use the get_run_code()
to get the code that can run in bash.
get_run_code( input_path = "demo_data/raw_data", output_path = "demo_data/mzxml", msconvert_parameter = parameter, docker_parameters = c(), process_all = FALSE )
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.