Learn R Programming

IDSL.FSA (version 1.2)

mgf2msp: MGF to MSP

Description

This function converts .mgf (Mascot generic format) files into the .msp (mass spectra) format.

Usage

mgf2msp(path, MGFfile = "")

Value

The .msp files are saved in the same location.

Arguments

path

address of the .mgf file.

MGFfile

name of the file with the .mgf extension.

Examples

Run this code
# \donttest{
temp_wd <- tempdir() # just a temporary folder
path_extdata <- system.file("extdata", package = "IDSL.FSA")
MGFfile <- "Training_000.mgf"
file.copy(from = paste0(path_extdata, "/", MGFfile), to = temp_wd)
mgf2msp(path = temp_wd, MGFfile)
# }

Run the code above in your browser using DataLab