Bioplib
Protein Structure C Library
|
Functions to modify atom order in PDB linked list. More...
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "MathType.h"
#include "macros.h"
#include "pdb.h"
Go to the source code of this file.
Functions | |
PDB * | blFixOrderPDB (PDB *pdb, BOOL Pad, BOOL Renum) |
PDB * | blShuffleResPDB (PDB *start, PDB *end, BOOL Pad) |
BOOL | blGetAtomTypes (char *resnam, char **AtomTypes) |
PDB * | blShuffleBB (PDB *pdb) |
Functions to modify atom order 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 OrderPDB.c.
[in] | *pdb | PDB linked list to fix atom order |
[in] | Pad | TRUE: Create dummy coordinate atoms for any missing atoms in standard residues |
[in] | Renum | TRUE: Renumber the atoms |
Runs through a PDB linked list and corrects the atom order to match the N,CA,C,O,s/c standard. Only standard amino acids are processed. The input linked list is modified (i.e. a new list is not built), but the return value from the routine should be used for the corrected list rather than the input PDB pointer, since the start of the list may have changed. i.e. the routine should be called with the form:
pdb = FixOrderPDB(pdb,TRUE,TRUE);
Definition at line 169 of file OrderPDB.c.
BOOL blGetAtomTypes | ( | char * | resnam, |
char ** | AtomTypes | ||
) |
[in] | *resnam | Residue name for which to search |
[out] | **AtomTypes | Array of atom names contained in the residue |
Fill in atom types for a given residue. AtomTypes must be pre-allocated and must be set up as an array of character pointers using Array2D() (or equivalent) rather than being created as a simple char types[][] - THIS WILL NOT WORK!
Definition at line 349 of file OrderPDB.c.
[in] | *pdb | Input PDB linked list |
Shuffles the PDB list to match the standard of N,CA,C,O,CB,other. Basically designed to be used with backbones only since the sidechain order is not modified. Returns the start of the shuffled PDB linked list.
Definition at line 389 of file OrderPDB.c.
[in] | *start | Start of residue to be shuffled |
[in] | *end | Start of next residue in linked list (NULL for last residue) |
[in] | Pad | TRUE: Create dummy records for missing atoms |
Shuffle atoms within a residue into the standard order. Returns a pointer to the new first atom in the residue. Atoms not in the known list are discarded. If we fail to allocate memory for extra atom records, no action is taken.
Definition at line 228 of file OrderPDB.c.