Skip to content

Commit

Permalink
Fail gracefully the RMSD calculation errors in Vina
Browse files Browse the repository at this point in the history
  • Loading branch information
mwojcikowski committed Jul 13, 2018
1 parent 5f610a9 commit d7fa2f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions oddt/docking/AutodockVina.py
Expand Up @@ -295,9 +295,12 @@ def dock(self, ligands, protein=None):
clone.data.update(score)

# Calculate RMSD to the input pose
clone.data['vina_rmsd_input'] = rmsd(ligand, clone)
clone.data['vina_rmsd_input_min'] = rmsd(ligand, clone,
method='min_symmetry')
try:
clone.data['vina_rmsd_input'] = rmsd(ligand, clone)
clone.data['vina_rmsd_input_min'] = rmsd(ligand, clone,
method='min_symmetry')
except Exception:
pass
output_array.append(clone)
rmtree(ligand_dir)
return output_array
Expand Down

0 comments on commit d7fa2f6

Please sign in to comment.