poli.core.util.chemistry.string_to_molecule.selfies_to_molecules

poli.core.util.chemistry.string_to_molecule.selfies_to_molecules#

poli.core.util.chemistry.string_to_molecule.selfies_to_molecules(selfies_strings: List[str]) rdkit.Chem.Mol#

Converts a list of selfies strings to RDKit molecules.

Parameters
  • selfies (str) – A selfies string.

  • strict (bool, optional) – If True, raise an error if selfies fails to decode the selfies string.

Returns

An RDKit molecule.

Return type

Chem.Mol