Bioplib
Protein Structure C Library
|
Defines for CSSR handling. More...
Go to the source code of this file.
Data Structures | |
struct | cssr_entry |
Macros | |
#define | CLEAR_CSSR(p) |
#define | _CSSR_H_DEPRECATED |
Typedefs | |
typedef struct cssr_entry | CSSR |
Functions | |
CSSR * | blReadCSSR (FILE *fp, int *natom, char *name, char *title) |
PDB * | blReadCSSRasPDB (FILE *fp, int *natom) |
void | blNormaliseCSSR (CSSR *cssr, REAL cell[3], REAL alpha, REAL beta, REAL gamma) |
void | blNormalisePDB (PDB *pdb, REAL cell[3], REAL alpha, REAL beta, REAL gamma) |
void | blOrtho (REAL cell[3], REAL alpha, REAL beta, REAL gamma, REAL amatrx[3][3], int isw, int ncode) |
void | blWriteCSSR (FILE *fp, CSSR *cssr, char *name, char *title) |
Defines for CSSR handling.
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
Structure definitions for ReadCSSR()
Definition in file cssr.h.
#define CLEAR_CSSR | ( | p | ) |
typedef struct cssr_entry CSSR |
[in,out] | *cssr | Pointer to CSSR linked list |
[in] | cell | Unit cell dimensions |
[in] | alpha | Unit cell angles |
[in] | beta | |
[in] | gamma | Convert a CSSR linked list in fractional coordinates to orthonormal |
Definition at line 513 of file ReadCSSR.c.
[in,out] | *pdb | Pointer to PDB linked list |
[in] | cell | Unit cell dimensions |
[in] | alpha | Unit cell angles |
[in] | beta | |
[in] | gamma | Convert a PDB linked list in fractional cooridinates to orthonormal |
Definition at line 574 of file ReadCSSR.c.
void blOrtho | ( | REAL | cell[3], |
REAL | alpha, | ||
REAL | beta, | ||
REAL | gamma, | ||
REAL | amatrx[3][3], | ||
int | isw, | ||
int | ncode | ||
) |
[in] | cell | Unit cell dimensions |
[in] | alpha | Unit cell angles |
[in] | beta | |
[in] | gamma | |
[out] | amatrx | Returned conversion matrix |
[in] | isw | 0: Frac–>Ortho, 1: Ortho–>Frac |
[in] | ncode | Orientation of reciprocal axes wrt true axes. |
ncode Orientation of reciprocal axes wrt true axes. 1: a || xo, c* || zo 2: b || xo, a* || zo 3: c || xo, b* || zo 4: hex a & b || xo, c* || zo 5: a* || xo, c || zo
Function to calculate a matrix which will convert between fractional and orthonormal coordinates given unit cell dimensions and angles. ncode defines the orientation of the reciprocal axes wrt the real axes.
See Rollett `Computing Methods in Crystallography' p.23
Definition at line 643 of file ReadCSSR.c.
CSSR* blReadCSSR | ( | FILE * | fp, |
int * | natom, | ||
char * | name, | ||
char * | title | ||
) |
[in] | *fp | A pointer to type FILE in which the CSSR file is stored. |
[out] | *natom | Number of atoms read. |
[out] | *name | The molecule's name. |
[out] | *title | Title on the molecule. |
Read a CSSR file into a CSSR linked list
Definition at line 224 of file ReadCSSR.c.
PDB* blReadCSSRasPDB | ( | FILE * | fp, |
int * | natom | ||
) |
[in] | *fp | A pointer to type FILE in which the CSSR file is stored. |
[out] | *natom | Number of atoms read. |
Read a CSSR file into a PDB linked list
Definition at line 368 of file ReadCSSR.c.
void blWriteCSSR | ( | FILE * | fp, |
CSSR * | cssr, | ||
char * | name, | ||
char * | title | ||
) |
[in] | *fp | A pointer to type FILE in which the CSSR file is stored. |
[in] | *cssr | A pointer to the first allocated item of the CSSR linked list |
[in] | *name | The molecule's name. |
[in] | *title | Title on the molecule. |
Write a CSSR file from a CSSR linked list.