All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MolInfo.cpp
Go to the documentation of this file.
1 /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2  Copyright (c) 2013 The plumed team
3  (see the PEOPLE file at the root of the distribution for a list of names)
4 
5  See http://www.plumed-code.org for more information.
6 
7  This file is part of plumed, version 2.0.
8 
9  plumed is free software: you can redistribute it and/or modify
10  it under the terms of the GNU Lesser General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  plumed is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public License
20  along with plumed. If not, see <http://www.gnu.org/licenses/>.
21 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
22 #include "core/ActionRegister.h"
23 #include "core/SetupMolInfo.h"
24 
25 namespace PLMD{
26 namespace setup{
27 
28 //+PLUMEDOC TOPOLOGY MOLINFO
29 /*
30 This command is used to provide information on the molecules that are present in your system.
31 
32 The information on the molecules in your system can either be provided in the form of a pdb file
33 or as a set of lists of atoms that describe the various chains in your system. If a pdb file
34 is used plumed the MOLINFO command will endeavor to recognize the various chains and residues that
35 make up the molecules in your system using the chainIDs and resnumbers from the pdb file. You can
36 then use this information in later commands to specify atom lists in terms residues. For example
37 using this command you can find the backbone atoms in your structure automatically.
38 
39 Please be aware that the pdb parser in plumed is far from perfect. You should thus check the log file
40 and examine what plumed is actually doing whenenver you use the MOLINFO action.
41 
42 \bug At the moment all atoms named HA1 are treated as if they are CB atoms. This makes it possible to deal
43 with GLY residues in colvars like \ref ALPHARMSD.
44 
45 \par Examples
46 
47 In the following example the MOLINFO command is used to provide the information on which atoms
48 are in the backbone of a protein to the ALPHARMSD CV.
49 
50 \verbatim
51 MOLINFO STRUCTURE=reference.pdb
52 ALPHARMSD BACKBONE=all TYPE=DRMSD LESS_THAN={RATIONAL R_0=0.08 NN=8 MM=12} LABEL=a
53 \endverbatim
54 (see also \ref ALPHARMSD)
55 
56 */
57 //+ENDPLUMEDOC
58 
59 
60 /*
61 This action is defined in core/ as it is used by other actions.
62 Anyway, it is registered here, so that excluding this module from
63 compilation will exclude it from plumed.
64 */
65 
67 
68 PLUMED_REGISTER_ACTION(MolInfo,"MOLINFO")
69 
70 }
71 }
PLMD::SetupMolInfo MolInfo
Definition: MolInfo.cpp:66