powered by
Converts SMILES strings from a PubChem table into `rcdk` molecule objects.
pc_to_rcdk(x, smiles_col = "CanonicalSMILES", id_col = "CID")
A list of `rcdk` molecule objects.
Input table or `PubChemResult`.
Column with SMILES strings.
Optional identifier column used to name returned molecules.
Requires the optional `rcdk` package. Empty or missing SMILES values are dropped before conversion.
names(formals(pc_to_rcdk)) if (FALSE) { ex_tbl <- tibble::tibble(CID = "1", CanonicalSMILES = "CCO") mols <- pc_to_rcdk(ex_tbl) length(mols) }
Run the code above in your browser using DataLab