Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
RdSSPDB.c File Reference

Read disulphide information from header records of a PDB file. More...

#include <stdio.h>
#include <stdlib.h>
#include "SysDefs.h"
#include "pdb.h"
#include "macros.h"
#include "fsscanf.h"

Go to the source code of this file.

Macros

#define MAXBUFF   160
 

Functions

DISULPHIDEblReadDisulphidesPDB (FILE *fp, BOOL *error)
 
DISULPHIDEblReadDisulphidesWholePDB (WHOLEPDB *wpdb, BOOL *error)
 

Detailed Description

Read disulphide information from header records of a PDB file.

Version
V1.2
Date
26.02.15
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:

Read the header records of a PDB file to find disulphide information. Builds a linked list of type DISULPHIDE.

Usage:

Revision History:

V1.0 14.10.93 Original By: ACRM V1.1 07.07.14 Use bl prefix for functions By: CTP V1.2 26.02.15 Added blReadDisulphidesWholePDB()

Definition in file RdSSPDB.c.

Macro Definition Documentation

#define MAXBUFF   160

Definition at line 85 of file RdSSPDB.c.

Function Documentation

DISULPHIDE* blReadDisulphidesPDB ( FILE *  fp,
BOOL error 
)
Parameters
[in]*fpPDB file pointer
[out]*errorSuccess
Returns
Linked list of disulphide information. NULL if none found or error (Check flag)

Searches a PDB file for SSBOND records and constructs a linked list of information from these records. Returns NULL if no disulphide information found. If memory allocation fails, the DISULPHIDE linked list formed thus far is returned and the error flag is set to TRUE

  • 14.10.93 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 114 of file RdSSPDB.c.

DISULPHIDE* blReadDisulphidesWholePDB ( WHOLEPDB wpdb,
BOOL error 
)
Parameters
[in]*wpdbWhole PDB structure
[out]*errorSuccess
Returns
Linked list of disulphide information. NULL if none found or error (Check flag)

Searches the headers in a WHOLEPDB structure for SSBOND records and constructs a linked list of information from these records. Returns NULL if no disulphide information found. If memory allocation fails, the DISULPHIDE linked list formed thus far is returned and the error flag is set to TRUE

Definition at line 174 of file RdSSPDB.c.