rxn.metrics.utils.combine_precursors_and_products_from_files

rxn.metrics.utils.combine_precursors_and_products_from_files(precursors_file, products_file)[source]

Combine the precursors file and the products file into an iterator of reaction SMILES.

Parameters
  • precursors_file (Union[str, PathLike]) – file containing the sets of precursors.

  • products_file (Union[str, PathLike]) – file containing the sets of products.

Return type

Iterator[str]

Returns

iterator over reaction SMILES.