Bioplib
Protein Structure C Library
|
PDB linked list manipulation. More...
#include <math.h>
#include <stdlib.h>
#include "MathType.h"
#include "SysDefs.h"
#include "pdb.h"
#include "macros.h"
#include "general.h"
Go to the source code of this file.
Functions | |
PDB * | blExtractZonePDBAsCopy (PDB *inpdb, char *chain1, int resnum1, char *insert1, char *chain2, int resnum2, char *insert2) |
PDB * | blExtractZoneSpecPDBAsCopy (PDB *pdb, char *firstRes, char *lastRes) |
PDB * | blExtractNotZonePDBAsCopy (PDB *inpdb, char *chain1, int resnum1, char *insert1, char *chain2, int resnum2, char *insert2) |
PDB * | blExtractNotZoneSpecPDBAsCopy (PDB *pdb, char *firstRes, char *lastRes) |
PDB linked list manipulation.
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 ExtractZonePDB.c.
PDB* blExtractNotZonePDBAsCopy | ( | PDB * | inpdb, |
char * | chain1, | ||
int | resnum1, | ||
char * | insert1, | ||
char * | chain2, | ||
int | resnum2, | ||
char * | insert2 | ||
) |
[in] | *inpdb | Input PDB linked list |
[in] | *chain1 | Start residue chain name |
[in] | resnum1 | Start residue number |
[in] | *insert1 | Start residue insert code |
[in] | *chain2 | End residue chain name |
[in] | resnum2 | End residue number |
[in] | *insert2 | End residue insert code |
Reduces a PDB linked list to those residues outside a specified zone. Note that the PDB linked list is duplicated before extraction so pointers do not match those in the input PDB linked list. Excess records in the new PDB linked list are freed.
Definition at line 341 of file ExtractZonePDB.c.
[in] | pdb | PDB linked list |
[in] | firstRes | Residue spec ([chain]resnum[insert]) |
[in] | lastRes | Residue spec ([chain]resnum[insert]) |
Extracts atoms outside a zone from a PDB linked list, making a copy of the original list.
Definition at line 417 of file ExtractZonePDB.c.
PDB* blExtractZonePDBAsCopy | ( | PDB * | inpdb, |
char * | chain1, | ||
int | resnum1, | ||
char * | insert1, | ||
char * | chain2, | ||
int | resnum2, | ||
char * | insert2 | ||
) |
[in] | *inpdb | Input PDB linked list |
[in] | *chain1 | Start residue chain name |
[in] | resnum1 | Start residue number |
[in] | *insert1 | Start residue insert code |
[in] | *chain2 | End residue chain name |
[in] | resnum2 | End residue number |
[in] | *insert2 | End residue insert code |
Reduces a PDB linked list to those residues within a specified zone. Note that the PDB linked list is duplicated before extraction so pointers do not match those in the input PDB linked list. Excess records in the new PDB linked list are freed.
17.02.16 Added fix on check for exact match - prev wasn't being set correctly if the match was to the first residue in the file
TODO - This doesn't deal with CONECT information properly! ***
Definition at line 158 of file ExtractZonePDB.c.
[in] | pdb | PDB linked list |
[in] | firstRes | Residue spec ([chain]resnum[insert]) |
[in] | lastRes | Residue spec ([chain]resnum[insert]) |
Extracts a zone from a PDB linked list, making a copy of the original list.
Definition at line 300 of file ExtractZonePDB.c.