Repository navigation
Single-well anchor dihedrals - #19
Merged
Merged
Conversation
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an option to replace anchor dihedrals with a single-well potential. On edges like FacX 4c/4d → edoxaban, the multi-well anchors let ghost atoms get trapped in the wrong well. It also fixes a bug in
--stiffen-rotamersthat put every stiffened dihedral's minimum at cis.Changes
single_well_anchorsoption (--single-well-anchorsand--k-single-wellon the CLI). It replaces each anchor dihedral that has a ghost terminal atom, three physical atoms and a non-zero force constant withk[1 + cos(φ − φ_ref + π)].φ_refis measured in the end state where the ghost is physical. The default is off, andkdefaults to 5 kcal/mol, so the barrier is 10 kcal/mol.--stiffen-rotamersfix: every stiffened dihedral had its minimum at 0°. That eclipsed the ghosts with the anchor and stacked several ghosts on the same bridge on top of each other. The minimum now comes from the geometry of the end state where the ghosts are physical._soften_mixed_dihedralsand_check_rotamer_anchorsare merged into one post-processing pass,_modify_mixed_dihedrals, with the precedence remove > rotamer stiffening > single well > soften scaling. Shared helpers:_find_rotatable_bondsand_physical_state.Testing
soften_anchors;fac4c_edo.s3.ring_break_morphschedule. The dummy H on the ring-break bridge stays cis in every frame of every window, in both legs. Before this change it was trapped trans in some runs, and the free leg varied between replicates. Now the replicates agree to within about 0.1 kcal/mol per λ step. The remaining ΔΔG error on this edge comes from the bound starting pose, not from the ghost treatment.