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

Before Change



    if residue_whitelist is None:
        // Get templates for all residues in molecules
        unique_resname = set([atom.GetPDBResidueInfo().GetResidueName() for atom in mol.GetAtoms()])
    else:
        unique_resname = set(residue_whitelist)
    if residue_blacklist is not None:
        unique_resname = unique_resname.difference(set(residue_blacklist))

After Change


                residue_mols[data[0]] = res

    // remove single atom templates
    residue_mols = dict((k, v) for k, v in residue_mols.items() if v.GetNumAtoms() > 1)

    // order residues by increasing size
    residue_mols = OrderedDict(sorted(residue_mols.items(), key=lambda x: x[1].GetNumAtoms()))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

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: arogozhnikov/einops
Commit Name: e89370c2cf1ef9c7f97246b7cfc1de2c73c8c565
Time: 2020-05-23
Author: iamfullofspam@gmail.com
File Name: einops/einops.py
Class Name: TransformRecipe
Method Name: reconstruct_from_shape


Project Name: arogozhnikov/einops
Commit Name: 3244bdf76f1a7aafff39df990913946d565e790f
Time: 2020-05-22
Author: iamfullofspam@gmail.com
File Name: einops/einops.py
Class Name: TransformRecipe
Method Name: reconstruct_from_shape