group_decomposition.utils¶
utils.py
Various utilities used in fragmenting molecules - retrieving information from molecules Identifying small parts of molecules, and tools for minor manipulations of SMILES or molecules
Functions
|
create a molecule from cml file, building it one atom at a time then adding in bond orders. |
|
Gets symbols, xyz coords, bonds and charge of a mol from cml file |
|
Gets symbols, xyz coords, bonds and charge of a mol from cml file |
|
Ensures that molecule numbering is consistent with creating molecule from canonical SMILES for consistency. |
|
Extract atom types from cml file |
|
Given molecule object, get list of atomic numbers. |
|
Given molecule object, get Boolean list of if atoms are in a ring. |
|
Given two mols, each with dummy atoms that have dummyAtomLabels, link the molecules between the dummy atoms specified by labels dl_1 and dl_2 |
|
Convert a list to string. |
|
Creates a molecule from a cml file and returns atoms, xyz and types |
|
takes mol_file and returns mol wth atom numbers the same |
|
Attempt to create a molecule from an xyz file by automatically determining bond orders |
|
Label a molecule with map numbers for order atoms are in molecule. |
|
Finds the Retreivium SMILES in a cml file with a given label |
|
Given Chem.RWmol, remove atoms with atomic number 0. |
|
Extract xyz coordinates from cml file |
|
Convert 2d array to string [[a,b,c],[d,e,f]] -> a, b, c d, e, f |