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
d141e190
There was an error fetching the commit references. Please try again later.
Commit
d141e190
authored
5 years ago
by
Massimiliano Bonomi
Browse files
Options
Downloads
Patches
Plain Diff
final exercise for hands-on I
parent
2bd4a651
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
user-doc/tutorials/aa-lugano-1.txt
+41
-0
41 additions, 0 deletions
user-doc/tutorials/aa-lugano-1.txt
with
41 additions
and
0 deletions
user-doc/tutorials/aa-lugano-1.txt
+
41
−
0
View file @
d141e190
...
@@ -373,6 +373,47 @@ What is happening to the protein during the course of the simulation? Are the tw
...
@@ -373,6 +373,47 @@ What is happening to the protein during the course of the simulation? Are the tw
\subsection lugano-1-ex-6 Exercise 6: Creating your own CV directly in the PLUMED input file
\subsection lugano-1-ex-6 Exercise 6: Creating your own CV directly in the PLUMED input file
In PLUMED, you can define your own CV directly in the input file by writing it as a function
of existing CVs using the \ref CUSTOM action. PLUMED will then automatically calculate the derivatives with the respect to the atoms positions.
Let's look at the following example.
\plumedfile
dAB: DISTANCE ATOMS=10,12
dAC: DISTANCE ATOMS=10,15
diff: CUSTOM ARG=dAB,dAC FUNC=y-x PERIODIC=NO
\endplumedfile
In this example, a custom CV is defined as the difference of two distances between pairs of atoms.
Please complete the following input file to calculate two new CVs from those defined in \ref lugano-1-ex-5:
- the average between \ref RMSD and \ref DRMSD, calculated on all the CA atoms of GB1 (easy)
- the minimum value between \ref RMSD and \ref DRMSD (a bit more difficult).
To define this function, you can creatively take inspiration from the path CV `s` (see \ref PATH).
\plumedfile
# RMSD on CA atoms
rmsd: RMSD REFERENCE=__FILL__
# DRMSD on CA atoms
drmsd: DRMSD REFERENCE=__FILL__
# average between RMSD and DRMSD
ave: CUSTOM ARG=rmsd,drmsd FUNC=__FILL__ PERIODIC=NO
# minimum value between RMSD and DRMSD
min: CUSTOM ARG=rmsd,drmsd FUNC=__FILL__ PERIODIC=NO
# print all 4 CVs to file
PRINT ARG=__FILL__ STRIDE=1 FILE=COLVAR
\endplumedfile
Once your `plumed.dat` file is complete, you can use it with the following command
\verbatim
> plumed driver --plumed plumed.dat --mf_xtc traj-broken.xtc
\endverbatim
and then check that the calculation of the new CVs is correct by plotting the resulting `COLVAR` file with `gnuplot`.
*/
*/
...
...
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