Repository navigation
Conversation
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
hannahbaumann
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Should we mention here that currently the preferred way would be to pre-assign them?
There was a problem hiding this comment.
Reworked to make it clear that pre-charging is preferred.
| * **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. |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Tried to make it clear and added links to guides for more information.
| Parameterization also depends on the chemistry of the prepared input; see the | ||
| :ref:`domain of applicability <userguide_protocols>` for current limitations. | ||
|
|
||
| Protein force fields |
There was a problem hiding this comment.
Maybe adapt the header such that it's clear that this also entails e.g. water,ion,lipid ff?
There was a problem hiding this comment.
Made it more explicit.
| --------------------------- | ||
|
|
||
| The ``forcefield_settings.small_molecule_forcefield`` setting selects the | ||
| force field for ligands and other :class:`.SmallMoleculeComponent`\s. The |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Maybe move the prep_cofactors comment one sentence above?
There was a problem hiding this comment.
Good catch, moved.
IAlibay
left a comment
There was a problem hiding this comment.
Couple of things, otherwise looks good to me!
| components in each :class:`.ChemicalSystem` during the protocol setup unit. | ||
|
|
||
| Here we detail model building for the **OpenMM** based protocols. For how to prepare the | ||
| structures, see :ref:`userguide_preparing_inputs`; for the general workflow |
There was a problem hiding this comment.
Rather than these being in a separate sentence like this, would it be better to have the links be in-line as you mention these topics?
There was a problem hiding this comment.
Moved inline in the opening.
| 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. | ||
| * **Water:** the solvation model and the water and ion parameters must be |
There was a problem hiding this comment.
[nit] this maybe isn't as clear as it could be that the water parameters also rely on the OpenMM XML definition. It might be good to order them closer to each other and add some kind of small text addition to clarify the source of the parameters.
There was a problem hiding this comment.
Moved up and added that they come from the OpenMM XML files as well.
| the following replaces ff14SB with ff19SB:: | ||
|
|
||
| forcefields = settings.forcefield_settings.forcefields | ||
| forcefields[forcefields.index("amber/ff14SB.xml")] = "amber19/protein.ff19SB.xml" |
There was a problem hiding this comment.
This is missing exposition on what the defaults are. I would put the output of the print call above and explain what each of the entries are.
There was a problem hiding this comment.
This is a nice improvement, added the output and a mapping between the files and the components.
| * - Method | ||
| - Description | ||
| * - ``am1bcc`` | ||
| - AM1-BCC (default), using AmberTools or OpenEye. Charges are generated at the input conformer. |
There was a problem hiding this comment.
Maybe better to make the backend a separate table column?
There was a problem hiding this comment.
Added the backend, and some text to make the relation clear.
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
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:
Drafted by me and cleaned up with GPT-6
Checklist
pre-commit.ci autofix.newsentry, 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