Skip to content

Commit 0cdf384

Browse files
Fix organization of hoomd examples in subfolders (#174)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b7ed4db commit 0cdf384

11 files changed

Lines changed: 81 additions & 49 deletions

File tree

examples/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@ Examples for Methods using HOOMD-blue can be found in the subfolder [hoomd-blue]
1414

1515
### Notebooks
1616

17-
* Harmonic bias restricting a particle in space: [![Harmonic Bias](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/Harmonic_Bias.ipynb)
18-
* Umbella integration of a particle in an external potential: [![Umbrella Integation](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/Umbrella_Integration.ipynb)
19-
* Artificial neural networks sampling of the dihedral angle of Butane: [![ANN](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/ann/Butane_ANN.ipynb)
20-
* Adaptive force-biasing sampling of the dihedral angle of Butane using neural networks: [![FUNN](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/Butane_FUNN.ipynb)
17+
* Harmonic bias restricting a particle in space: [![Harmonic Bias](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/harmonic_bias/Harmonic_Bias.ipynb)
18+
* Umbella integration of a particle in an external potential: [![Umbrella Integation](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/umbrella_integration/Umbrella_Integration.ipynb)
19+
* Artificial neural networks sampling of the dihedral angle of butane: [![ANN](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/ann/Butane_ANN.ipynb)
20+
* Adaptive force-biasing sampling of the dihedral angle of butane using neural networks: [![FUNN](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/funn/Butane_FUNN.ipynb)
21+
* Combined force-frequency sampling of the dihedral angle of butane: [![CFF](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SSAGESLabs/PySAGES/blob/main/examples/hoomd-blue/cff/Butane_CFF.ipynb)
2122

2223
### Script examples
2324

2425
* Harmonic bias restricting a particle in space: [harmonic_bias](hoomd-blue/harmonic_bias)
2526
* Umbella integration of a particle in an external potential: [umbrella_integration](hoomd-blue/umbrella_integration)
27+
* Artificial neural networks sampling of the dihedral angle of butane: [ann](hoomd-blue/ann/butane_ann.py)
28+
* Adaptive force-biasing sampling of the dihedral angle of butane using neural networks: [funn](hoomd-blue/funn/butane.py)
29+
* Combined force-frequency sampling of the dihedral angle of butane: [cff](hoomd-blue/cff/butane.py)
30+
* Metadynamics sampling of the dihedral angle of butane: [metadynamics](hoomd-blue/metad/butane.py)
2631

2732
## OpenMM
2833

examples/hoomd-blue/ann/Butane_ANN.ipynb

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@
148148
"pip install -q . &> /dev/null"
149149
]
150150
},
151-
{
152-
"cell_type": "markdown",
153-
"metadata": {
154-
"id": "KBFVcG1FoeMq"
155-
},
156-
"source": [
157-
"# ANN-biased simulations"
158-
]
159-
},
160151
{
161152
"cell_type": "code",
162153
"execution_count": 7,
@@ -171,6 +162,15 @@
171162
"cd /content/ann"
172163
]
173164
},
165+
{
166+
"cell_type": "markdown",
167+
"metadata": {
168+
"id": "KBFVcG1FoeMq"
169+
},
170+
"source": [
171+
"# ANN-biased simulations"
172+
]
173+
},
174174
{
175175
"cell_type": "markdown",
176176
"metadata": {
@@ -763,9 +763,18 @@
763763
"name": "python3"
764764
},
765765
"language_info": {
766-
"name": "python"
766+
"codemirror_mode": {
767+
"name": "ipython",
768+
"version": 3
769+
},
770+
"file_extension": ".py",
771+
"mimetype": "text/x-python",
772+
"name": "python",
773+
"nbconvert_exporter": "python",
774+
"pygments_lexer": "ipython3",
775+
"version": "3.9.12"
767776
}
768777
},
769778
"nbformat": 4,
770-
"nbformat_minor": 0
779+
"nbformat_minor": 1
771780
}

examples/hoomd-blue/ann/Butane_ANN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ cd PySAGES
8080
pip install -q . &> /dev/null
8181
```
8282

83-
<!-- #region id="KBFVcG1FoeMq" -->
84-
# ANN-biased simulations
85-
<!-- #endregion -->
86-
8783
```bash id="ppTzMmyyobHB"
8884

8985
mkdir /content/ann
9086
cd /content/ann
9187
```
9288

89+
<!-- #region id="KBFVcG1FoeMq" -->
90+
# ANN-biased simulations
91+
<!-- #endregion -->
92+
9393
<!-- #region id="0W2ukJuuojAl" -->
9494
ANN gradually learns the free energy from a probability density estimate based on the frequency of visits to the grid on collective variable space.
9595

examples/hoomd-blue/cff/Butane_CFF.ipynb

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,6 @@
145145
"pip install -q . &> /dev/null"
146146
]
147147
},
148-
{
149-
"cell_type": "markdown",
150-
"metadata": {
151-
"id": "KBFVcG1FoeMq"
152-
},
153-
"source": [
154-
"# CFF-biased simulations"
155-
]
156-
},
157148
{
158149
"cell_type": "code",
159150
"execution_count": 8,
@@ -168,6 +159,15 @@
168159
"cd /content/cff"
169160
]
170161
},
162+
{
163+
"cell_type": "markdown",
164+
"metadata": {
165+
"id": "KBFVcG1FoeMq"
166+
},
167+
"source": [
168+
"# CFF-biased simulations"
169+
]
170+
},
171171
{
172172
"cell_type": "markdown",
173173
"metadata": {
@@ -730,9 +730,18 @@
730730
"name": "python3"
731731
},
732732
"language_info": {
733-
"name": "python"
733+
"codemirror_mode": {
734+
"name": "ipython",
735+
"version": 3
736+
},
737+
"file_extension": ".py",
738+
"mimetype": "text/x-python",
739+
"name": "python",
740+
"nbconvert_exporter": "python",
741+
"pygments_lexer": "ipython3",
742+
"version": "3.9.12"
734743
}
735744
},
736745
"nbformat": 4,
737-
"nbformat_minor": 0
746+
"nbformat_minor": 1
738747
}

examples/hoomd-blue/cff/Butane_CFF.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ cd PySAGES
7878
pip install -q . &> /dev/null
7979
```
8080

81-
<!-- #region id="KBFVcG1FoeMq" -->
82-
# CFF-biased simulations
83-
<!-- #endregion -->
84-
8581
```bash id="ppTzMmyyobHB"
8682

8783
mkdir /content/cff
8884
cd /content/cff
8985
```
9086

87+
<!-- #region id="KBFVcG1FoeMq" -->
88+
# CFF-biased simulations
89+
<!-- #endregion -->
90+
9191
<!-- #region id="0W2ukJuuojAl" -->
9292
CFF gradually learns both the free energy and its gradient from a discrete estimate of the generalized mean forces (based on the same algorithm as the ABF method), and frequency of visits to sites in phase space. It employs a couple of neural networks to provide a continuous approximation to the free energy.
9393

examples/hoomd-blue/Butane_FUNN.ipynb renamed to examples/hoomd-blue/funn/Butane_FUNN.ipynb

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,6 @@
145145
"pip install -q . &> /dev/null"
146146
]
147147
},
148-
{
149-
"cell_type": "markdown",
150-
"metadata": {
151-
"id": "KBFVcG1FoeMq"
152-
},
153-
"source": [
154-
"# FUNN-biased simulations"
155-
]
156-
},
157148
{
158149
"cell_type": "code",
159150
"execution_count": 8,
@@ -168,6 +159,15 @@
168159
"cd /content/funn"
169160
]
170161
},
162+
{
163+
"cell_type": "markdown",
164+
"metadata": {
165+
"id": "KBFVcG1FoeMq"
166+
},
167+
"source": [
168+
"# FUNN-biased simulations"
169+
]
170+
},
171171
{
172172
"cell_type": "markdown",
173173
"metadata": {
@@ -771,9 +771,18 @@
771771
"name": "python3"
772772
},
773773
"language_info": {
774-
"name": "python"
774+
"codemirror_mode": {
775+
"name": "ipython",
776+
"version": 3
777+
},
778+
"file_extension": ".py",
779+
"mimetype": "text/x-python",
780+
"name": "python",
781+
"nbconvert_exporter": "python",
782+
"pygments_lexer": "ipython3",
783+
"version": "3.9.12"
775784
}
776785
},
777786
"nbformat": 4,
778-
"nbformat_minor": 0
787+
"nbformat_minor": 1
779788
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ cd PySAGES
7878
pip install -q . &> /dev/null
7979
```
8080

81-
<!-- #region id="KBFVcG1FoeMq" -->
82-
# FUNN-biased simulations
83-
<!-- #endregion -->
84-
8581
```bash id="ppTzMmyyobHB"
8682

8783
mkdir /content/funn
8884
cd /content/funn
8985
```
9086

87+
<!-- #region id="KBFVcG1FoeMq" -->
88+
# FUNN-biased simulations
89+
<!-- #endregion -->
90+
9191
<!-- #region id="0W2ukJuuojAl" -->
9292
FUNN gradually learns the free energy gradient from a discrete estimate based on the same algorithm as the ABF method, but employs a neural network to provide a continuous approximation to it.
9393

File renamed without changes.
File renamed without changes.

examples/hoomd-blue/Umbrella_Integration.ipynb renamed to examples/hoomd-blue/umbrella_integration/Umbrella_Integration.ipynb

File renamed without changes.

0 commit comments

Comments
 (0)