Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cookbook/generate_ligand_network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"source": [
"This how-to guide assumes you have already loaded a collection of `SmallMoleculeComponent` objects into an iterable called `ligands`.\n",
"\n",
"For more information, see the [Loading Small Molecules how-to guide](https://docs.openfree.energy/en/stable/how_to_guides/loading_molecules.html#loading-small-molecules)."
"For more information, see the [Loading Small Molecules how-to guide](https://docs.openfree.energy/en/latest/how_to_guides/loading_molecules.html#loading-small-molecules)."
]
},
{
Expand Down Expand Up @@ -87,7 +87,7 @@
"Each atom mapper suggests one or more mappings, which can be scored seperately.\n",
"As a result, multiple atom mappers can be used to generate additional mappings for network planning.\n",
"\n",
"[LigandAtomMapper]: https://docs.openfree.energy/en/stable/reference/api/generated/openfe.setup.atom_mapping.LigandAtomMapper.html"
"[LigandAtomMapper]: https://docs.openfree.energy/en/latest/reference/api/generated/openfe.setup.atom_mapping.LigandAtomMapper.html"
]
},
{
Expand Down Expand Up @@ -979,7 +979,7 @@
"source": [
"For more ways to visualize a `LigandNetwork`, see [Visualizing Ligand Networks].\n",
"\n",
"[Visualizing Ligand Networks]: https://docs.openfree.energy/en/stable/how_to_guides/ligandnetwork_vis.html"
"[Visualizing Ligand Networks]: https://docs.openfree.energy/en/latest/how_to_guides/ligandnetwork_vis.html"
]
},
{
Expand Down
10 changes: 5 additions & 5 deletions cookbook/hand_write_ligand_network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"\n",
"Although this is the most flexible way to define a ``LigandNetwork``, we encourage you to use **openfe** helper functionality when possible for performance, reproducibility, and ease of use:\n",
"\n",
" - [Loading Ligand Networks Exported by Orion or FEP+](https://docs.openfree.energy/en/stable/how_to_guides/network_from_orion_fepp.html)\n",
" - [Planning a Ligand Network](https://docs.openfree.energy/en/stable/how_to_guides/generate_ligand_network.html)\n"
" - [Loading Ligand Networks Exported by Orion or FEP+](https://docs.openfree.energy/en/latest/how_to_guides/network_from_orion_fepp.html)\n",
" - [Planning a Ligand Network](https://docs.openfree.energy/en/latest/how_to_guides/generate_ligand_network.html)\n"
]
},
{
Expand All @@ -40,7 +40,7 @@
"source": [
"This how-to guide assumes you've already loaded a collection of `SmallMoleculeComponent` objects into an iterable called `ligands`.\n",
"\n",
"For more information, see [Loading Small Molecules](https://docs.openfree.energy/en/stable/how_to_guides/loading_molecules.html#loading-small-molecules)."
"For more information, see [Loading Small Molecules](https://docs.openfree.energy/en/latest/how_to_guides/loading_molecules.html#loading-small-molecules)."
]
},
{
Expand Down Expand Up @@ -92,7 +92,7 @@
"source": [
"As we will only specify the topology of the network, OpenFE must generate atom mappings for us. For this, it needs an atom mapper; for more information, see [Choose an Atom Mapper]:\n",
"\n",
"[Choose an Atom Mapper]: https://docs.openfree.energy/en/stable/how_to_guides/generate_ligand_network.html#Choose-an-atom-mapper"
"[Choose an Atom Mapper]: https://docs.openfree.energy/en/latest/how_to_guides/generate_ligand_network.html#Choose-an-atom-mapper"
]
},
{
Expand Down Expand Up @@ -240,7 +240,7 @@
"source": [
"For more ways to visualize a `LigandNetwork`, see [Visualizing Ligand Networks].\n",
"\n",
"[Visualizing Ligand Networks]: https://docs.openfree.energy/en/stable/how_to_guides/ligandnetwork_vis.html"
"[Visualizing Ligand Networks]: https://docs.openfree.energy/en/latest/how_to_guides/ligandnetwork_vis.html"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions cookbook/network_from_orion_fepp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"source": [
"Both FEP+ `.edge` and Orion `.dat` files identify molecules by name, so to load the network OpenFE requires a list of named ligands.\n",
"\n",
"Load the ligands used by the network into instances of `SmallMoleculeComponent`. For more information, see [Loading Small Molecules](https://docs.openfree.energy/en/stable/how_to_guides/loading_molecules.html#loading-small-molecules)."
"Load the ligands used by the network into instances of `SmallMoleculeComponent`. For more information, see [Loading Small Molecules](https://docs.openfree.energy/en/latest/how_to_guides/loading_molecules.html#loading-small-molecules)."
]
},
{
Expand Down Expand Up @@ -87,7 +87,7 @@
"source": [
"Both formats encode only the network itself, leaving mappings between atoms in each edge undefined. OpenFE needs an atom mapper to produce atom mappings; for more information, see [Choose an Atom Mapper]:\n",
"\n",
"[Choose an Atom Mapper]: https://docs.openfree.energy/en/stable/how_to_guides/generate_ligand_network.html#Choose-an-atom-mapper"
"[Choose an Atom Mapper]: https://docs.openfree.energy/en/latest/how_to_guides/generate_ligand_network.html#Choose-an-atom-mapper"
]
},
{
Expand Down Expand Up @@ -170,7 +170,7 @@
"\n",
"For more ways to visualize a `LigandNetwork`, see [Visualizing Ligand Networks].\n",
"\n",
"[Visualizing Ligand Networks]: https://docs.openfree.energy/en/stable/how_to_guides/ligandnetwork_vis.html"
"[Visualizing Ligand Networks]: https://docs.openfree.energy/en/latest/how_to_guides/ligandnetwork_vis.html"
]
},
{
Expand Down Expand Up @@ -249,7 +249,7 @@
"source": [
"See [Creating an Alchemical Network] for how to use these defined `ligand_network` objects to create an AlchemicalNetwork, which can then be executed using the OpenFE CLI.\n",
"\n",
"[Creating an Alchemical Network]: https://docs.openfree.energy/en/stable/how_to_guides/create_alchemical_network.html"
"[Creating an Alchemical Network]: https://docs.openfree.energy/en/latest/how_to_guides/create_alchemical_network.html"
]
}
],
Expand Down
28 changes: 7 additions & 21 deletions membranes/packmol_memgen_setup.ipynb

@jthorton jthorton Nov 18, 2026 •

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.

This one has a lot of poorly rendered links in the docs see from here onwards.

It also has inconsistent alert boxes which is probably best fixed in another PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I fixed the broken links, but yes, the alert boxes can be done separately. Maybe as an audit of all the cookbooks?

Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,6 @@
")"
]
},
{
"cell_type": "markdown",
"id": "97214289-05af-4a04-8e7b-3487a757af36",
"metadata": {},
"source": [
"## Contents\n",
"\n",
"1. [System preparation with packmol-memgen](#1-system-preparation-with-packmol-memgen)\n",
"2. [Fix common PDB issues and prepare the topology](#2-fix-common-pdb-issues-and-prepare-the-topology)\n",
"3. [Running a short MD smoke test](#3-running-a-short-md-smoke-test)\n",
"4. [Set up and run the RBFE campaign](#4-set-up-and-run-the-rbfe-campaign)\n",
"5. [Going further: the Python API](#5-going-further-the-python-api)"
]
},
{
"cell_type": "markdown",
"id": "9f1fb27a-81d1-4c31-a5fc-933d9a9e20ee",
Expand Down Expand Up @@ -208,7 +194,7 @@
"### 2a. Parse box dimensions from the log file and patch the CRYST1 record\n",
"\n",
"`packmol-memgen` writes box dimensions to the log file but not to the \n",
"[`CRYST1`](https://www.wwpdb.org/documentation/file-format-content/format33/sect8.html#CRYST1) \n",
"[CRYST1](https://www.wwpdb.org/documentation/file-format-content/format33/sect8.html#CRYST1) \n",
"record. We extract the dimensions from the log and write them into the PDB file."
]
},
Expand Down Expand Up @@ -358,16 +344,16 @@
"id": "d6eb497b-ee31-46e0-bf89-1d541d38767b",
"metadata": {},
"source": [
"`packmol-memgen` does not write [`CONECT`](https://www.wwpdb.org/documentation/file-format-content/format33/sect10.html#CONECT) \n",
"`packmol-memgen` does not write [CONECT](https://www.wwpdb.org/documentation/file-format-content/format33/sect10.html#CONECT) \n",
"records for lipid residues, which is a [known issue](https://github.com/openmm/openmm/issues/4997). \n",
"Lipids are heterogens and are required by the PDB spec to use `CONECT` records, files that omit them are nonstandard.\n",
"\n",
"The fix is to load the bond definitions from the Amber Lipid17 force field XML before reading the PDB, so that \n",
"[`Topology.createStandardBonds()`](https://docs.openmm.org/latest/api-python/generated/openmm.app.topology.Topology.html#openmm.app.topology.Topology.createStandardBonds) \n",
"[Topology.createStandardBonds()](https://docs.openmm.org/latest/api-python/generated/openmm.app.topology.Topology.html#openmm.app.topology.Topology.createStandardBonds) \n",
"can apply them. This method inspects each residue in the `openmm.app.Topology` against its registered \n",
"bond templates and adds the appropriate bonds in-place. But it can only do so if the templates have \n",
"been registered first via \n",
"[`Topology.loadBondDefinitions()`](https://docs.openmm.org/latest/api-python/generated/openmm.app.topology.Topology.html#openmm.app.topology.Topology.loadBondDefinitions).\n",
"[Topology.loadBondDefinitions()](https://docs.openmm.org/latest/api-python/generated/openmm.app.topology.Topology.html#openmm.app.topology.Topology.loadBondDefinitions).\n",
"\n",
"There is one further complication: `lipid17_merged.xml` stores bonds with `atomName1`/`atomName2` \n",
"attributes (the Amber FF format), but `loadBondDefinitions()` expects `from`/`to` attributes \n",
Expand Down Expand Up @@ -466,9 +452,9 @@
"metadata": {},
"source": [
"Now run the full pipeline. The order matters,\n",
"[`Topology.loadBondDefinitions()`](https://docs.openmm.org/latest/api-python/generated/openmm.app.topology.Topology.html#openmm.app.topology.Topology.loadBondDefinitions) \n",
"[Topology.loadBondDefinitions()](https://docs.openmm.org/latest/api-python/generated/openmm.app.topology.Topology.html#openmm.app.topology.Topology.loadBondDefinitions) \n",
"must be called before \n",
"[`PDBFile`](https://docs.openmm.org/latest/api-python/generated/openmm.app.pdbfile.PDBFile.html):"
"[PDBFile](https://docs.openmm.org/latest/api-python/generated/openmm.app.pdbfile.PDBFile.html):"
]
},
{
Expand Down Expand Up @@ -677,7 +663,7 @@
"\n",
"At this point the membrane-specific work is done: `complex_equil.pdb` is a \n",
"fully built and solvated system with box vectors in its \n",
"[`CRYST1`](https://www.wwpdb.org/documentation/file-format-content/format33/sect8.html#CRYST1) \n",
"[CRYST1](https://www.wwpdb.org/documentation/file-format-content/format33/sect8.html#CRYST1) \n",
"record (patched in section 2a). From here, planning, running, and analysing a \n",
"membrane RBFE campaign follows the same steps as any other OpenFE RBFE campaign.\n",
"\n",
Expand Down
8 changes: 4 additions & 4 deletions showcase/openfe_showcase.ipynb

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.

Original file line number Diff line number Diff line change
Expand Up @@ -5652,10 +5652,10 @@
"\n",
"**Learn more:**\n",
"\n",
"- **User guide:** [Creating atom mappings](https://docs.openfree.energy/en/stable/guide/setup/creating_atom_mappings_and_scores.html) – how atom mappers and scorers work, and how to choose between them.\n",
"- **How to:** [Plan a ligand network](https://docs.openfree.energy/en/stable/how_to_guides/generate_ligand_network.html) – generating networks with the available planners.\n",
"- **How to:** [Define a ligand network explicitly](https://docs.openfree.energy/en/stable/how_to_guides/hand_write_ligand_network.html) – choosing the edges yourself.\n",
"- **How to:** [Visualise a ligand network](https://docs.openfree.energy/en/stable/how_to_guides/ligandnetwork_vis.html) – inspecting networks and their atom mappings in 2D and 3D.\n",
"- **User guide:** [Creating atom mappings](https://docs.openfree.energy/en/latest/guide/setup/creating_atom_mappings_and_scores.html) – how atom mappers and scorers work, and how to choose between them.\n",
"- **How to:** [Plan a ligand network](https://docs.openfree.energy/en/latest/how_to_guides/generate_ligand_network.html) – generating networks with the available planners.\n",
"- **How to:** [Define a ligand network explicitly](https://docs.openfree.energy/en/latest/how_to_guides/hand_write_ligand_network.html) – choosing the edges yourself.\n",
"- **How to:** [Visualise a ligand network](https://docs.openfree.energy/en/latest/how_to_guides/ligandnetwork_vis.html) – inspecting networks and their atom mappings in 2D and 3D.\n",
"\n",
"</div>"
]
Expand Down
Loading