Skip to content
Snippets Groups Projects
Commit 08f1109d authored by Massimiliano Bonomi's avatar Massimiliano Bonomi
Browse files

change PLUMED2 to PLUMED

parent 0935d483
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ The <a href="tutorial-resources/belfast-1.tar.gz" download="belfast-1.tar.gz"> t ...@@ -23,7 +23,7 @@ The <a href="tutorial-resources/belfast-1.tar.gz" download="belfast-1.tar.gz"> t
\section belfast-1-instructions Instructions \section belfast-1-instructions Instructions
PLUMED2 is a library that can be accessed by multiple codes adding a relatively simple and well documented interface. PLUMED is a library that can be accessed by multiple codes adding a relatively simple and well documented interface.
Once PLUMED is installed you can run a plumed executable that can be used for multiple purposes: Once PLUMED is installed you can run a plumed executable that can be used for multiple purposes:
\verbatim \verbatim
...@@ -87,7 +87,7 @@ should be: ...@@ -87,7 +87,7 @@ should be:
NOTE: the first line of the file COLVAR tells you what is the content of each column. NOTE: the first line of the file COLVAR tells you what is the content of each column.
In PLUMED2 the commands defined in the input files are executed in the same order in which they are written, this means that the In PLUMED the commands defined in the input files are executed in the same order in which they are written, this means that the
following input file is wrong: following input file is wrong:
\verbatim \verbatim
...@@ -184,7 +184,7 @@ Now 'ca' is not a virtual atom but a simple list of atoms. ...@@ -184,7 +184,7 @@ Now 'ca' is not a virtual atom but a simple list of atoms.
Sometimes it can be useful to calculate properties of many similar collective variables at the same time, for example one can be interested Sometimes it can be useful to calculate properties of many similar collective variables at the same time, for example one can be interested
in calculating the properties of the distances between a group of atoms, or properties linked to the distribution of the dihedral angles in calculating the properties of the distances between a group of atoms, or properties linked to the distribution of the dihedral angles
of a chain and so on. In PLUMED2 this kind of collective variables fall under the name of MULTICOLVAR (cf. \ref mcolv.) of a chain and so on. In PLUMED this kind of collective variables fall under the name of MULTICOLVAR (cf. \ref mcolv.)
Here we are going to analyze the distances between CA carbons along the chain: Here we are going to analyze the distances between CA carbons along the chain:
\verbatim \verbatim
...@@ -202,7 +202,7 @@ we have defined four collective variables that are calculated using the distance ...@@ -202,7 +202,7 @@ we have defined four collective variables that are calculated using the distance
collective variables are stored as components of the defined action 'dd': dd.mean, dd.min, dd.max, collective variables are stored as components of the defined action 'dd': dd.mean, dd.min, dd.max,
dd.moment-2. dd.moment-2.
The infrastructure of multicolvar has been used to develop many PLUMED2 collective variables as The infrastructure of multicolvar has been used to develop many PLUMED collective variables as
for example the set of Secondary Structure CVs (\ref ANTIBETARMSD, \ref PARABETARMSD and \ref ALPHARMSD). for example the set of Secondary Structure CVs (\ref ANTIBETARMSD, \ref PARABETARMSD and \ref ALPHARMSD).
\verbatim \verbatim
...@@ -246,7 +246,7 @@ system along that CV. Estimating the probability distribution of the conformatio ...@@ -246,7 +246,7 @@ system along that CV. Estimating the probability distribution of the conformatio
'sampling'. 'sampling'.
In order to estimate a probability distribution one needs to make \ref HISTOGRAM from the calculated CVs. In order to estimate a probability distribution one needs to make \ref HISTOGRAM from the calculated CVs.
PLUMED2 includes the possibility of constructing a histogram from data both on the fly as well as a posteriori as we PLUMED includes the possibility of constructing a histogram from data both on the fly as well as a posteriori as we
are going to do now. are going to do now.
\verbatim \verbatim
......
...@@ -27,24 +27,24 @@ The <a href="tutorial-resources/marvel-1.tar.gz" download="marvel-1.tar.gz"> tar ...@@ -27,24 +27,24 @@ The <a href="tutorial-resources/marvel-1.tar.gz" download="marvel-1.tar.gz"> tar
\section marvel-1-instructions Instructions \section marvel-1-instructions Instructions
PLUMED2 is a library that can be incorporated into many MD codes by adding a relatively simple and well documented interface. PLUMED is a library that can be incorporated into many MD codes by adding a relatively simple and well documented interface.
Once it is incorporated you can use PLUMED2 to perform a variety of different analyzes on the fly and to bias Once it is incorporated you can use PLUMED to perform a variety of different analyzes on the fly and to bias
the sampling in the molecular dynamics engine. PLUMED2 can also, however, be used as a standalone code for analyzing trajectories. the sampling in the molecular dynamics engine. PLUMED can also, however, be used as a standalone code for analyzing trajectories.
If you are using the code in this way you can, once PLUMED2 is compiled, run the plumed executable by issuing the command: If you are using the code in this way you can, once PLUMED is compiled, run the plumed executable by issuing the command:
\verbatim \verbatim
plumed <instructions> plumed <instructions>
\endverbatim \endverbatim
Let's start by getting a feel for the range of calculations that we can use PLUMED2 to perform. Issue the following command now: Let's start by getting a feel for the range of calculations that we can use PLUMED to perform. Issue the following command now:
\verbatim \verbatim
plumed --help plumed --help
\endverbatim \endverbatim
What is output when this command is run is a list of the tasks you can use PLUMED2 to perform. There are commands that allow you What is output when this command is run is a list of the tasks you can use PLUMED to perform. There are commands that allow you
to patch an MD code, commands that allow you to run molecular dynamics and commands that allow you to build the manual. In this to patch an MD code, commands that allow you to run molecular dynamics and commands that allow you to build the manual. In this
tutorial we will mostly be using PLUMED2 to analyze trajectories, however. As such most of the calculations we will perform will be performed tutorial we will mostly be using PLUMED to analyze trajectories, however. As such most of the calculations we will perform will be performed
using the driver tool. Let's look at the options we can issue to plumed driver by issuing the following command: using the driver tool. Let's look at the options we can issue to plumed driver by issuing the following command:
\verbatim \verbatim
...@@ -53,10 +53,10 @@ plumed driver --help ...@@ -53,10 +53,10 @@ plumed driver --help
As you can see we can do a number of things with plumed driver. For all of these options, however, we are going to need to write As you can see we can do a number of things with plumed driver. For all of these options, however, we are going to need to write
a PLUMED input file. Before we get on to writing input files for PLUMED there is information \ref codes here which provides details a PLUMED input file. Before we get on to writing input files for PLUMED there is information \ref codes here which provides details
on what the other PLUMED2 tools do and instructions for how to interface PLUMED with an MD code. You may like to look at this information on what the other PLUMED tools do and instructions for how to interface PLUMED with an MD code. You may like to look at this information
now or you might prefer to return after you have finished the exercises here. now or you might prefer to return after you have finished the exercises here.
\subsection marvel-1-units PLUMED2's internal units \subsection marvel-1-units PLUMED's internal units
By default the PLUMED inputs and outputs quantities in the following units: By default the PLUMED inputs and outputs quantities in the following units:
...@@ -161,7 +161,7 @@ The fact that this quantity is stored in a variable is important as it ensures t ...@@ -161,7 +161,7 @@ The fact that this quantity is stored in a variable is important as it ensures t
later in the input file. So in the second line above we print a quantity. What quantity should be printed? e2edist - the distance between atom 2 and atom 253. Easy! later in the input file. So in the second line above we print a quantity. What quantity should be printed? e2edist - the distance between atom 2 and atom 253. Easy!
So why does the second input, that has the order of these two commands reversed, not work? Well the variable e2edist has to be defined before it can be used So why does the second input, that has the order of these two commands reversed, not work? Well the variable e2edist has to be defined before it can be used
because in PLUMED2 the commands are executed in the same order as they are defined in the input file. We thus cannot do anything with e2edist (i.e. \ref PRINT it) because in PLUMED the commands are executed in the same order as they are defined in the input file. We thus cannot do anything with e2edist (i.e. \ref PRINT it)
without first explaining how it is calculated. without first explaining how it is calculated.
This input demonstrates the key idea of the PLUMED syntax. Quantities calculated by commands such as \ref DISTANCE are given labels (e2edist) so that This input demonstrates the key idea of the PLUMED syntax. Quantities calculated by commands such as \ref DISTANCE are given labels (e2edist) so that
...@@ -354,7 +354,7 @@ ENDPLUMED ...@@ -354,7 +354,7 @@ ENDPLUMED
Try to copy this input now and to use it to analyze the trajectory you downloaded at the start of the exercise using the commands Try to copy this input now and to use it to analyze the trajectory you downloaded at the start of the exercise using the commands
described in section \ref marvel-1-introinput. described in section \ref marvel-1-introinput.
Multicolvar is not just for \ref DISTANCES though. The infrastructure of multicolvar has been used to develop many PLUMED2 collective variables. Multicolvar is not just for \ref DISTANCES though. The infrastructure of multicolvar has been used to develop many PLUMED collective variables.
One interesting example is the set of Secondary Structure CVs (\ref ANTIBETARMSD, \ref PARABETARMSD and \ref ALPHARMSD). You can use the input One interesting example is the set of Secondary Structure CVs (\ref ANTIBETARMSD, \ref PARABETARMSD and \ref ALPHARMSD). You can use the input
below to calculate the degree of anti-beta secondary structure in each of the trajectory frames by copying this input to a PLUMED input file below to calculate the degree of anti-beta secondary structure in each of the trajectory frames by copying this input to a PLUMED input file
and by exploiting the commands to run driver that were described in section \ref marvel-1-introinput. and by exploiting the commands to run driver that were described in section \ref marvel-1-introinput.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment