Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Kurečka
Plumed AlphaFold
Commits
d690f0db
There was an error fetching the commit references. Please try again later.
Commit
d690f0db
authored
5 years ago
by
carlocamilloni
Browse files
Options
Downloads
Patches
Plain Diff
tutorial-2: more
parent
3b5331cd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
user-doc/tutorials/aa-lugano-2.txt
+32
-2
32 additions, 2 deletions
user-doc/tutorials/aa-lugano-2.txt
user-doc/tutorials/lugano-2/wham.py
+3
-3
3 additions, 3 deletions
user-doc/tutorials/lugano-2/wham.py
with
35 additions
and
5 deletions
user-doc/tutorials/aa-lugano-2.txt
+
32
−
2
View file @
d690f0db
...
...
@@ -305,7 +305,7 @@ restraint-phi: RESTRAINT ARG=phi KAPPA=250.0 AT=$AT
PRINT STRIDE=20 ARG=phi,psi,restraint-phi.bias FILE=COLVAR$AT
EOF
gmx mdrun -plumed plumed.dat -nsteps 100000 -x traj$AT.xtc -nb cpu
gmx mdrun -plumed plumed.dat -nsteps 100000 -x traj$AT.xtc
-c cout$AT.gro
-nb cpu
done
\endverbatim
...
...
@@ -379,7 +379,37 @@ python do_fes.py allphi-w.dat 1 -3.1415 3.1415 50 2.49 fes.dat
\endverbatim
the resulting profile will be disappointing, error estimate and convergence will be discussed in the following tutorials,
but clearly simulations are too short.
but clearly simulations are too short. A more advanced approach would be to use the configurations obtained from the former
simulations to generate multiple replicas and then perform the US again for longer time and possible in parallel. The syntax
is presented in the following but the exercise is possible only if plumed is compiled with mpi
\section lugano-2-ex-5 Exercise 5: WHAM Umbrella Sampling in parallel (optional)
Here we use the "replica" syntax of plumed to write a single plumed input file for all the windows:
\plumedfile
# vim:ft=plumed
MOLINFO STRUCTURE=diala.pdb
phi: TORSION ATOMS=@phi-2
psi: TORSION ATOMS=@psi-2
#
# Impose an umbrella potential on CV 1
# with a spring constant of 250 kjoule/mol
# at fixed points along phi
#
restraint-phi: RESTRAINT ...
ARG=chi KAPPA=250.0
AT=@replicas:{
-3.00 -2.75 -2.50 -2.25
-2.00 -1.75 -1.50 -1.25
-1.00 -0.75 -0.50 -0.25
0.00 0.25 0.50 0.75
1.00 1.25 1.50 1.75
2.00 2.25 2.50 2.75 3.00
} ...
# monitor the two variables and the bias potential from the restraint
PRINT STRIDE=20 ARG=phi,psi,restraint-phi.bias FILE=COLVAR
\endplumedfile
WHAM is also natively implemented in PLUMED but requires the use of parallel processes with mpi.
...
...
This diff is collapsed.
Click to expand it.
user-doc/tutorials/lugano-2/wham.py
+
3
−
3
View file @
d690f0db
...
...
@@ -65,9 +65,9 @@ for lines in open(FILENAME_, "r").readlines():
if
(
riga
[
0
]
==
"
#!
"
):
continue
# read bias values
# umbrella-sampling typical format
if
(
len
(
riga
)
==
NBIAS_
):
i0
=
0
i1
=
NBIAS_
if
(
len
(
riga
)
==
NBIAS_
+
1
):
i0
=
1
i1
=
NBIAS_
+
1
# bias exchange typical format
elif
(
len
(
riga
)
==
2
*
NBIAS_
+
1
):
i0
=
NBIAS_
+
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment