matchms.filtering.harmonize_undefined_inchikey module

matchms.filtering.harmonize_undefined_inchikey.harmonize_undefined_inchikey(spectrum_in: Spectrum, undefined: str = '', aliases: Optional[List[str]] = 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”].