Bioplib
Protein Structure C Library
|
Read sequence from SEQRES records in a PDB file. More...
Go to the source code of this file.
Macros | |
#define | MAXBUFF 160 |
Functions | |
char ** | blReadSeqresPDB (FILE *fp, int *nchains) |
char ** | blReadSeqresWholePDB (WHOLEPDB *wpdb, int *nchains) |
Read sequence from SEQRES records in a PDB file.
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.
Definition in file RdSeqPDB.c.
#define MAXBUFF 160 |
Definition at line 78 of file RdSeqPDB.c.
char** blReadSeqresPDB | ( | FILE * | fp, |
int * | nchains | ||
) |
[in] | *fp | PDB file pointer |
[out] | *nchains | Number of chains found |
Reads the sequence from the SEQRES records of a PDB file. Creates an array of malloc()'d character arrays in which the sequence is stored. Can therefore cope with any size of sequence information from the PDB file.
This is not normally recommended to get the sequence for a PDB file this way, but is useful to detect discrepancies compared with the sequence described by the ATOM records.
Definition at line 113 of file RdSeqPDB.c.
char** blReadSeqresWholePDB | ( | WHOLEPDB * | wpdb, |
int * | nchains | ||
) |
[in] | wpdb | WHOLEPDB structure |
[out] | *nchains | Number of chains found |
Reads the sequence from the SEQRES records from the PDB header stored in a WHOLEPDB structure. Creates an array of malloc()'d character arrays in which the sequence is stored. Can therefore cope with any size of sequence information from the PDB file.
This is not normally recommended to get the sequence for a PDB file this way, but is useful to detect discrepancies compared with the sequence described by the ATOM records.
Definition at line 228 of file RdSeqPDB.c.