Skip to content

Commit

Permalink
Merge pull request #39 from Waztom/xcos-update
Browse files Browse the repository at this point in the history
Set van der Waals radius scale
  • Loading branch information
tdudgeon authored Jul 22, 2020
2 parents a28b6f3 + 6ba6cd9 commit bff7dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/pipelines/xchem/xcos.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ def getReverseScores(clustered_df, mols, frags, no_clustered_feats, rad_threshol
# NB reverse SuCOS scoring
fm_score = getFeatureMapScore(bit, frag_mol)
fm_score = np.clip(fm_score, 0, 1)
protrude_dist = rdShapeHelpers.ShapeProtrudeDist(bit, frag_mol, allowReordering=False)
# Change van der Waals radius scale for stricter overlay
protrude_dist = rdShapeHelpers.ShapeProtrudeDist(bit, frag_mol, allowReordering=False, vdwScale=0.2)
protrude_dist = np.clip(protrude_dist, 0, 1)

reverse_SuCOS_score = 0.5 * fm_score + 0.5 * (1 - protrude_dist)
Expand Down

0 comments on commit bff7dd8

Please sign in to comment.