Skip to content

Commit 3af7121

Browse files
Merge branch 'main' into skip-failing-notebooks
2 parents d26515c + bece688 commit 3af7121

25 files changed

+70125
-6652
lines changed

source/_ext/cookbook/globals_.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292
"""
9393

9494
OPTIONAL_NOTEBOOKS: list[str] = [
95-
".*/experimental/.*",
95+
# ".*/experimental/.*",
96+
"openforcefield/openff-interchange/experimental/openmmforcefields/gaff.ipynb",
9697
]
9798
"""
9899
Notebooks whose execution failure will not cause notebook processing to fail.

source/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If you have an existing Mamba installation, skip steps 1 and 2 below. If you hav
4444
$ conda activate openff
4545
$ openff-toolkit-examples --target offtk-examples
4646
$ cd offtk-examples/toolkit_showcase
47-
$ jupyter notebook toolkit_showcase.ipynb
47+
$ jupyter-lab toolkit_showcase.ipynb
4848
```
4949
5050
If that worked, you're all set! The rest of this page covers corner cases and how to manage Conda environments. For package-specific installation instructions, please see the individual [project docs].
@@ -150,7 +150,7 @@ Any time you want to use software installed in an environment you have created,
150150

151151
```shell-session
152152
$ conda activate <name>
153-
$ jupyter notebook .
153+
$ jupyter-lab .
154154
```
155155

156156
[virtual environments]: inv:conda#user-guide/concepts/environments

source/workshops/2024/protein_prep.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ This workshop covers the preparation of a protein system from a structure downlo
77
First session
88
: [Feb 27 23:00 UTC](https://time.is/1000_28_Feb_2024_in_Canberra/Tokyo/Auckland,_New_Zealand/Los_Angeles/Chicago/Phoenix/New_York/UTC?Protein_Prep_OpenFF_Workshop)
99

10-
: [💨 Join on Zoom](https://us06web.zoom.us/j/84928391532?pwd=ZJoPVISZzA1LHo3mvfxbg1zug26Gas.1)
11-
1210
Second Session
1311
: [Apr 17 12:00 UTC](https://time.is/2200_17_Apr_2024_in_Canberra/Beijing/Berlin/Los_Angeles/Chicago/Phoenix/New_York/London/UTC?Protein_Prep_OpenFF_Workshop)
1412

13+
: [💨 Join on Zoom](https://us06web.zoom.us/j/85120722786?pwd=Hb4mp4gOkNnjyarG4RLsoR9ClEPDDC.1)
14+
1515
Zoom links will be published here 24 hours before the sessions begin.
1616

1717
Materials and Google Colab links can be found below.
Binary file not shown.

source/workshops/2024/protein_prep/colab-env.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ dependencies:
1111
- packaging
1212
# Examples
1313
- openff-toolkit-examples>=0.15.2
14-
- openff-interchange>=0.3.7
15-
- openff-nagl
14+
- openff-interchange>=0.3.25
15+
- openff-nagl >=0.3.7
1616
# - openff-bespokefit
1717
# - openff-fragmenter
1818
# - openff-qcsubmit
1919
# - openff-recharge
20-
- gromacs >=2021=nompi*
21-
- lammps
2220
- rich
2321
- jax
2422
- dgl

source/workshops/2024/protein_prep/colab-protein_prep.ipynb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
"source": [
5757
"The point of this workshop is to demonstrate what is possible entirely with Open Source tools, and to provide a framework for semi-interactive preparation of chemical systems in Jupyter.\n",
5858
"\n",
59+
"This workflow does not reflect a routine or highly tested or maintained procedure for protein preparation, and is intended as a jumping off point to emphasise the capabilities of FOSS tools and to demonstrate how OpenFF tools might be used in a broader workflow.\n",
60+
"\n",
5961
"What can we do?\n",
6062
"\n",
6163
"- Repair proteins with missing loops, residues, atoms\n",
@@ -75,7 +77,7 @@
7577
" \n",
7678
"What can't we do?\n",
7779
"\n",
78-
"- Non-standard amino acids and PTMs (see \"Things to make and do\"!)\n",
80+
"- Non-standard amino acids and PTMs (see \"[Things to make and do]\"!)\n",
7981
"- Metalloproteins\n",
8082
"- Biopolymers other than proteins\n",
8183
"- Lipids\n",
@@ -86,7 +88,8 @@
8688
" - Disulfide bonds in the PDB CONECT records are used\n",
8789
" - Disulfide bonds not in the PDB CONECT records may be detected from proximity\n",
8890
"\n",
89-
"[substitution table]: https://github.com/openmm/pdbfixer/blob/6bf10e138f6475f6f1850dae78d7bf1b420a1612/pdbfixer/pdbfixer.py#L67\n"
91+
"[substitution table]: https://github.com/openmm/pdbfixer/blob/6bf10e138f6475f6f1850dae78d7bf1b420a1612/pdbfixer/pdbfixer.py#L67\n",
92+
"[Things to make and do]: https://docs.openforcefield.org/workshops/2024/vignettes.html"
9093
]
9194
},
9295
{
@@ -919,15 +922,15 @@
919922
"\n",
920923
"Sage currently supports and is recommended for:\n",
921924
"\n",
922-
"- Small molecules and ions composed of the elements C, H, O, N, P, and S\n",
925+
"- Small molecules and ions composed of the elements C, H, O, N, P, S, F, Cl, Br, and I\n",
923926
"- Water (TIP3P)\n",
924927
"- Common monatomic, monovalent ions: Li+, Na+, K+, Rb+, Cs+, F-, Cl-, Br-, and I-\n",
925928
"- Monatomic xenon\n",
926929
"\n",
927930
"Sage does not yet support (though it may or may not be able to parametrize):\n",
928931
"\n",
929-
"- Bonds involving elements other than CHONPS\n",
930-
"- Most monatomic ions (these will fail to parametrize)\n",
932+
"- Bonds involving elements other than C, H, O, N, P, S, F, Cl, Br, and I\n",
933+
"- Other monatomic ions (these will fail to parametrize)\n",
931934
"- Proteins and other biopolymers\n",
932935
"- Lipid membranes\n",
933936
"\n",

source/workshops/2024/smirnoff.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ This workshop introduces the SMIRNOFF format to familiar MD practitioners and de
77
First Session
88
: [Feb 20 23:00 UTC](https://time.is/1000_21_Feb_2024_in_Canberra/Tokyo/Auckland,_New_Zealand/Los_Angeles/Chicago/Phoenix/New_York/UTC?SMIRNOFF_OpenFF_Workshop)
99

10-
: [💨 Join on Zoom](https://us06web.zoom.us/j/81208498403?pwd=m17ZJnzLDwXvLbInqDKdGoeImro0cC.1)
11-
1210
Second Session
1311
: [Apr 10 12:00 UTC](https://time.is/2200_10_Apr_2024_in_Canberra/Beijing/Berlin/Los_Angeles/Chicago/Phoenix/New_York/London/UTC?SMIRNOFF_OpenFF_Workshop)
1412

13+
: [💨 Join on Zoom](https://us06web.zoom.us/j/87669037455?pwd=CK8ETt2HwXJe7h9rM42JbFzaU9RJFJ.1)
14+
1515
Zoom links will be published here 24 hours before the sessions begin.
1616

1717
Materials and Google Colab links can be found below.
Binary file not shown.

source/workshops/2024/smirnoff/bespokefit-hexanoic-acid.offxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,10 @@
320320
<Proper smirks="[*:1]-[*:2]#[*:3]-[*:4]" periodicity1="1" phase1="0.0 * degree ** 1" id="t165" k1="0.0 * mole ** -1 * kilocalorie ** 1" idivf1="1.0"></Proper>
321321
<Proper smirks="[*:1]~[*:2]-[*:3]#[*:4]" periodicity1="1" phase1="0.0 * degree ** 1" id="t166" k1="0.0 * mole ** -1 * kilocalorie ** 1" idivf1="1.0"></Proper>
322322
<Proper smirks="[*:1]~[*:2]=[#6,#7,#16,#15;X2:3]=[*:4]" periodicity1="1" phase1="0.0 * degree ** 1" id="t167" k1="0.0 * mole ** -1 * kilocalorie ** 1" idivf1="1.0"></Proper>
323-
<Proper smirks="[#6H2X4x0!r+0A:1](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](-;!@[#8H1X2x0!r+0A]-;!@[#1H0X1x0!r+0A])=;!@[#8H0X1x0!r+0A:4]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t183" k1="2.339482342559e-05 * kilocalories_per_mole ** 1" k2="-0.09629862049992 * mole ** -1 * kilocalorie ** 1" k3="1.502296337255e-06 * kilocalories_per_mole ** 1" k4="6.115051851251e-06 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
324-
<Proper smirks="[#6H2X4x0!r+0A:1](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](=;!@[#8H0X1x0!r+0A])-;!@[#8H1X2x0!r+0A:4]-;!@[#1H0X1x0!r+0A]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t184" k1="-2.665103673882e-05 * kilocalories_per_mole ** 1" k2="0.570167135834 * kilocalories_per_mole ** 1" k3="0.1812559079425 * mole ** -1 * kilocalorie ** 1" k4="4.541093756891e-06 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
325-
<Proper smirks="[#1H0X1x0!r+0A:1]-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](-;!@[#8H1X2x0!r+0A]-;!@[#1H0X1x0!r+0A])=;!@[#8H0X1x0!r+0A:4]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t185" k1="0.9162555051511 * mole ** -1 * kilocalorie ** 1" k2="0.2080633644506 * mole ** -1 * kilocalorie ** 1" k3="-0.1737773653881 * mole ** -1 * kilocalorie ** 1" k4="-0.004756813549828 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
326-
<Proper smirks="[#1H0X1x0!r+0A:1]-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](=;!@[#8H0X1x0!r+0A])-;!@[#8H1X2x0!r+0A:4]-;!@[#1H0X1x0!r+0A]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t186" k1="0.2912505051823 * kilocalories_per_mole ** 1" k2="-1.528497551787e-05 * kilocalories_per_mole ** 1" k3="-0.2013576311107 * mole ** -1 * kilocalorie ** 1" k4="-1.188164284603e-05 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
323+
<Proper smirks="[#6H2X4x0!r+0A:1](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](-;!@[#8H1X2x0!r+0A]-;!@[#1H0X1x0!r+0A])=;!@[#8H0X1x0!r+0A:4]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t183" k1="2.311750799844e-05 * kilocalories_per_mole ** 1" k2="-0.09934852329684 * mole ** -1 * kilocalorie ** 1" k3="1.505881066552e-06 * kilocalories_per_mole ** 1" k4="6.156327275483e-06 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
324+
<Proper smirks="[#6H2X4x0!r+0A:1](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](=;!@[#8H0X1x0!r+0A])-;!@[#8H1X2x0!r+0A:4]-;!@[#1H0X1x0!r+0A]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t184" k1="-2.672553443299e-05 * kilocalories_per_mole ** 1" k2="0.5733687344026 * kilocalories_per_mole ** 1" k3="0.1812558882216 * mole ** -1 * kilocalorie ** 1" k4="4.510013887253e-06 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
325+
<Proper smirks="[#1H0X1x0!r+0A:1]-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](-;!@[#8H1X2x0!r+0A]-;!@[#1H0X1x0!r+0A])=;!@[#8H0X1x0!r+0A:4]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t185" k1="0.9162450108759 * mole ** -1 * kilocalorie ** 1" k2="0.2080640783886 * mole ** -1 * kilocalorie ** 1" k3="-0.1737774081048 * mole ** -1 * kilocalorie ** 1" k4="-0.005008864859333 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
326+
<Proper smirks="[#1H0X1x0!r+0A:1]-;!@[#6H2X4x0!r+0A:2](-;!@[#1H0X1x0!r+0A])(-;!@[#6H2X4x0!r+0A](-;!@[#1H0X1x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#6H2X4x0!r+0A,#6H3X4x0!r+0A](-;!@[#1H0X1x0!r+0A,#6H2X4x0!r+0A])(-;!@[#1H0X1x0!r+0A])-;!@[#1H0X1x0!r+0A])-;!@[#6H0X3x0!r+0A:3](=;!@[#8H0X1x0!r+0A])-;!@[#8H1X2x0!r+0A:4]-;!@[#1H0X1x0!r+0A]" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0 * degree ** 1" phase2="180 * degree ** 1" phase3="0 * degree ** 1" phase4="180 * degree ** 1" id="t186" k1="0.291045899231 * kilocalories_per_mole ** 1" k2="-1.490732021763e-05 * kilocalories_per_mole ** 1" k3="-0.2013184497385 * mole ** -1 * kilocalorie ** 1" k4="-1.235976991155e-05 * kilocalories_per_mole ** 1" idivf1="1.0" idivf2="1.0" idivf3="1.0" idivf4="1.0"></Proper>
327327
</ProperTorsions>
328328
<ImproperTorsions version="0.3" potential="k*(1+cos(periodicity*theta-phase))" default_idivf="auto">
329329
<Improper smirks="[*:1]~[#6X3:2](~[*:3])~[*:4]" periodicity1="2" phase1="180.0 * degree ** 1" k1="5.230790565314 * mole ** -1 * kilocalorie ** 1" id="i1"></Improper>
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
name: 2024-smirnoff-workshop
1+
name: openff-docs-examples
22
channels:
33
- conda-forge
44
dependencies:
5-
# Notebook + runtime
5+
# Colab-specific versions
66
- ipywidgets=7.6.0
7+
- nglview=3.0.3
78
# Examples
8-
- openff-toolkit-examples>=0.14.5
9-
- openff-interchange>=0.3.18
10-
- openff-nagl
11-
- openff-bespokefit>=0.2.3
9+
- openff-toolkit-examples ~=0.15.2
10+
- openff-interchange ~=0.3.25
11+
- openff-nagl ~=0.3.7
12+
- openff-bespokefit
1213
- gromacs >=2021=nompi*
13-
- lammps
14+
- lammps >=2023.08.02
1415
- rich
1516
- jax
1617
- dgl
17-
- nglview=3.0.3
1818
- xtb-python
1919
- pdbfixer
2020
- mdtraj
21-
- propka
22-
- pdb2pqr
2321
- openmmtools
2422
- chemper
25-
- dockstring
2623
- mdanalysis

source/workshops/2024/smirnoff/colab-smirnoff.ipynb

Lines changed: 54 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "c36c3757-9937-4265-b151-27c69acf185d",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"!pip install -U https://github.com/conda-incubator/condacolab/archive/cuda-version-12.tar.gz\n",
11+
"import condacolab\n",
12+
"condacolab.install_mambaforge()"
13+
]
14+
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": null,
18+
"id": "a5c51ca7-b042-454c-8f06-d19225fe4acd",
19+
"metadata": {},
20+
"outputs": [],
21+
"source": [
22+
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/main/source/workshops/2024/smirnoff/utils.py\n",
23+
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/main/source/workshops/2024/smirnoff/colab-env.yml\n",
24+
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/main/source/workshops/2024/smirnoff/7FCX_prepped.pdb\n",
25+
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/main/source/workshops/2024/smirnoff/smirks.png\n",
26+
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/main/source/workshops/2024/smirnoff/interchange_vectors.png\n",
27+
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/main/source/workshops/2024/smirnoff/bespoke_hexanoic_acid_alltorsions.offxml\n",
28+
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/main/source/workshops/2024/smirnoff/bespokefit-hexanoic-acid.offxml\n",
29+
"!mamba env update -q --name=base --file=colab-env.yml"
30+
]
31+
},
332
{
433
"cell_type": "markdown",
534
"id": "81036958-df15-4b2e-9c41-093ebfccaaf9",
@@ -109,37 +138,23 @@
109138
{
110139
"cell_type": "code",
111140
"execution_count": null,
112-
"id": "c36c3757-9937-4265-b151-27c69acf185d",
113-
"metadata": {},
114-
"outputs": [],
115-
"source": [
116-
"!pip install -U https://github.com/conda-incubator/condacolab/archive/cuda-version-12.tar.gz\n",
117-
"import condacolab\n",
118-
"condacolab.install_mambaforge()"
119-
]
120-
},
121-
{
122-
"cell_type": "code",
123-
"execution_count": null,
124-
"id": "a5c51ca7-b042-454c-8f06-d19225fe4acd",
125-
"metadata": {},
141+
"id": "bc3f4e94-c626-46c9-a9fa-db2454ff892f",
142+
"metadata": {
143+
"editable": true,
144+
"slideshow": {
145+
"slide_type": ""
146+
},
147+
"tags": []
148+
},
126149
"outputs": [],
127150
"source": [
128-
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/2024-smirnoff-workshop/source/workshops/2024/smirnoff/utils.py\n",
129-
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/2024-smirnoff-workshop/source/workshops/2024/smirnoff/colab-env.yml\n",
130-
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/2024-smirnoff-workshop/source/workshops/2024/smirnoff/7FCX_prepped.pdb\n",
131-
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/2024-smirnoff-workshop/source/workshops/2024/smirnoff/smirks.png\n",
132-
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/2024-smirnoff-workshop/source/workshops/2024/smirnoff/bespoke_hexanoic_acid_alltorsions.offxml\n",
133-
"!wget -qN https://raw.githubusercontent.com/openforcefield/openff-docs/2024-smirnoff-workshop/source/workshops/2024/smirnoff/bespokefit-hexanoic-acid.offxml\n",
134-
"!mamba env update -q --name=base --file=colab-env.yml\n",
135-
"from google.colab import output\n",
136-
"output.enable_custom_widget_manager()"
151+
"from utils import draw_molecule, nglview_show_openmm"
137152
]
138153
},
139154
{
140155
"cell_type": "code",
141156
"execution_count": null,
142-
"id": "bc3f4e94-c626-46c9-a9fa-db2454ff892f",
157+
"id": "e090acfa-1e7f-431f-8b35-3ab282e3b259",
143158
"metadata": {
144159
"editable": true,
145160
"slideshow": {
@@ -149,7 +164,8 @@
149164
},
150165
"outputs": [],
151166
"source": [
152-
"from utils import draw_molecule, nglview_show_openmm"
167+
"from google.colab import output\n",
168+
"output.enable_custom_widget_manager()"
153169
]
154170
},
155171
{
@@ -301,7 +317,7 @@
301317
"id": "daa98897-edce-4830-97cb-533a335b460f",
302318
"metadata": {},
303319
"source": [
304-
"<img src=\"smirks.png\" width=\"400\"/>"
320+
"<img src=\"smirks.png\" width=\"600\"/>"
305321
]
306322
},
307323
{
@@ -494,6 +510,14 @@
494510
"## Interchange's matrix representation"
495511
]
496512
},
513+
{
514+
"cell_type": "markdown",
515+
"id": "14778b26-1109-448e-b4e6-d8a87171ae92",
516+
"metadata": {},
517+
"source": [
518+
"![Graphic depicting Interchange's matrix representation](interchange_vectors.png)"
519+
]
520+
},
497521
{
498522
"cell_type": "code",
499523
"execution_count": null,
@@ -549,6 +573,7 @@
549573
"outputs": [],
550574
"source": [
551575
"edited_params = hexanoic_acid_in_sage[\"Bonds\"].get_force_field_parameters()\n",
576+
"# Change the first (0th) bond length (1) to 4 angstroms\n",
552577
"edited_params[0, 1] = 4.0\n",
553578
"\n",
554579
"hexanoic_acid_in_sage[\"Bonds\"].set_force_field_parameters(edited_params)\n",
@@ -571,11 +596,9 @@
571596
"id": "31a3526b-ac25-4ad3-9a4a-7218de2bc941",
572597
"metadata": {},
573598
"source": [
574-
"Introduce NADP, parametrize with Sage, investigate assigned parameters, demonstrate same potential energy across different engines \n",
575-
"\n",
576-
"Heart-type fatty acid binding protein (hFABP) \n",
599+
"I've prepared a simulation box with heart-type Fatty Acid Binding Protein (hFABP), a globular protein with a [PDB entry] including a bound hexanoic acid molecule.\n",
577600
"\n",
578-
"https://www.rcsb.org/structure/7FCX"
601+
"[PDB entry]: https://www.rcsb.org/structure/7FCX"
579602
]
580603
},
581604
{
@@ -587,7 +610,6 @@
587610
"source": [
588611
"from openff.toolkit import Topology\n",
589612
"\n",
590-
"\n",
591613
"topology = Topology.from_pdb(\n",
592614
" \"7FCX_prepped.pdb\", \n",
593615
" unique_molecules=[hexanoic_acid]\n",
@@ -943,9 +965,8 @@
943965
"name": "python",
944966
"nbconvert_exporter": "python",
945967
"pygments_lexer": "ipython3",
946-
"version": "3.11.7"
968+
"version": "3.11.8"
947969
},
948-
"orphan": true,
949970
"widgets": {
950971
"application/vnd.jupyter.widget-state+json": {
951972
"state": {},
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
1-
name: 2024-smirnoff-workshop
1+
name: openff-docs-examples
22
channels:
33
- conda-forge
44
dependencies:
5-
# Notebook + runtime
65
- pip
76
- python>=3.10
87
- jupyterlab>=4
98
- ipywidgets>=8
9+
- jupyterlab_execute_time
1010
- jupyterlab-lsp
11-
- pyright
11+
- jedi-language-server
1212
- jupyterlab_code_formatter
1313
- black
1414
- isort
1515
# Examples
16-
- openff-toolkit-examples>=0.14.5
17-
- openff-interchange>=0.3.18
18-
- openff-nagl
19-
- openff-bespokefit>=0.2.3
16+
- openff-toolkit-examples ~=0.15.2
17+
- openff-interchange ~=0.3.25
18+
- openff-nagl ~=0.3.7
19+
- openff-bespokefit
20+
- openff-qcsubmit
2021
- gromacs >=2021=nompi*
21-
- lammps
22+
- lammps >=2023.08.02
2223
- rich
2324
- jax
2425
- dgl
2526
- nglview>=3.0.6
2627
- xtb-python
2728
- pdbfixer
2829
- mdtraj
29-
- propka
30-
- pdb2pqr
3130
- openmmtools
3231
- chemper
33-
- dockstring
3432
- mdanalysis
33+
- plotly
Loading

0 commit comments

Comments
 (0)