Learn R Programming

TargetSearch (version 1.28.1)

writeMSP: Save spectra in MSP format to be visualized in NIST

Description

This function creates MSP format file from peak intensities that can be viewed with NIST.

Usage

writeMSP(metlib, metprof, file, append = FALSE)

Arguments

metlib
A tsLib object. A metabolite library.
metprof
A tsProfile object. Usually the ouput of Profile or ProfileCleanUp functions.
file
A string naming the output file.
append
Logical. If TRUE the results will be appended to file. Otherwise, it will overwrite the contents of file.

See Also

peakFind, Profile, ProfileCleanUp, tsLib, tsMSdata, tsProfile