-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathexamples.sh
More file actions
executable file
·50 lines (43 loc) · 1.97 KB
/
examples.sh
File metadata and controls
executable file
·50 lines (43 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#SBATCH -J strain
#SBATCH -o example_script-%j.out
#SBATCH -p gpu2
#SBATCH --gpus-per-node 1
#SBATCH --mem 10GB
# script should be run from the StrainRelief root directory
source ~/StrainRelief/.venv/bin/activate # with uv
# mamba activate strain # with conda/mamba
# You must choose a minimisation and energy evaluation method from "mmff94",
# "mmff94s", "mace" or "fairchem". The calculator works best when the same
# force field is used for both methods. If this is the case, "energy_eval"
# does not need to be specified.
# This is the simplest and fastest implementation of StrainRelief using MMFF94s
# and a minimial example dataset.
strain-relief \
io.input.parquet_path=../data/example_ligboundconf_input.parquet \
io.output.parquet_path=../data/example_ligboundconf_output.parquet \
minimisation@global_min=mmff94s \
minimisation@local_min=mmff94s
# This script demonstrates using different force fields for minimisation
# (MMFF94s) and energy evaluations (MACE).
strain-relief \
io.input.parquet_path=../data/example_ligboundconf_input.parquet \
io.output.parquet_path=../data/example_ligboundconf_output.parquet \
minimisation@global_min=mmff94s \
minimisation@local_min=mmff94s \
energy_eval=mace \
model=mace \
model.model_paths=s3://prescient-data-dev/strain_relief/models/MACE.model
# This is the script as used for most calculations in the StrainRelief paper.
# MACE is used for minimisation (and energy evalutions implicitly). A looser
# convergence criteria is used for local minimisation. Note: a gpu is required
# by default to run calculations with MACE.
strain-relief \
io.input.parquet_path=../data/example_ligboundconf_input.parquet \
io.output.parquet_path=../data/example_ligboundconf_output.parquet \
minimisation@global_min=mace \
minimisation@local_min=mace \
local_min.fmax=0.50 \
model=mace \
model.model_paths=s3://prescient-data-dev/strain_relief/models/MACE.model \
hydra.verbose=true