convert_to_mzML {ptairMS} | R 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)

[Package ptairMS version 1.2.0 Index]