Bioplib
Protein Structure C Library
|
Build connectivity information in PDB linked list. More...
Go to the source code of this file.
Data Structures | |
struct | _covalentradii |
Functions | |
BOOL | blAddConect (PDB *p, PDB *q) |
BOOL | blAddOneDirectionConect (PDB *p, PDB *q) |
BOOL | blBuildConectData (PDB *pdb, REAL tol) |
BOOL | blIsBonded (PDB *p, PDB *q, REAL tol) |
BOOL | blAreResiduesBonded (PDB *pdb, char *chain1, int resnum1, char *insert1, char *chain2, int resnum2, char *insert2, REAL tol) |
BOOL | blAreResiduePointersBonded (PDB *res1, PDB *res2, REAL tol) |
BOOL | blDeleteAConect (PDB *p, PDB *q) |
BOOL | blDeleteAConectByNum (PDB *pdb, int cNum) |
void | blDeleteAtomConects (PDB *pdb) |
BOOL | blCopyConects (PDB *out, PDB *in) |
BOOL | blIsConected (PDB *p, PDB *q) |
Build connectivity information in PDB linked list.
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.
Definition in file BuildConect.c.
[in,out] | *p | First PDB item |
[in,out] | *q | Second PDB item |
Adds a conect bteween p and q (i.e. in both directions) Fails if there are too many CONECTs
Definition at line 173 of file BuildConect.c.
[in,out] | *p | First PDB item |
[in,out] | *q | Second PDB item |
Adds a conect from p to q (i.e. one direction only) Fails if there are too many CONECTs
Definition at line 200 of file BuildConect.c.
[in] | *res1 | Start of first residue |
[in] | *res2 | Start of second residue |
[in] | tol | Tolerance for distances |
Tests whether two residue are bonded using pointers to start of residues
Definition at line 394 of file BuildConect.c.
BOOL blAreResiduesBonded | ( | PDB * | pdb, |
char * | chain1, | ||
int | resnum1, | ||
char * | insert1, | ||
char * | chain2, | ||
int | resnum2, | ||
char * | insert2, | ||
REAL | tol | ||
) |
[in] | *pdb | PDB linked list |
[in] | *chain1 | First chain label |
[in] | resnum1 | First residue number |
[in] | *insert1 | First insert code |
[in] | *chain2 | Second chain label |
[in] | resnum2 | Second residue number |
[in] | *insert2 | Second insert code |
[in] | tol | Tolerance for distances |
Tests whether two residue are bonded
Definition at line 360 of file BuildConect.c.
[in,out] | *pdb | PDB linked list |
[in] | tol | Tolerence for distance between atoms |
Deletes all current connectivity data and rebuilds it using covalent radii data. A return of FALSE indicates that there were too many connections for an atom. If this happens, MAXCONECT needs to be increased in pdb.h
Definition at line 251 of file BuildConect.c.
[out] | *out | PDB linked list containing new CONECT records |
[in] | *in | PDB linked list containing original CONECT records |
Updates the CONECT information in the out PDB linked list based on those in the in linked list. This is used when we have copied a PDB linked list (e.g. in the bl...AsCopy() routines) to make sure the CONECT data points to records in the new linked list instead of the old one.
Definition at line 574 of file BuildConect.c.
[in] | *p | First PDB pointer |
[in] | *q | Second PDB pointer |
Deletes the CONECT information between the two specified atoms
Definition at line 458 of file BuildConect.c.
[in] | *pdb | PDB pointer |
[in] | cNum | Index into the ->conect[] array for the CONECT to be deleted |
Deletes the link for the specified CONECT. Other CONECTs are shuffled down.
Definition at line 500 of file BuildConect.c.
void blDeleteAtomConects | ( | PDB * | pdb | ) |
[in] | *pdb | PDB pointer |
Deletes all CONECT information associated with a PDB pointer. Also deletes the relevant CONECTs (back to this atom) from the partner atoms
Definition at line 536 of file BuildConect.c.
[in] | *p | First PDB atom |
[in] | *q | Second PDB atom |
[in] | tol | Telerance for separation between atoms |
Test whether two atoms are bonded
Definition at line 326 of file BuildConect.c.
[in] | *p | First atom |
[in] | *q | Second atom |
Tests whether there is a link between the specified atoms in the CONECT list
Definition at line 629 of file BuildConect.c.