a10212a69685b846f0fa45a4458697b3cb55a9b2,rdkit_fixer.py,,PreparePDBMol,#,136
Before Change
if visited_bonds: // probably we dont want to delete all
new_mol = Chem.RWMol(new_mol)
visited_bonds = set(visited_bonds)
for a1_ix, a2_ix in product(range(new_mol.GetNumAtoms()), repeat=2) :
bond = new_mol.GetBondBetweenAtoms(a1_ix, a2_ix)
if bond is None or (a1_ix, a2_ix) in visited_bonds or (a1_ix, a2_ix) in visited_bonds:
continue
After Change
new_mol = Chem.RWMol(new_mol)
visited_bonds = set(visited_bonds)
bonds_queue = []
for bond in new_mol.GetBonds():
a1 = bond.GetBeginAtomIdx()
a2 = bond.GetEndAtomIdx()
if (a1, a2) not in visited_bonds and (a1, a2) not in visited_bonds:
bonds_queue.append((a1, a2))
for a1_ix, a2_ix in bonds_queue:
bond = new_mol.GetBondBetweenAtoms(a1_ix, a2_ix)
if bond is None or (a1_ix, a2_ix) in visited_bonds or (a1_ix, a2_ix) in visited_bonds:
continue
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: oddt/oddt
Commit Name: a10212a69685b846f0fa45a4458697b3cb55a9b2
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol
Project Name: PyMVPA/PyMVPA
Commit Name: 6a8d2f59086e71dc529fb5261eb291cd7f2615a9
Time: 2016-10-05
Author: swaroopgj@gmail.com
File Name: mvpa2/measures/rsa.py
Class Name: CDist
Method Name: _call
Project Name: pgmpy/pgmpy
Commit Name: ca25da7c55ba436ab557410d5f2e2e9b557d2840
Time: 2015-03-02
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/MarkovModel.py
Class Name: MarkovModel
Method Name: to_junction_tree