Skip to content

fit

Use FEgrow for MCS docking, with TIES for the MCS.

Functions:

load_conformers

load_conformers(sdf) -> Mol

Load the SDF as one mol with many conformers

Source code in ties/utils/fit.py
20
21
22
23
24
25
26
27
28
29
30
31
def load_conformers(sdf) -> Chem.Mol:
    """
    Load the SDF as one mol with many conformers
    """
    mol = None
    for conf in Chem.SDMolSupplier(sdf, removeHs=False):
        if mol is None:
            mol = conf

        mol.AddConformer(conf.GetConformer(), assignId=True)

    return mol