This function writes positive and negative mode MS2 spectra from a given `databaseClass` object to MSP format files. The spectra are written separately for positive and negative ionization modes.
write_msp_mona(database, path = ".")
This function does not return any value. It writes MSP files for positive and negative mode spectra in the specified directory.
This function extracts the spectra from a `databaseClass` object and writes them into MSP files. The positive mode spectra are written to `spectra_pos.msp` and the negative mode spectra are written to `spectra_neg.msp`. Each entry in the MSP file includes information such as the compound name, precursor type, ion mode, collision energy, and the corresponding MS2 spectrum.
if (FALSE) { # \dontrun{
# Write MSP data from a databaseClass object
write_msp_mona(database = my_database, path = "output_directory")
} # }