Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
SelectCaPDB.c File Reference
#include <string.h>
#include <stdlib.h>
#include "SysDefs.h"
#include "pdb.h"
#include "macros.h"

Go to the source code of this file.

Functions

PDBblSelectCaPDB (PDB *pdb)
 

Detailed Description

Version
V1.8
Date
07.07.14
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 SelectCaPDB.c.

Function Documentation

PDB* blSelectCaPDB ( PDB pdb)
Parameters
[in]*pdbA PDB linked list
[out]*The linked list reduced to CA atoms only

Reduce a PDB linked list to CA atoms only. Returns the reduced PDB linked list. Note that the input linked list is modified (storage for non-CA atoms is freed) and that the pointer input to the routine is likely to become invalid since the first atom is generally no a CA and the first record will therefore be freed.

Normally you would call this routine with something like:

pdb = SelectCaPDB(pdb);

i.e. the same variable name is used for the input and the return.

This is used in place of the normal SelectAtomsPDB() since it is simpler and faster to call for this rather common requirement.

N.B. Unlike SelectAtomsPDB(), the routine is destructive; i.e. the original PDB linked list is NOT intact after the selection process.

  • 15.10.96 Original By: ACRM
  • 11.01.02 Added check on pdb!=NULL in case there are no CAs (DNA etc)
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 124 of file SelectCaPDB.c.