def test_export_mass_spectrum(): mass_spectrum = import_corems_mass_list() exportMS = HighResMassSpecExport('NEG_ESI_SRFA_CoreMS', mass_spectrum) # exportMS.to_pandas() # exportMS.to_excel() # exportMS.to_csv() # exportMS.to_hdf() exportMS._output_type = 'excel' exportMS.save() exportMS._output_type = 'csv' exportMS.save() exportMS._output_type = 'pandas' exportMS.save() exportMS._output_type = 'hdf5' exportMS.save() exportMS.get_pandas_df() exportMS.to_json() mass_spectrum.to_excel('NEG_ESI_SRFA_CoreMS') mass_spectrum.to_dataframe() mass_spectrum.molecular_search_settings.output_score_method = "prob_score" mass_spectrum.to_csv('NEG_ESI_SRFA_CoreMS_prob_score') mass_spectrum.to_json() mass_spectrum.to_pandas('NEG_ESI_SRFA_CoreMS')
def test_export_mass_spectrum(): mass_spectrum = import_corems_mass_list() exportMS = HighResMassSpecExport('NEG_ESI_SRFA_CoreMS', mass_spectrum) #exportMS.to_pandas() #exportMS.to_excel() #exportMS.to_csv() #exportMS.to_hdf() exportMS._output_type = 'excel' exportMS.save() exportMS._output_type = 'csv' exportMS.save() exportMS._output_type = 'pandas' exportMS.save() exportMS._output_type = 'hdf5' exportMS.save() exportMS.get_pandas_df() exportMS.to_json() mass_spectrum.to_excel('NEG_ESI_SRFA_CoreMS') mass_spectrum.to_dataframe() mass_spectrum.to_csv('NEG_ESI_SRFA_CoreMS') mass_spectrum.to_json() mass_spectrum.to_pandas('NEG_ESI_SRFA_CoreMS') print()