polymerist.rdutils.bonding.substitution
Tools for replacing Ports and functional groups
Functions
|
Completely combine a single pair of ports on two target atoms to create a bond of desired order |
|
Takes an RDKit Mol and another "cap" molecule (by default just hydrogen) and caps all valid ports (with the specified flavor) on the target Mol with the cap group |
|
Replace all port atoms with hydrogens |
Module Contents
- polymerist.rdutils.bonding.substitution.splice_atoms(rwmol: rdkit.Chem.RWMol, atom_id_1: int | None = None, atom_id_2: int | None = None, flavor_pair: tuple[int | None, int | None] = (None, None)) None[source]
Completely combine a single pair of ports on two target atoms to create a bond of desired order
- polymerist.rdutils.bonding.substitution.saturate_ports(rdmol: rdkit.Chem.Mol, cap: rdkit.Chem.Mol = Chem.MolFromSmiles('[*]-[H]'), flavor_to_saturate: int = 0) None[source]
Takes an RDKit Mol and another “cap” molecule (by default just hydrogen) and caps all valid ports (with the specified flavor) on the target Mol with the cap group