86698c801848975de9a21fb17093e045b6271ea3,rdkit_fixer.py,,PreparePDBMol,#,94

Before Change



    // check if we have all templates
    for resname in unique_resname:
        if resname not in residue_mols and resname not in ["HOH"]:
            raise ValueError("There is no template for residue "%s"" % resname)

    // reset B.O. using templates
    for resname in residue_mols.keys():
        template = residue_mols[resname]
        new_mol = AssignPDBResidueBondOrdersFromTemplate(template, new_mol)

After Change


    for atom in new_mol.GetAtoms():
        if atom.GetAtomicNum() == 8 and atom.GetPDBResidueInfo().GetName().strip() == "OXT":
            bonds = atom.GetBonds()
            if len(bonds) > 0: // this should not happen at all
                bonds[0].SetBondType(BondType.SINGLE)

    return new_mol
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: oddt/oddt
Commit Name: 86698c801848975de9a21fb17093e045b6271ea3
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol


Project Name: arraiy/torchgeometry
Commit Name: 73cb3ff00533b03ab64127d2287f9bdfe30c035c
Time: 2021-01-16
Author: edgar.riba@gmail.com
File Name: kornia/losses/total_variation.py
Class Name:
Method Name: total_variation


Project Name: scikit-optimize/scikit-optimize
Commit Name: dbc0f24b39c2e2725682485a68586b3f0fa6bafc
Time: 2017-07-02
Author: iaroslav.email@gmail.com
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: fit