Mass Spectrometry, Tutorial, Python, Data Analysis, Research.
matchms.exporting import save_as_json file_export_json = os.path.join(path_data, "GNPS-NIH- NATURALPRODUCTSLIBRARY_processed.json") save_as_json(spectrums, file_export_json) A alternative that is much faster for reading/writing is to use pickle. Should data handling become an issue (e.g. many