2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
5 * Copyright (c) 2001-2004, The GROMACS development team.
6 * Copyright (c) 2013,2014,2015,2016,2018 by the GROMACS development team.
7 * Copyright (c) 2019,2020, by the GROMACS development team, led by
8 * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
9 * and including many others, as listed in the AUTHORS file in the
10 * top-level source directory and at http://www.gromacs.org.
12 * GROMACS is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public License
14 * as published by the Free Software Foundation; either version 2.1
15 * of the License, or (at your option) any later version.
17 * GROMACS is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with GROMACS; if not, see
24 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
25 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 * If you want to redistribute modifications to GROMACS, please
28 * consider that scientific software is very special. Version
29 * control is crucial - bugs must be traceable. We will be happy to
30 * consider code for inclusion in the official distribution, but
31 * derived work must not be called official GROMACS. Details are found
32 * in the README & COPYING files - if they are missing, get the
33 * official version at http://www.gromacs.org.
35 * To help us fund GROMACS development, we humbly ask that you cite
36 * the research papers on the package. Check out http://www.gromacs.org.
44 #include "gromacs/math/vectypes.h"
45 #include "gromacs/topology/idef.h"
46 #include "gromacs/utility/basedefinitions.h"
47 #include "gromacs/utility/real.h"
52 #define PHI_AHX (-55.0)
53 #define PSI_AHX (-45.0)
54 /* Canonical values of the helix phi/psi angles */
57 /*! \internal \brief Struct containing properties of a residue in a protein backbone. */
60 //! Protein backbone phi angle.
62 //! Protein backbone psi angle.
64 //! RMS distance of phi and psi angles from ideal helix
66 //! Estimated J-coupling value
68 //! Value of 3 turn helix?
70 //! Value of 4 turn helix?
74 //! Average of RMS for analysis.
76 //! If the structure is helical.
78 //! Number of elliptical elements
80 //! Average RMS Deviation when atoms of this residue are fitted to ideal helix
82 //! Residue index for output, relative to gmx_helix -r0 value
84 //! Index for previous carbon.
86 //! Index for backbone nitrogen.
88 //! Index for backbone NH hydrogen.
90 //! Index for alpha carbon.
92 //! Index for carbonyl carbon.
94 //! Index for carbonyl oxygen.
96 //! Index for next backbone nitrogen.
98 //! Name for this residue.
124 extern real
ahx_len(int gnx
, const int index
[], rvec x
[]);
125 /* Assume we have a list of Calpha atoms only! */
127 extern real
ellipticity(int nres
, t_bb bb
[]);
129 extern real
radius(FILE* fp
, int nca
, const int ca_index
[], rvec x
[]);
130 /* Assume we have calphas */
132 extern real
twist(int nca
, const int caindex
[], rvec x
[]);
133 /* Calculate the twist of the helix */
135 extern real
pprms(FILE* fp
, int nbb
, t_bb bb
[]);
136 /* Calculate the average RMS from canonical phi/psi values
137 * and the distance per residue
140 extern real
ca_phi(int gnx
, const int index
[], rvec x
[]);
141 /* Assume we have a list of Calpha atoms only! */
143 extern real
dip(int nbb
, const int bbind
[], const rvec x
[], const t_atom atom
[]);
145 extern real
rise(int gnx
, const int index
[], rvec x
[]);
146 /* Assume we have a list of Calpha atoms only! */
149 av_hblen(FILE* fp3
, FILE* fp3a
, FILE* fp4
, FILE* fp4a
, FILE* fp5
, FILE* fp5a
, real t
, int nres
, t_bb bb
[]);
151 extern void av_phipsi(FILE* fphi
, FILE* fpsi
, FILE* fphi2
, FILE* fpsi2
, real t
, int nres
, t_bb bb
[]);
153 /*! \brief Allocate and fill an array of information about residues in a protein backbone.
155 * The user is propted for an index group of protein residues (little
156 * error checking occurs). For the number of residues found in the
157 * selected group, nbb entries are made in the returned array. Each
158 * entry contains the atom indices of the N, H, CA, C and O atoms (for
159 * PRO, H means CD), as well as the C of the previous residue and the
160 * N of the next (-1 if not found).
162 * In the output array, the first residue will be numbered starting
164 extern t_bb
* mkbbind(const char* fn
,
174 extern void do_start_end(int nres
,
184 extern void calc_hxprops(int nres
, t_bb bb
[], const rvec x
[]);
186 extern void pr_bb(FILE* fp
, int nres
, t_bb bb
[]);