modifinder.Compound.update

Compound.update(_structure=None, structure=None, id: str | None = None, _spectrum: Spectrum | None = None, spectrum: Spectrum | None = None, usi: str | None = None, is_known: bool | None = None, name: str | None = None, additional_attributes: dict = {}, **kwargs)[source]

Update the attributes of the class

Parameters:
  • (Chem.Mol) (_structure) –

  • (Chem.Mol (structure) –

  • Smiles (The structure of the compound) –

  • InChi) (The structure of the compound) –

  • (str) (name) –

  • (Spectrum) (spectrum) –

  • (Spectrum)

  • (str)

  • (bool) (is_known) –

  • (str)

  • (dict) (distances) –

  • **kwargs (Additional data) –

    • A use case is for the scenarios where the data parameter is provided, these arguments will be used to parse and clean the data