Repository navigation
Default the GCMC region to a sphere around the perturbed atoms - #291
Merged
Merged
Conversation
lohedges
force-pushed
the
feature_gcmc_selection
branch
from
November 16, 2026 10:41
ec48091 to
11f7e0b
Compare
This branch was previously 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.
Previously, GCMC moves were attempted within the entire simulation box unless a
gcmc_selectionwas given. This PR makes the defaultsauto:gcmc_selection: the perturbed atoms, i.e. those whose element or LJ parameters change between end states (the whole ligand for ABFE). Perturbable waters and single-atom ions are excluded.gcmc_radius: the extent of the selection in either end state plusgcmc_radius_padding(5 Å by default). Positions are imaged across periodic boundaries.gcmc_num_waters: enough ghost waters to fill the free volume of the sphere, i.e. its volume less the waters and heavy atoms already inside (excluding atoms that vanish at either end state), plus a margin.The resolved values are logged and written to the config file, so the viewer shows the sphere. Whole-box GCMC is still available with
gcmc_selection=None. GCMC runs started with the old defaults needgcmc_selection=None,gcmc_radius="4 A"andgcmc_num_waters=20to restart; runs without GCMC are unaffected.