Skip to content

Commit

Permalink
Update difflinker_sample_and_analyze.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunp2 authored Sep 27, 2023
1 parent d20a06e commit b2fe9cf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions utils/difflinker_sample_and_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ def sample_fn(_data):
print('Please upload the file in one of the following formats: .pdb, .sdf, .mol, .mol2')
return

# try:
# molecules = read_molecules(input_path)
# # molecules = [Chem.RemoveAllHs(i) for i in molecules]
# name = '.'.join(input_path.split('/')[-1].split('.')[:-1])
# except Exception as e:
# return f'Could not read the molecule: {e}'
try:
molecules = read_molecules(input_path)
# molecules = [Chem.RemoveAllHs(i) for i in molecules]
name = '.'.join(input_path.split('/')[-1].split('.')[:-1])
except Exception as e:
return f'Could not read the molecule: {e}'

molecules = read_molecules(input_path)
# molecules = [Chem.RemoveAllHs(i) for i in molecules]
name = '.'.join(input_path.split('/')[-1].split('.')[:-1])
# molecules = read_molecules(input_path)
# # molecules = [Chem.RemoveAllHs(i) for i in molecules]
# name = '.'.join(input_path.split('/')[-1].split('.')[:-1])

for n_mol,molecule in enumerate(molecules):
positions, one_hot, charges = parse_molecule(molecule, is_geom=ddpm.is_geom)
Expand Down

0 comments on commit b2fe9cf

Please sign in to comment.