Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
cssr.h
Go to the documentation of this file.
1 /************************************************************************/
2 /**
3 
4  \file cssr.h
5 
6  \version V1.3
7  \date 14.08.14
8  \brief Defines for CSSR handling
9 
10  \copyright SciTech Software 1991-2014
11  \author Andrew C. R. Martin
12  \par
13  Institute of Structural & Molecular Biology,
14  University College London,
15  Gower Street,
16  London.
17  WC1E 6BT.
18  \par
19  andrew@bioinf.org.uk
20  andrew.martin@ucl.ac.uk
21 
22 **************************************************************************
23 
24  This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
25  according to the conditions laid out in the accompanying file
26  COPYING.DOC.
27 
28  The code may be modified as required, but any modifications must be
29  documented so that the person responsible can be identified.
30 
31  The code may not be sold commercially or included as part of a
32  commercial product except as described in the file COPYING.DOC.
33 
34 **************************************************************************
35 
36  Description:
37  ============
38 
39  Structure definitions for ReadCSSR()
40 
41 ****************************************************************************
42 
43  Usage:
44  ======
45 
46 ****************************************************************************
47 
48  Revision History:
49  =================
50 - V1.1 07.07.14 Use bl prefix for functions By: CTP
51 - V1.2 31.07.14 Updated deprecation: Removed deprecated.h and added
52  prototypes for renamed functions. By: CTP
53 - V1.3 14.08.14 Moved deprecated function prototypes to deprecated.h
54  By: CTP
55 
56 ***************************************************************************/
57 #ifndef _CSSR_H
58 #define _CSSR_H
59 
60 #include "MathType.h"
61 #include "pdb.h"
62 
63 struct cssr_entry
64 {
66  REAL x,y,z;
67  struct cssr_entry *next;
68  int atnum;
69  int group;
70  int link[8];
71  char atnam[8];
72 } ;
73 
74 typedef struct cssr_entry CSSR;
75 
76 #define CLEAR_CSSR(p) p->atnum=0; \
77  strcpy(p->atnam," "); \
78  p->group=0; \
79  p->x = 0.0; p->y = 0.0; p->z = 0.0; \
80  p->charge = 0.0; \
81  p->link[0] = p->link[1] = p->link[2] = p->link[3] = 0; \
82  p->link[4] = p->link[5] = p->link[6] = p->link[7] = 0; \
83  p->next = NULL
84 
85 /************************************************************************/
86 /* Prototypes
87 */
88 CSSR *blReadCSSR(FILE *fp, int *natom, char *name, char *title);
89 PDB *blReadCSSRasPDB(FILE *fp, int *natom);
90 void blNormaliseCSSR(CSSR *cssr, REAL cell[3], REAL alpha, REAL beta,
91  REAL gamma);
92 void blNormalisePDB(PDB *pdb, REAL cell[3], REAL alpha, REAL beta,
93  REAL gamma);
94 void blOrtho(REAL cell[3], REAL alpha, REAL beta, REAL gamma,
95  REAL amatrx[3][3], int isw, int ncode);
96 /* void blPadterm(char *string, int len);*/ /* defined in general.h */
97 void blWriteCSSR(FILE *fp, CSSR *cssr, char *name, char *title);
98 
99 /************************************************************************/
100 /* Include deprecated functions */
101 #define _CSSR_H_DEPRECATED
102 #include "deprecated.h"
103 /************************************************************************/
104 
105 
106 #endif
Include file for PDB routines.
Definition: pdb.h:298
void blOrtho(REAL cell[3], REAL alpha, REAL beta, REAL gamma, REAL amatrx[3][3], int isw, int ncode)
Definition: ReadCSSR.c:643
Redirect calls to deprecated functions.
char atnam[8]
Definition: cssr.h:71
REAL x
Definition: cssr.h:66
CSSR * blReadCSSR(FILE *fp, int *natom, char *name, char *title)
Definition: ReadCSSR.c:224
int link[8]
Definition: cssr.h:70
double REAL
Definition: MathType.h:67
Definition: cssr.h:63
int atnum
Definition: cssr.h:68
int group
Definition: cssr.h:69
REAL z
Definition: cssr.h:66
void blWriteCSSR(FILE *fp, CSSR *cssr, char *name, char *title)
Definition: WrtCSSR.c:130
struct cssr_entry * next
Definition: cssr.h:67
REAL y
Definition: cssr.h:66
REAL charge
Definition: cssr.h:65
PDB * blReadCSSRasPDB(FILE *fp, int *natom)
Definition: ReadCSSR.c:368
void blNormalisePDB(PDB *pdb, REAL cell[3], REAL alpha, REAL beta, REAL gamma)
Definition: ReadCSSR.c:574
void blNormaliseCSSR(CSSR *cssr, REAL cell[3], REAL alpha, REAL beta, REAL gamma)
Definition: ReadCSSR.c:513
Type definitions for maths.