The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
ExtractZonePDB.c File Reference

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

PDBblExtractZonePDBAsCopy (PDB *inpdb, char *chain1, int resnum1, char *insert1, char *chain2, int resnum2, char *insert2)
 
PDBblExtractZoneSpecPDBAsCopy (PDB *pdb, char *firstRes, char *lastRes)
 
PDBblExtractNotZonePDBAsCopy (PDB *inpdb, char *chain1, int resnum1, char *insert1, char *chain2, int resnum2, char *insert2)
 
PDBblExtractNotZoneSpecPDBAsCopy (PDB *pdb, char *firstRes, char *lastRes)
 

Detailed Description

PDB linked list manipulation.

Version
V1.19
Date
17.02.16
Author
Dr. Andrew C. R. Martin
Institute of Structural & Molecular Biology, University College London, Gower Street, London. WC1E 6BT.
andre.nosp@m.w@bi.nosp@m.oinf..nosp@m.org..nosp@m.uk andre.nosp@m.w.ma.nosp@m.rtin@.nosp@m.ucl..nosp@m.ac.uk

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.

Description:

Usage:

Revision History:

Definition in file ExtractZonePDB.c.

Function Documentation

PDB* blExtractNotZonePDBAsCopy ( PDB inpdb,
char *  chain1,
int  resnum1,
char *  insert1,
char *  chain2,
int  resnum2,
char *  insert2 
)
Parameters
[in]*inpdbInput PDB linked list
[in]*chain1Start residue chain name
[in]resnum1Start residue number
[in]*insert1Start residue insert code
[in]*chain2End residue chain name
[in]resnum2End residue number
[in]*insert2End residue insert code
Returns
PDB linked list of the region of interest.

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.

  • 07.10.15 Original By: ACRM
  • 08.10.15 Fixed return(FALSE) to return(NULL)

Definition at line 341 of file ExtractZonePDB.c.

PDB* blExtractNotZoneSpecPDBAsCopy ( PDB pdb,
char *  firstRes,
char *  lastRes 
)
Parameters
[in]pdbPDB linked list
[in]firstResResidue spec ([chain]resnum[insert])
[in]lastResResidue spec ([chain]resnum[insert])

Extracts atoms outside a zone from a PDB linked list, making a copy of the original list.

  • 07.10.15 Original By: ACRM

Definition at line 417 of file ExtractZonePDB.c.

PDB* blExtractZonePDBAsCopy ( PDB inpdb,
char *  chain1,
int  resnum1,
char *  insert1,
char *  chain2,
int  resnum2,
char *  insert2 
)
Parameters
[in]*inpdbInput PDB linked list
[in]*chain1Start residue chain name
[in]resnum1Start residue number
[in]*insert1Start residue insert code
[in]*chain2End residue chain name
[in]resnum2End residue number
[in]*insert2End residue insert code
Returns
PDB linked list of the region of interest.

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.

  • 10.01.96 Original By: ACRM
  • 22.03.06 Modified to allow non-exact zones. i.e. the extracted zone will be the widest subset of the specified zone. So, if you specifiy 30-35Z and the PDB file only has 30-35B then that will be extracted.
  • 29.10.10 Fixed extraction where end of zone matched last residue in a chain
  • 04.02.14 Use CHAINMATCH By: CTP
  • 07.07.14 Use bl prefix for functions By: CTP
  • 19.08.14 Renamed function to blExtractZonePDBAsCopy() By: CTP
  • 08.12.15 Now checks for an exact match first to deal with 6INS that uses the insert code for something different! By: ACRM
  • 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.

PDB* blExtractZoneSpecPDBAsCopy ( PDB pdb,
char *  firstRes,
char *  lastRes 
)
Parameters
[in]pdbPDB linked list
[in]firstResResidue spec ([chain]resnum[insert])
[in]lastResResidue spec ([chain]resnum[insert])

Extracts a zone from a PDB linked list, making a copy of the original list.

  • 08.10.14 Original By: ACRM

Definition at line 300 of file ExtractZonePDB.c.