1a2b6a95bd94015ba28aa291c97350fc5762d061,oddt/toolkits/extras/rdkit.py,,PDBQTAtomLines,#Any#Any#Any#,249

Before Change


            root_atom = atom.GetNeighbors()[0]
            if root_atom.HasProp("_GasteigerHCharge"):
                charge = float(root_atom.GetProp("_GasteigerHCharge"))
        if charge is None:
            raise ValueError("No charge information")
        if isnan(charge) or isinf(charge):  // FIXME: this should not happen, blame RDKit
            charge = 0.
        pdbqt_line += ("%.3f" % charge).rjust(6)

        // Get atom type
        // TODO: do proper atom typing here
        pdbqt_line += " "
        atomicnum = atom.GetAtomicNum()
        if atomicnum == 6:
            if atom.GetIsAromatic():
                pdbqt_line += "A"
            else:
                pdbqt_line += "C"
        elif atomicnum == 7 and idx in acceptors:
            pdbqt_line += "NA"
        elif atomicnum == 8 and idx in acceptors:
            pdbqt_line += "OA"

After Change


        if atom.HasProp("_GasteigerCharge"):
            charge = float(atom.GetProp("_GasteigerCharge"))
        if atom.HasProp("_TriposPartialCharge"):
            charge = float(atom.GetProp("_TriposPartialCharge"))
        elif atom.GetAtomicNum() == 1:
            root_atom = atom.GetNeighbors()[0]
            if root_atom.HasProp("_GasteigerHCharge"):
                charge = float(root_atom.GetProp("_GasteigerHCharge"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: oddt/oddt
Commit Name: 1a2b6a95bd94015ba28aa291c97350fc5762d061
Time: 2017-11-23
Author: maciek@wojcikowski.pl
File Name: oddt/toolkits/extras/rdkit.py
Class Name:
Method Name: PDBQTAtomLines


Project Name: cmu-db/ottertune
Commit Name: 01b4ec3f531e07b8c4a32a13288c963ad8b4b843
Time: 2019-10-14
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/myrocks/parser.py
Class Name: MyRocksParser
Method Name: convert_dbms_metrics


Project Name: cmu-db/ottertune
Commit Name: 01b4ec3f531e07b8c4a32a13288c963ad8b4b843
Time: 2019-10-14
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/base/parser.py
Class Name: BaseParser
Method Name: convert_dbms_metrics