matchms.filtering.metadata_processing.harmonize_undefined_inchikey module

matchms.filtering.metadata_processing.harmonize_undefined_inchikey.harmonize_undefined_inchikey(spectrum_in: Spectrum, undefined: str = '', aliases: List[str] | None = None) Spectrum[source]

Replace all aliases for empty/undefined inchikey entries by undefined.

Parameters:
  • undefined – Give desired entry for undefined inchikey fields. Default is “”.

  • aliases – Enter list of strings that are expected to represent undefined entries. Default is [“”, “N/A”, “NA”, “n/a”, “no data”].