e626254b74ecb6dc71396c1b35237b53a5e35163,oddt/datasets.py,pdbbind,__init__,#pdbbind#Any#Any#Any#Any#Any#,22

Before Change


                    for row in csv.reader(_csv_file_filter(csv_file), delimiter=" "):
                        pdbid = row[0]
                        f = join(self.home, self.id, "%s_pocket.pdb" % self.id)
                        if not isfile(f):
                            continue
                        self._set_ids[pdbind_set].append(pdbid)
                        self._set_act[pdbind_set].append(float(row[3]))
                    self.sets[pdbind_set] = dict(zip(self._set_ids[pdbind_set],
                                                     self._set_act[pdbind_set]))

After Change


                                            "INDEX_%s_data.%i" % (pdbind_set, version))

                if os.path.isfile(csv_file):
                    data = pd.read_csv(csv_file,
                                       sep="\s+",
                                       usecols=[0, 1, 2, 3],
                                       names=["pdbid",
                                              "resolution",
                                              "release_year",
                                              "act"],
                                       comment="//")
                    self._set_ids[pdbind_set] = data["pdbid"].tolist()
                    self._set_act[pdbind_set] = data["act"].tolist()
                    self.sets[pdbind_set] = dict(zip(self._set_ids[pdbind_set],
                                                     self._set_act[pdbind_set]))
            if len(self.sets) == 0:
                raise Exception("There is no PDBbind set availabe")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: oddt/oddt
Commit Name: e626254b74ecb6dc71396c1b35237b53a5e35163
Time: 2017-08-23
Author: maciek@wojcikowski.pl
File Name: oddt/datasets.py
Class Name: pdbbind
Method Name: __init__


Project Name: kundajelab/dragonn
Commit Name: c1431d47ce335327c5213cef7bb7ae4f4d2d29b3
Time: 2019-02-06
Author: annashcherbina@gmail.com
File Name: dragonn/generators.py
Class Name: DataGenerator
Method Name: __init__


Project Name: dPys/PyNets
Commit Name: 3507c7d8d500e2c7e20572136b1549e16ccb5082
Time: 2018-06-25
Author: dpisner@utexas.edu
File Name: pynets/nodemaker.py
Class Name:
Method Name: RSN_fetch_nodes_and_labels