Skip to content

Commit 0bac24d

Browse files
committed
fix formats
1 parent 0f562bd commit 0bac24d

File tree

13 files changed

+186
-180
lines changed

13 files changed

+186
-180
lines changed

examples/docking/docking_stability.wic

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ wic:
3131
wic:
3232
inlineable: False
3333
steps:
34-
(1, setup_vac_min.yml):
34+
(1, setup_vac_min.wic):
3535
wic:
3636
steps:
37-
(3, solv_ion.yml):
37+
(3, solv_ion.wic):
3838
wic:
3939
steps:
4040
(4, genion):
4141
in:
4242
output_top_zip_path: !& genion_complex.zip
43-
(2, basic.yml):
43+
(2, basic.wic):
4444
in:
4545
top_zip_path: !* genion_complex.zip
4646
wic:
@@ -54,7 +54,7 @@ wic:
5454
(3, mdrun):
5555
in:
5656
output_crd_path: !& prod_complex.gro
57-
(4, cwl_watcher_analysis.yml):
57+
(4, cwl_watcher_analysis.wic):
5858
wic:
5959
implementation: complex
6060
(3, analysis.wic):
@@ -63,6 +63,6 @@ wic:
6363
(1, analysis_realtime.wic):
6464
wic:
6565
backend: complex
66-
(2, analysis_final.yml):
66+
(2, analysis_final.wic):
6767
wic:
6868
backend: complex

examples/docking/gen_topol_params.wic

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ steps:
7979
input_structure1: input_receptor_xyz_path
8080
input_structure2: !* pose_ligand.xyz
8181
input_top_zip_path: !* complex_vac.zip
82-
output_structure_path: !& complex_vac.pdb
82+
out:
83+
- output_structure_path: !& complex_vac.pdb
8384

8485
wic:
8586
graphviz:

examples/docking/vs_demo_4.wic

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,19 @@ wic:
206206
wic:
207207
inlineable: False
208208
steps:
209-
(1, setup.wic):
209+
(1, setup_vac_min.wic):
210210
wic:
211211
steps:
212-
(4, genion):
213-
out:
214-
- output_top_zip_path: !& genion_complex.zip
212+
(3, solv_ion.wic):
213+
wic:
214+
steps:
215+
(4, genion):
216+
out:
217+
- output_top_zip_path: !& genion_complex.zip
215218
(2, basic.wic):
216-
wic:
219+
in:
220+
top_zip_path: !* genion_complex.zip
221+
wic:
217222
steps:
218223
(3, prod.wic):
219224
wic:

examples/gromacs/basic.wic

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ steps:
1919
# (i.e. immediately before molecular dynamics) so we can extract &min.tpr
2020
# to this level and use the following syntax to pass it to only one call site.
2121
# (Moreover, the former will create multiple definitions of &min.tpr, which is not allowed.)
22-
- min.yml:
23-
in:
24-
top_zip_path: top_zip_path
25-
- equil.yml:
26-
- prod.yml:
27-
in:
28-
nsteps: nsteps
29-
dt: dt
30-
ref-t: ref-t
31-
ref-p: ref-p
22+
min.wic:
23+
in:
24+
top_zip_path: top_zip_path
25+
equil.wic:
26+
prod.wic:
27+
in:
28+
nsteps: nsteps
29+
dt: dt
30+
ref-t: ref-t
31+
ref-p: ref-p
3232

3333
# Pass the CWL `in` tag as a parameter through BOTH of the yml DSL tags cg.wic and grompp.
3434
# Use (1-based) indexing to uniquely reference (step_number, step_name).

examples/gromacs/cg.wic

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ inputs:
55
- edam:format_3987
66

77
steps:
8-
grompp:
9-
in:
10-
input_top_zip_path: top_zip_path
11-
config:
12-
mdp:
13-
integrator: cg
14-
define: -DFLEXIBLE # Defines a flexible water model if it exists in the system
15-
# https://manual.gromacs.org/current/reference-manual/algorithms/energy-minimization.html#conjugate-gradient
16-
rvdw: 1.4
17-
rcoulomb: 1.4
18-
#coulombtype: PME
19-
nsteps: 1000
20-
emstep: 0.01
21-
emtol: 10
22-
nstxout: 100
23-
nstenergy: 1
24-
mdrun:
25-
in:
26-
nb_terms: !ii cpu # NOTE: Workaround for a bug in gromacs 2022.2, fixed in 2022.3
27-
# https://manual.gromacs.org/current/release-notes/2022/2022.3.html#energy-minimization-would-not-converge-with-gpu-and-without-dd
28-
bonded_terms: !ii cpu # GPU implementation IS supported for md integrator, is NOT supported for sd integrator, etc.
29-
pme_terms: !ii cpu
30-
pme_fft_terms: !ii cpu
31-
update_terms: !ii cpu
32-
gmx_energy:
33-
in:
34-
config: !ii
35-
terms: [Potential]
36-
output_xvg_path: !ii energy_min_cg.xvg
8+
grompp:
9+
in:
10+
input_top_zip_path: top_zip_path
11+
config: !ii
12+
mdp:
13+
integrator: cg
14+
define: -DFLEXIBLE # Defines a flexible water model if it exists in the system
15+
# https://manual.gromacs.org/current/reference-manual/algorithms/energy-minimization.html#conjugate-gradient
16+
rvdw: 1.4
17+
rcoulomb: 1.4
18+
#coulombtype: PME
19+
nsteps: 1000
20+
emstep: 0.01
21+
emtol: 10
22+
nstxout: 100
23+
nstenergy: 1
24+
mdrun:
25+
in:
26+
nb_terms: !ii cpu # NOTE: Workaround for a bug in gromacs 2022.2, fixed in 2022.3
27+
# https://manual.gromacs.org/current/release-notes/2022/2022.3.html#energy-minimization-would-not-converge-with-gpu-and-without-dd
28+
bonded_terms: !ii cpu # GPU implementation IS supported for md integrator, is NOT supported for sd integrator, etc.
29+
pme_terms: !ii cpu
30+
pme_fft_terms: !ii cpu
31+
update_terms: !ii cpu
32+
gmx_energy:
33+
in:
34+
config: !ii
35+
terms: [Potential]
36+
output_xvg_path: !ii energy_min_cg.xvg
3737

3838
wic:
3939
graphviz:

examples/gromacs/equil.wic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
steps:
2-
nvt.wic:
3-
npt.wic:
2+
nvt.wic:
3+
npt.wic:
44

55
wic:
66
graphviz:

examples/gromacs/min.wic

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ inputs:
55
- edam:format_3987
66

77
steps:
8-
- steep.yml:
9-
in:
10-
top_zip_path: top_zip_path
8+
steep.wic:
9+
in:
10+
top_zip_path: top_zip_path
1111
# Fatal error:
1212
# The coordinates could not be constrained. Minimizer 'cg' can not handle
1313
# constraint failures, use minimizer 'steep' before using 'cg'.
14-
- cg.yml:
15-
in:
16-
top_zip_path: top_zip_path
14+
cg.wic:
15+
in:
16+
top_zip_path: top_zip_path
1717
# Fatal error:
1818
# The combination of constraints and L-BFGS minimization is not implemented.
1919
# Either do not use constraints, or use another minimizer (e.g. steepest

examples/gromacs/prod.wic

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,45 +11,45 @@ inputs:
1111
type: float
1212

1313
steps:
14-
config_tag_mdp:
15-
in:
16-
nsteps: nsteps #10000
17-
dt: dt #0.002
18-
ref-t: ref-t #298.0
19-
ref-p: ref-p #1.0
20-
config: !ii
21-
mdp:
22-
integrator: md # Use md for performance so we can update coordinates on GPU. Use sd for proper statistical properties.
23-
rvdw: 1.0
24-
rcoulomb: 1.0
25-
coulombtype: PME
26-
tc-grps: system
27-
tau-t: 2
28-
constraints: h-bonds
29-
nstxout: 1000
30-
nstenergy: 1000
31-
pcoupl: Parrinello-Rahman
32-
tau-p: 1
33-
compressibility: 4.5e-5
34-
comm-mode: Linear
35-
comm-grps: system
36-
out:
37-
- output_config_string: !& config_tag_mdp_prod
38-
grompp:
39-
in:
40-
config: !* config_tag_mdp_prod
41-
input_top_zip_path: !* genion.zip # Use the original topology file so
14+
config_tag_mdp:
15+
in:
16+
nsteps: nsteps #10000
17+
dt: dt #0.002
18+
ref-t: ref-t #298.0
19+
ref-p: ref-p #1.0
20+
config: !ii
21+
mdp:
22+
integrator: md # Use md for performance so we can update coordinates on GPU. Use sd for proper statistical properties.
23+
rvdw: 1.0
24+
rcoulomb: 1.0
25+
coulombtype: PME
26+
tc-grps: system
27+
tau-t: 2
28+
constraints: h-bonds
29+
nstxout: 1000
30+
nstenergy: 1000
31+
pcoupl: Parrinello-Rahman
32+
tau-p: 1
33+
compressibility: 4.5e-5
34+
comm-mode: Linear
35+
comm-grps: system
36+
out:
37+
- output_config_string: !& config_tag_mdp_prod
38+
grompp:
39+
in:
40+
config: !* config_tag_mdp_prod
41+
input_top_zip_path: !* genion.zip # Use the original topology file so
4242
# we don't have to question whether the topology gets messed up after file format conversions.
4343
# (In fact, it is not exactly identical!)
44-
out:
45-
- output_tpr_path: !& prod.tpr
46-
mdrun:
47-
in:
48-
output_trr_path: !ii prod.trr # Explicitly specify for cwl_subinterpreter
49-
out:
50-
- output_crd_path: !& prod.gro
51-
- output_trr_path: !& prod.trr
52-
- output_edr_path: !& prod.edr
44+
out:
45+
- output_tpr_path: !& prod.tpr
46+
mdrun:
47+
in:
48+
output_trr_path: !ii prod.trr # Explicitly specify for cwl_subinterpreter
49+
out:
50+
- output_crd_path: !& prod.gro
51+
- output_trr_path: !& prod.trr
52+
- output_edr_path: !& prod.edr
5353
# - cwl_subinterpreter_analysis.wic:
5454

5555
wic:

examples/gromacs/setup_vac_min.wic

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ inputs:
1010
- edam:format_3987
1111

1212
steps:
13-
- topology.yml:
14-
in:
15-
crd_path: crd_path
16-
- min.yml: # Minimize in vacuum first, then in solvent.
17-
in:
18-
top_zip_path: top_zip_path
19-
- solv_ion.yml:
20-
in:
21-
top_zip_path: top_zip_path
13+
topology.wic:
14+
in:
15+
crd_path: crd_path
16+
min.wic: # Minimize in vacuum first, then in solvent.
17+
in:
18+
top_zip_path: top_zip_path
19+
solv_ion.wic:
20+
in:
21+
top_zip_path: top_zip_path
2222
wic:
2323
graphviz:
2424
label: System Setup
2525
steps:
26-
(1, topology.yml):
26+
(1, topology.wic):
2727
wic:
2828
graphviz:
2929
label: 'Initialize\nPeriodic Box'
30-
(2, min.yml):
30+
(2, min.wic):
3131
wic:
3232
graphviz:
3333
label: 'Vacuum Minimization'
34-
(3, solv_ion.yml):
34+
(3, solv_ion.wic):
3535
wic:
3636
graphviz:
3737
label: 'Add Water\nSolvent'

examples/gromacs/solv_ion.wic

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,32 @@ inputs:
55
- edam:format_3987
66

77
steps:
8-
- gmx_editconf:
9-
in:
10-
#input_crd_path: crd_path
11-
align_principal_axes: 0
12-
box_type: cubic
13-
distance_to_molecule: 1.2
14-
- solvate:
15-
in:
16-
input_top_zip_path: top_zip_path
17-
output_crd_path: !& solvate.gro
18-
output_top_zip_path: !& solvate.zip
19-
- grompp:
20-
in:
21-
input_crd_path: !* solvate.gro
22-
input_top_zip_path: !* solvate.zip
23-
config: !ii
24-
maxwarn: 1 # net charge != 0
25-
mdp:
26-
integrator: steep
27-
genion:
28-
in:
29-
config: !ii
30-
neutral: True
31-
out:
32-
- output_top_zip_path: !& genion.zip
8+
gmx_editconf:
9+
in:
10+
#input_crd_path: crd_path
11+
align_principal_axes: !ii 0
12+
box_type: !ii cubic
13+
distance_to_molecule: !ii 1.2
14+
solvate:
15+
in:
16+
input_top_zip_path: top_zip_path
17+
out:
18+
- output_crd_path: !& solvate.gro
19+
- output_top_zip_path: !& solvate.zip
20+
grompp:
21+
in:
22+
input_crd_path: !* solvate.gro
23+
input_top_zip_path: !* solvate.zip
24+
config: !ii
25+
maxwarn: 1 # net charge != 0
26+
mdp:
27+
integrator: steep
28+
genion:
29+
in:
30+
config: !ii
31+
neutral: True
32+
out:
33+
- output_top_zip_path: !& genion.zip
3334
# Use &filename to create a reference to an output. Inputs in later steps can
3435
# use *filename to dereference the filename and create an explicit edge.
3536
wic:

0 commit comments

Comments
 (0)