Skip to content

Commit

Permalink
Trim script
Browse files Browse the repository at this point in the history
  • Loading branch information
jchodera committed Dec 28, 2021
1 parent 8ceec65 commit 2df1058
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions synthetic-enumeration/sprint-11/02-collect-experimental-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,6 @@
# TODO: Auto-download and timestamp
submissions_csv_filename = 'submissions/submissions-2021-12-26.csv.gz'

def has_ic50(mol):
"""Return True if this molecule has fluorescence IC50 data"""
from openeye import oechem
if not oechem.OEHasSDData(mol, 'f_avg_pIC50'):
return False

try:
if oechem.OEHasSDData(mol, 'f_avg_pIC50'):
pIC50 = oechem.OEGetSDData(mol, 'f_avg_pIC50')
pIC50 = float(pIC50)
return True
else:
return False
except Exception as e:
return False

# Read all submitted designs: Compounds with the key substructure will be retained
print('Reading submitted designs...')
compounds = dict()
Expand Down

0 comments on commit 2df1058

Please sign in to comment.