You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #68 from michellab/feature-decouple-somd-3
Feature decouple somd 3 to main branch
Conflicts Resolved
- Resolved all merge conflicts between feature-decouple-somd-3 and main branch
- Integrated latest changes from main branch
- Local and CI tests pass on all supported Python versions
Ready for v0.4.0 release.
**A**utomated **A**daptive **A**bsolute alchemical **F**ree **E**nergy calculator. A package for running adaptive alchemical absolute binding free energy calculations with SOMD (distributed within [sire](https://sire.openbiosim.org/)) using adaptive protocols based on an ensemble of simulations. This requires the SLURM scheduling system. Please see the [**documentation**](https://a3fe.readthedocs.io/en/latest/?badge=latest).
@@ -19,26 +19,34 @@ For details of the algorithms and testing, please see the assocated paper:
19
19
20
20
a3fe depends on SLURM for scheduling jobs, and on GROMACS for running initial equilibration simulations. Please ensure that your have sourced your GMXRC or loaded your GROMACS module before proceeding with the installation. While we recommend installing with [mamba](https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html), you can substitute `mamba` with `conda` in the following commands.
21
21
22
-
Now, download and install a3fe:
22
+
Now, download and install a3fe. Choose the appropriate environment for your use case:
23
+
24
+
**Regular users:**
23
25
```bash
24
26
git clone https://github.com/michellab/a3fe.git
25
27
cd a3fe
26
-
mamba env create -f environment.yaml
28
+
make env
27
29
mamba activate a3fe
28
-
python -m pip install --no-deps .
30
+
```
31
+
32
+
**Developers with local GROMACS:**
33
+
```bash
34
+
make env-dev
29
35
```
30
36
31
37
### Quick Start
32
38
33
-
- Activate your a3fe conda environment
39
+
- Activate your a3fe conda environment
34
40
- Create a base directory for the calculation and create an directory called `input` within this
35
41
- Move your input files into the the input directory. For example, if you have parameterised AMBER-format input files, name these bound_param.rst7, bound_param.prm7, free_param.rst7, and free_param.prm7. For more details see the documentation. Alternatively, copy the example input files from a3fe/a3fe/data/example_run_dir to your input directory.
36
-
- Copy run somd.sh and template_config.sh from a3fe/a3fe/data/example_run_dir to your `input` directory, making sure to the SLURM options in run_somd.sh so that the jobs will run on your cluster
37
42
- In the calculation base directory, run the following python code, either through ipython or as a python script (you will likely want to run the script with `nohup`or use ipython through tmux to ensure that the calculation is not killed when you lose connection)
38
43
39
44
```python
40
-
import a3fe as a3
41
-
calc = a3.Calculation(ensemble_size=5)
45
+
import a3fe as a3
46
+
calc = a3.Calculation(
47
+
ensemble_size=5, # Use 5 (independently equilibrated) replicate runs
48
+
slurm_config=a3.SlurmConfig(partition="<desired partition>"), # Set your desired partition!
49
+
)
42
50
calc.setup()
43
51
calc.get_optimal_lam_vals()
44
52
calc.run(adaptive=False, runtime=5) # Run non-adaptively for 5 ns per replicate
@@ -52,10 +60,10 @@ calc.save()
52
60
53
61
### Copyright
54
62
55
-
Copyright (c) 2023, Finlay Clark
63
+
Copyright (c) 2025, Finlay Clark and Roy Haolin Du
56
64
57
65
58
66
#### Acknowledgements
59
-
60
-
Project based on the
67
+
68
+
Project based on the
61
69
[Computational Molecular Science Python Cookiecutter](https://github.com/molssi/cookiecutter-cms) version 1.1.
0 commit comments