mgf2msp {IDSL.FSA}R Documentation

MGF to MSP

Description

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

Usage

mgf2msp(path, MGFfile = "")

Arguments

path

address of the .mgf file.

MGFfile

name of the file with the .mgf extension.

Value

The .msp files are saved in the same location.

Examples


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)


[Package IDSL.FSA version 1.2 Index]