0cd1348f3c432cc2afcc491c06b2b9301d526882,rdkit_fixer.py,,ExtractPocketAndLigand,#,198

Before Change


    blacklist_ids = list(chain(*hetatm_residues.values()))
    protein_amap = np.array([i for i in range(mol.GetNumAtoms())
                             if i not in blacklist_ids])
    protein_coords = np.array(mol.GetConformer().GetPositions())[protein_amap]

    // Pocket selection based on cutoff
    mask = (cdist(protein_coords, ligand_coords) <= cutoff).any(axis=1)

After Change


    blacklist_ids = list(chain(*hetatm_residues.values()))
    protein_amap = np.array([i for i in range(mol.GetNumAtoms())
                             if i not in blacklist_ids])
    conf = mol.GetConformer()
    protein_coords = np.array([conf.GetAtomPosition(i)
                              for i in range(mol.GetNumAtoms())])[protein_amap]

    // Pocket selection based on cutoff
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: oddt/oddt
Commit Name: 0cd1348f3c432cc2afcc491c06b2b9301d526882
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: ExtractPocketAndLigand


Project Name: oddt/oddt
Commit Name: aa5d761c03ea31df01ff51ec3634dd89cd73bec1
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: oddt/toolkits/extras/rdkit_fixer.py
Class Name:
Method Name: UFFConstrainedOptimize


Project Name: oddt/oddt
Commit Name: 7b721b7c9f51995c90949bc68fa91e657c29b378
Time: 2018-05-17
Author: martasd@ibb.waw.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: AddMissingAtoms