Skip to content

Model building user guide - #2352

Open
jthorton wants to merge 8 commits into
mainfrom
docs/partial-charge-info
Open

jthorton wants to merge 8 commits into
mainfrom
docs/partial-charge-info

Conversation

@jthorton

@jthorton jthorton commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds a new user guide page on force field settings and partial charge options - related to the new how-to-guide in OpenFreeEnergy/ExampleNotebooks#358 which will give short examples related to the concepts here.

LLM / AI generated code disclosure

LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution:

  • No
  • Yes: [If yes, please provide details here]
    Drafted by me and cleaned up with GPT-6

Checklist

  • Read the AI Policy and filled in the AI-generated code disclosure.
  • Adhered to the contribution guidelines
  • All new code is appropriately documented (user-facing code must have complete docstrings).
  • Ran pre-commit: you can run pre-commit locally or comment on this PR with pre-commit.ci autofix.
  • Added a news entry, or the changes are not user-facing.

Manual Tests: these are slow so don't need to be run every commit, only before merging and when relevant changes are made (generally at reviewer-discretion).

Developers certificate of origin

@jthorton jthorton self-assigned this Nov 17, 2026
Comment thread docs/guide/setup/defining_protocols.rst Resolved
jthorton and others added 3 commits November 20, 2026 09:44
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>

@hannahbaumann hannahbaumann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jthorton , this looks great! I just reviewed the first half, will do the rest on Monday!

Partial charges are assigned during protocol setup but can also
be assigned in advance for reproducibility and to avoid repeated calculations.
See Assigning partial charges :doc:`with the Python API </how_to_guides/user_charges>` or
Missing partial charges are assigned during protocol setup. They can also

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention here that currently the preferred way would be to pre-assign them?

* **Ligands and small-molecule cofactors:** a separate small-molecule force
field supplies parameters for :class:`.SmallMoleculeComponent`\s.
* **Partial charges:** protein and other non-small-molecule components typically use predefined *library* charges defined in the OpenMM XML files.
Small-molecule components can either use existing charges or have new charges assigned during setup.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it would be clear to the user what "existing charges" means, maybe briefly add where they would come from (or if this is described elsewhere, maybe add a link here).

Parameterization also depends on the chemistry of the prepared input; see the
:ref:`domain of applicability <userguide_protocols>` for current limitations.

Protein force fields

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe adapt the header such that it's clear that this also entails e.g. water,ion,lipid ff?

---------------------------

The ``forcefield_settings.small_molecule_forcefield`` setting selects the
force field for ligands and other :class:`.SmallMoleculeComponent`\s. The

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add "(e.g. cofactors)"?


Structural ions and crystallographic waters retained in a protein input are
instead parameterized through the appropriate OpenMM XML files. See
:ref:`prep_cofactors` for preparation requirements and limitations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move the prep_cofactors comment one sentence above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants