matchms.exporting.save_as_mzspeclib module

matchms.exporting.save_as_mzspeclib.save_as_mzspeclib(spectra: list[Spectrum], filename: str) None[source]

Save a list of spectra to a file in mzSpecLib format.

Parameters: spectra (List[Spectrum]): List of Spectrum objects to save. filename (str): The name of the file to save the spectra to.