Bioplib
Protein Structure C Library
|
Modify sequence of a PDB linked list. More...
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "SysDefs.h"
#include "MathType.h"
#include "seq.h"
#include "pdb.h"
#include "macros.h"
#include "array.h"
#include "angle.h"
#include "general.h"
Go to the source code of this file.
Macros | |
#define | RSC_MAIN |
#define | NUMAAKNOWN 20 |
#define | MAXBUFF 80 /* Used by ReadRefCoords() */ |
#define | ERROR_OK 0 |
#define | ERROR_NOMEM 1 |
#define | ERROR_ATOMS 2 |
#define | ERROR_UNKNOWNAA 3 |
Functions | |
BOOL | blRepSChain (PDB *pdb, char *sequence, char *ChiTable, char *RefCoords) |
BOOL | blRepOneSChain (PDB *pdb, char *ResSpec, char aa, char *ChiTable, char *RefCoords) |
BOOL | blRepOneSChainForce (PDB *pdb, char *ResSpec, char aa, char *ChiTable, char *RefCoords) |
void | blEndRepSChain (void) |
Modify sequence of a 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.
Takes a PDB linked list and replaces sidechains
The main entry point is RepSChain() which takes a PDB linked list, the sequence, and names of the equivalent chi table and the reference coordinate file. These files are only opened on the first call.
Definition in file rsc.c.
void blEndRepSChain | ( | void | ) |
[in,out] | *pdb | PDB linked list to modify |
[in] | *ResSpec | Residue spec for residue to replace in the format [c]nnn[i] |
[in] | aa | The 1-letter code for the new sidechain |
[in] | *ChiTable | The equivalent Chi table |
[in] | *RefCoords | The reference coordinates file |
Replace a single sidechain. Takes a PDB linked list, a residues specfication (in the form [c]nnn[i] where [c] is an optional chain name, nnn is a residue number and [i] is an optional insert code) and a 1-letter code of the required sidechain and does a simple maximum overlap replacement of the sidechain. Also requires filenames of the two datafiles.
[in,out] | *pdb | PDB linked list to modify |
[in] | *ResSpec | Residue spec for residue to replace in the format [c]nnn[i] |
[in] | aa | The 1-letter code for the new sidechain |
[in] | *ChiTable | The equivalent Chi table |
[in] | *RefCoords | The reference coordinates file |
Replace a single sidechain. Takes a PDB linked list, a residues specfication (in the form [c]nnn[i] where [c] is an optional chain name, nnn is a residue number and [i] is an optional insert code) and a 1-letter code of the required sidechain and does a simple maximum overlap replacement of the sidechain. Also requires filenames of the two datafiles.
Replaces even if the sidechain was coorect already
[in,out] | *pdb | PDB linked list to modify |
[in] | *sequence | The 1-letter code required for the structure |
[in] | *ChiTable | The equivalent Chi table |
[in] | *RefCoords | The reference coordinates file |
Replace sidechains. Takes a PDB linked list and a 1-letter code sequence and replaces the sidechains. Also requires filenames of the two datafiles. DEL residues in the pdb linked list will be skipped as will -'s in the sequence