Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4e27de

Browse files
committed
fixed travis.yml
1 parent 247f6f6 commit a4e27de

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install:
2020
- conda install -c omnia keras
2121
- conda install seaborn
2222
- conda install six
23-
- conda install -c https://conda.anaconda.org/groakat pathos
23+
- pip install --user git+https://github.com/uqfoundation/pathos
2424
- python setup.py install
2525
script:
2626
- nosetests -v deepchem

datasets/construct_pdbbind_df.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from rdkit import Chem
99
from glob import glob
1010
import re
11+
from sklearn.externals import joblib
1112

1213

1314
def extract_labels(pdbbind_label_file):
@@ -26,7 +27,7 @@ def extract_labels(pdbbind_label_file):
2627
labels[line[0]] = line[3]
2728
return labels
2829

29-
def construct_df(pdb_stem_directory, pdbbind_label_file, pdbbind_df_pkl):
30+
def construct_df(pdb_stem_directory, pdbbind_label_file, pdbbind_df_joblib):
3031
"""
3132
Takes as input a stem directory containing subdirectories with ligand
3233
and protein pdb/mol2 files, a pdbbind_label_file containing binding
@@ -89,5 +90,4 @@ def construct_df(pdb_stem_directory, pdbbind_label_file, pdbbind_df_pkl):
8990
'protein_pdb', 'ligand_pdb',
9091
'ligand_mol2', 'label'))
9192

92-
with open(pdbbind_df_pkl, "wb") as f:
93-
pickle.dump(pdbbind_df, f)
93+
joblib.dump(pdbbind_df, pdbbind_df_joblib)

0 commit comments

Comments
 (0)