rxn.reaction_preprocessing.special_tokens.add_light_token

rxn.reaction_preprocessing.special_tokens.add_light_token(reaction_or_list, in_place=False)[source]

Add the light token to the precursors of a reaction or list of SMILES.

Parameters
  • reaction_or_list (TypeVar(ReactionOrList, ReactionEquation, List[str])) –

  • in_place (bool, default: False) –

Return type

TypeVar(ReactionOrList, ReactionEquation, List[str])