Export spectra to MSP format for comparison with the NIST library.
export2MSP(
Experiment,
export.id = NULL,
id.database = mslib,
store.path = getwd(),
alg.version = 1
)
A 'MetaboSet' S4 object containing the experiment.
If NULL, all the spectra in the experiment will be exported. Otherwise, only the AlignID in export.id will be exported
The mass-spectra library used in the experiment.
The path where the converted files are to be exported.
Different algorithm implementations. Users have to chose what version works with their NIST MSearch or other software version. By default, alg.version is set to 1. If it not works, try setting alg.version to 2 ;).