dgllife.utils.atom_chirality_type_one_hot

dgllife.utils.atom_chirality_type_one_hot(atom, allowable_set=None, encode_unknown=False)[source]

One hot encoding for the chirality type of an atom.

Parameters
  • atom (rdkit.Chem.rdchem.Atom) – RDKit atom instance.

  • allowable_set (list of str) – Chirality types to consider. Default: R, S.

  • encode_unknown (bool) – If True, map inputs not in the allowable set to the additional last element. (Default: False)

Returns

List containing one bool only.

Return type

list