convert_to_mzML: Convert a h5 file to mzML

View source: R/read_data.R

convert_to_mzMLR Documentation

Convert a h5 file to mzML

Description

convert_to_mzML create a mzML file from a h5 file in the same directory with the writeMLData of the MSnbase package

Usage

convert_to_mzML(file)

Arguments

file

A .h5 file path

Value

create a mzML file in the same directory of the h5 input file

Examples

library(ptairData)
filePathRaw <- system.file('extdata/exhaledAir/ind1', 'ind1-1.h5', 
package = 'ptairData')
# write a mzml file in the same directory
convert_to_mzML(filePathRaw)
file_mzML <- gsub(".h5", ".mzML", filePathRaw)
file.remove(file_mzML)

camilleroquencourt/ptairMS documentation built on April 19, 2024, 1:27 p.m.