Bioplib
Protein Structure C Library
|
Get misc header info from PDB header. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pdb.h"
#include "seq.h"
#include "macros.h"
#include "fsscanf.h"
#include "general.h"
#include "hash.h"
Go to the source code of this file.
Macros | |
#define | MAXWORD 8 |
#define | MAXBUFF 160 |
#define | ALLOCSIZE 80 |
#define | CLEAR_BIOMOL(b) |
Functions | |
BOOL | blGetHeaderWholePDB (WHOLEPDB *wpdb, char *header, int maxheader, char *date, int maxdate, char *pdbcode, int maxcode) |
char * | blGetTitleWholePDB (WHOLEPDB *wpdb) |
BOOL | blGetCompoundWholePDBChain (WHOLEPDB *wpdb, char *chain, COMPND *compnd) |
int | blFindMolID (WHOLEPDB *wpdb, char *chain) |
BOOL | blGetSpeciesWholePDBChain (WHOLEPDB *wpdb, char *chain, PDBSOURCE *source) |
BOOL | blGetCompoundWholePDBMolID (WHOLEPDB *wpdb, int molid, COMPND *compnd) |
BOOL | blGetSpeciesWholePDBMolID (WHOLEPDB *wpdb, int molid, PDBSOURCE *source) |
char * | blGetSeqresAsStringWholePDB (WHOLEPDB *wpdb, char **chains, MODRES *modres, BOOL doNucleic) |
MODRES * | blGetModresWholePDB (WHOLEPDB *wpdb) |
void | blFindOriginalResType (char *modAA, char *stdAA, MODRES *modres) |
BIOMOLECULE * | blGetBiomoleculeWholePDB (WHOLEPDB *wpdb) |
void | blFreeBiomolecule (BIOMOLECULE *biomolecule) |
HASHTABLE * | blGetSeqresByChainWholePDB (WHOLEPDB *wpdb, MODRES *modres, BOOL doNucleic) |
Get misc header info from PDB header.
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.
See documentation for details
Definition in file PDBHeaderInfo.c.
#define ALLOCSIZE 80 |
Definition at line 137 of file PDBHeaderInfo.c.
#define CLEAR_BIOMOL | ( | b | ) |
Definition at line 139 of file PDBHeaderInfo.c.
#define MAXBUFF 160 |
Definition at line 136 of file PDBHeaderInfo.c.
#define MAXWORD 8 |
Definition at line 135 of file PDBHeaderInfo.c.
int blFindMolID | ( | WHOLEPDB * | wpdb, |
char * | chain | ||
) |
[in] | *wpdb | WHOLEPDB structure |
[in] | *chain | Chain label |
Finds the MOL_ID for a specified chain
Definition at line 481 of file PDBHeaderInfo.c.
void blFindOriginalResType | ( | char * | modAA, |
char * | stdAA, | ||
MODRES * | modres | ||
) |
[in] | *modAA | Non-standard (modified) amino acid name |
[out] | *stdAA | Standard amino acid from which it was derived |
[in] | *modres | MODRES linked list |
Uses the MODRES information to identify the original (standard) amino acid from which a modified amino acid was derived
Definition at line 940 of file PDBHeaderInfo.c.
void blFreeBiomolecule | ( | BIOMOLECULE * | biomolecule | ) |
Definition at line 1252 of file PDBHeaderInfo.c.
BIOMOLECULE* blGetBiomoleculeWholePDB | ( | WHOLEPDB * | wpdb | ) |
[in] | *wpdb | Pointer to WHOLEPDB structure |
Reads the biomolecule assembly data from REMARK 300 and REMARK 350 headers.
The returned pointer is a linked list of BIOMOLECULE structures. The first item in the list contains the information from REMARK 300: the total number of biomolecule assemblies and any additional information provided in REMARK 300 beyond the standard comments. The additional information (biomolecule->details) is a STRINGLIST linked list.
The list of chains will appear in biomolcule->chains as a comma separated list and the transformation to be applied to them will appear in the biomolecule->biomt structure. This is also a linked list so if multiple transformations are required these will appear in further entries to this list.
Additional entries will be found in the BIOMOLECULE linked list for each different biomolecule.
See the test code in PDBHeaderInfo.c for example usage.
Definition at line 1232 of file PDBHeaderInfo.c.
[in] | *wpdb | WHOLEPDB structure |
[in] | *chain | Chain label of interest |
[out] | *compnd | Data from the COMPND records |
Extracts the COMPND data for a specified chain. Returns FALSE if the chain isn't found
Definition at line 396 of file PDBHeaderInfo.c.
[in] | *wpdb | WHOLEPDB structure |
[in] | molid | MOL_ID from PDB-format COMPND record. |
[out] | *compnd | Data from the COMPND records |
Extracts the COMPND data for a specified MOL_ID. Returns FALSE if the MOL_ID isn't found
Definition at line 600 of file PDBHeaderInfo.c.
BOOL blGetHeaderWholePDB | ( | WHOLEPDB * | wpdb, |
char * | header, | ||
int | maxheader, | ||
char * | date, | ||
int | maxdate, | ||
char * | pdbcode, | ||
int | maxcode | ||
) |
[in] | *wpdb | WHOLEPDB structure pointer |
[out] | *header | String containing header text |
[in] | maxheader | Max length for storing header |
[out] | *date | Date string |
[in] | maxdate | Max length for storing date |
[out] | *pdbcode | PDB code |
[in] | maxcode | Max length for storing PDB code |
Obtains information from the PDB HEADER record
Definition at line 182 of file PDBHeaderInfo.c.
[in] |
Definition at line 882 of file PDBHeaderInfo.c.
char* blGetSeqresAsStringWholePDB | ( | WHOLEPDB * | wpdb, |
char ** | chains, | ||
MODRES * | modres, | ||
BOOL | doNucleic | ||
) |
[in] | *wpdb | Pointer to whole PDB structure |
[out] | **chains | Chain labels for the chains - may also be set to NULL if you don't want to record chain labels |
[in] | *modres | Linked list of MODRES information. May be NULL if you don't want to translate non-standard amino acids. |
[in] | doNucleic | Read sequence for nucleic acid chains |
Reads sequence from SEQRES records into a character string in 1-letter code. Chains are terminated by * characters.
Definition at line 759 of file PDBHeaderInfo.c.
[in] | *wpdb | Pointer to whole PDB structure |
[in] | *modres | Linked list of MODRES information. May be NULL if you don't want to translate non-standard amino acids. |
[in] | doNucleic | Read sequence for nucleic acid chains |
Reads sequence from SEQRES records in 1-letter code, storing the results in a hash indexed by chain label.
Definition at line 1300 of file PDBHeaderInfo.c.
[in] | *wpdb | WHOLEPDB structure |
[in] | *chain | Chain label |
[out] | *source | SOURCE information for chain |
Extracts the SOURCE data for a specified chain
Definition at line 534 of file PDBHeaderInfo.c.
[in] | *wpdb | WHOLEPDB structure |
[in] | molid | MOL_ID from PDB-format SOURCE record. |
[out] | *source | SOURCE information for chain |
Extracts the SOURCE data for a specified MOL_ID. Returns FALSE if not found.
Definition at line 679 of file PDBHeaderInfo.c.
char* blGetTitleWholePDB | ( | WHOLEPDB * | wpdb | ) |
[in] | *wpdb | WHOLEPDB structure |
Extracts the title from a PDB file malloc()ing a string in which to store the data. This must be freed by user code
Definition at line 228 of file PDBHeaderInfo.c.