Skip to content

Support partial ML regions and subtractive embedding - #310

Merged
lohedges merged 6 commits into
develfrom
feature_ml_fep_link_atoms
Dec 4, 2026
Merged

lohedges merged 6 commits into
develfrom
feature_ml_fep_link_atoms

Conversation

@lohedges

@lohedges lohedges commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #309, for the Sire changes in OpenBioSim/sire#560 (link atoms for end-state ML and subtractive electrostatic embedding), so it needs a Sire release that includes them.

Changes

  • ml_selection option. Treats only part of the perturbable molecule with the ML model, e.g. "resnum 3 and not atomname N,H,C,O" for the side chain and CA of a mutated residue. Sire adds link atoms at the boundary. Invalid selections are rejected. A warning is logged if any perturbed atoms fall outside the selection, since they are then MM at both end states.
  • Shared embedding stages. Sire now subtracts the MM electrostatics between the ML and MM atoms that the embedding replaces, so the ML molecule no longer needs its own schedule that scales its charges. Every perturbable molecule gets the same embedding stages. The docs and the ML ion and molecule tests are updated to match.
  • somd2-view / somd2-summary. When pairing vacuum legs with free legs, the ML embedding settings are now only ignored if the whole molecule is ML. With ml_selection, the rest of the molecule is MM, so the embedding also applies in vacuum.

@lohedges lohedges added the enhancement New feature or request label Dec 4, 2026
@lohedges
lohedges merged commit d5444f4 into devel Dec 4, 2026
4 checks passed
@lohedges
lohedges deleted the feature_ml_fep_link_atoms branch December 4, 2026 16:00

This branch was previously deployed

1 inactive deployment
somd2-build — cccd811d Deployed Dec 4, 2026 by lohedges via build (3.13, linux) #168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant