Skip to content

Commit

Permalink
remove extra space; fix #168
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperyyc committed Oct 21, 2023
1 parent 0c9f9a6 commit ce20f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DeepPurpose/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def process_BindingDB(path = None, df = None, y = 'Kd', binary = False, \

df_want = df_want[['BindingDB Reactant_set_id', 'Ligand InChI', 'Ligand SMILES',\
'PubChem CID', 'UniProt (SwissProt) Primary ID of Target Chain',\
'BindingDB Target Chain Sequence'] + idx_str]
'BindingDB Target Chain Sequence'] + idx_str]

for y in idx_str:
df_want[y] = df_want[y].str.replace('>', '')
Expand All @@ -274,7 +274,7 @@ def process_BindingDB(path = None, df = None, y = 'Kd', binary = False, \
'Ligand InChI':'InChI',
'PubChem CID':'PubChem_ID',
'UniProt (SwissProt) Primary ID of Target Chain':'UniProt_ID',
'BindingDB Target Chain Sequence': 'Target Sequence'},
'BindingDB Target Chain Sequence': 'Target Sequence'},
inplace=True)

# have at least uniprot or pubchem ID
Expand Down

0 comments on commit ce20f24

Please sign in to comment.