ExtractZonePDB.c



PDB *ExtractZonePDB(PDB *inpdb, char *chain1, int resnum1, char *insert1, char *chain2, int resnum2, char *insert2)

Inputs

PDB *inpdb Input PDB linked list
char *chain1 Start residue chain name
int resnum1 Start residue number
char *insert1 Start residue insert code
char *chain2 End residue chain name
int resnum2 End residue number
char *insert2 End residue insert code

Returns

PDB * PDB linked list of the region of interest.

Description

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.

Created: 10.01.96 Last Modified: 10.01.96