tmos#
tmos.tmos
Description
Sanitize and generate oxidation state and other properties for transition metal complexes.
This module uses function architectures originally produced in [xyz2mol_tm](jensengroup/xyz2mol_tm). However rather than using the Huckel method an arrow pushing script is produced here with custom checks for ferrocene structures.
Functions
Determine whether two atoms are in the same chemical ring |
|
Corrects formal charges and bonds for molecular exceptions. |
|
Given an atomic index of an RDKit molecule, cleave the attaching bonds and return the resulting molecules |
|
Compare molecular identity |
|
Compute the centroid of a molecule while excluding specified atom indices. |
|
Correct a ferrocene containing molecule to ensure that all hydrogens are included |
|
Use the coordinates to check if any other bonds could be defined. |
|
Determine bond orders with OpenBabel, with MDA fallback. |
|
Find the molecule index for the metal |
|
Determine if an RDKit molecule has a relevant geometry |
|
Add coordinates to RDKit molecule with missing coordinates |
|
Analyze default valence and bonds to determine ligand attributes. |
|
Compute possible oxidation states, formal charges, and electron counts for a transition metal center. |
|
Convert a SMILES string into a RDKit Molecule |
|
Generate SMILES without isomeric information from a RDKit molecule |
|
Prepare complex removing anomalous substructs, adding additional metal connections, checking for missing coordinates, and possible addition of hydrogens. |
|
Reconnects ligands to a transition metal center to reform a metal complex. |
|
Sanitize ligands, determining X-type and L-type, returning a sanitized complex with oxidation state, number of electrons, and metal formal charge. |
|
Delete atoms from a molecule and then redetermine bond orders. |
|
Sanitize TMC molecule by updating formal charges to apparent value based on connectivity and use RDKit sanitization without SANITIZE_SETAROMATICITY or SANITIZE_KEKULIZE. |
|
Wipe all bond order and aromatic information from a molecule so that only single bonds remain. |