matchms.filtering.harmonize_undefined_inchi module

matchms.filtering.harmonize_undefined_inchi.harmonize_undefined_inchi(spectrum_in: Spectrum, undefined: str = '', aliases: Optional[List[str]] = None) Spectrum[source]

Replace all aliases for empty/undefined inchi entries by value of undefined argument.

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

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