Bioplib
Protein Structure C Library
|
Get resolution and R-factor information out of a PDB file. More...
Go to the source code of this file.
Macros | |
#define | MAXBUFF 160 |
Functions | |
BOOL | blGetResolPDB (FILE *fp, REAL *resolution, REAL *RFactor, int *StrucType) |
BOOL | blGetResolWholePDB (WHOLEPDB *wpdb, REAL *resolution, REAL *RFactor, int *StrucType) |
BOOL | blGetExptlPDB (FILE *fp, REAL *resolution, REAL *RFactor, REAL *FreeR, int *StrucType) |
BOOL | blGetExptlWholePDB (WHOLEPDB *wpdb, REAL *resolution, REAL *RFactor, REAL *FreeR, int *StrucType) |
char * | blReportStructureType (int StrucType) |
BOOL | blGetExptlOld (FILE *fp, REAL *resolution, REAL *RFactor, REAL *FreeR, int *StrucType) |
Get resolution and R-factor information out of 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.
See documentation for details
Definition in file ResolPDB.c.
#define MAXBUFF 160 |
Definition at line 121 of file ResolPDB.c.
[in] | *fp | PDB file pointer |
[out] | *resolution | The resolution (0.0 if not applicable) |
[out] | *RFactor | The R-factor (0.0 if not found) |
[out] | *FreeR | The Free R-factor (0.0 if not found) |
[out] | *StrucType | Structure type: STRUCTURE_TYPE_XTAL STRUCTURE_TYPE_NMR STRUCTURE_TYPE_MODEL STRUCTURE_TYPE_UNKNOWN |
This routine attempts to obtain resolution and R-factor information out of a PDB file. It returns TRUE or FALSE to indicate whether valid information was found. Resolution-not-applicable structures then have the resolution set to zero.
N.B. The resolution information returned by the routine is reliable; the R-factor information is stored in so many forms that it is difficult to read without some form of natural language parsing, but we manage to handle most situations. The routine assumes the R-factor to be the first number after the words `R-value' (or one of the other keys - see the case statement in the code for the valid keywords). Thus we cannot handle records of the form: THE R-VALUE FOR 7142 REFLECTIONS BETWEEN 10.0 AND 1.97 ANGSTROMS REFINEMENT CYCLE 73 IS 0.254. as appears in entries such as 1LZT. Here, the first number is the number of reflections. There is thus a kludge which sets the R-factor to zero if it was read as greater than 0.5 to avoid this situation. In these cases, we lose the R-factor information. This occurs in approx 3.5% of the 1XXX PDB entries.
Definition at line 666 of file ResolPDB.c.
[in] | *fp | PDB file pointer |
[out] | *resolution | The resolution (0.0 if not applicable) |
[out] | *RFactor | The R-factor (0.0 if not found) |
[out] | *FreeR | The Free R-factor (0.0 if not found) |
[out] | *StrucType | Structure type: STRUCTURE_TYPE_XTAL STRUCTURE_TYPE_NMR STRUCTURE_TYPE_MODEL STRUCTURE_TYPE_UNKNOWN |
This routine attempts to obtain resolution and R-factor information out of a PDB file. It returns TRUE or FALSE to indicate whether valid information was found. Resolution-not-applicable structures then have the resolution set to zero.
Definition at line 289 of file ResolPDB.c.
BOOL blGetExptlWholePDB | ( | WHOLEPDB * | wpdb, |
REAL * | resolution, | ||
REAL * | RFactor, | ||
REAL * | FreeR, | ||
int * | StrucType | ||
) |
[in] | *wpdb | WHOLEPDB structure pointer |
[out] | *resolution | The resolution (0.0 if not applicable) |
[out] | *RFactor | The R-factor (0.0 if not found) |
[out] | *FreeR | The Free R-factor (0.0 if not found) |
[out] | *StrucType | Structure type: STRUCTURE_TYPE_XTAL STRUCTURE_TYPE_NMR STRUCTURE_TYPE_MODEL STRUCTURE_TYPE_UNKNOWN |
This routine attempts to obtain resolution and R-factor information out of a PDB file. It returns TRUE or FALSE to indicate whether valid information was found. Resolution-not-applicable structures then have the resolution set to zero.
Definition at line 350 of file ResolPDB.c.
[in] | *fp | PDB file pointer |
[out] | *resolution | The resolution (0.0 if not applicable) |
[out] | *RFactor | The R-factor (0.0 if not found) |
[out] | *StrucType | Structure type: STRUCTURE_TYPE_XTAL STRUCTURE_TYPE_NMR STRUCTURE_TYPE_MODEL STRUCTURE_TYPE_UNKNOWN |
This routine attempts to obtain resolution and R-factor information out of a PDB file. It returns TRUE or FALSE to indicate whether valid information was found. Resolution-not-applicable structures then have the resolution set to zero.
N.B. The resolution information returned by the routine is reliable; the R-factor information is stored in so many forms that it is difficult to read without some form of natural language parsing, but we manage to handle most situations. The routine assumes the R-factor to be the first number after the words `R-value' (or one of the other keys - see the case statement in the code for the valid keywords). Thus we cannot handle records of the form: THE R-VALUE FOR 7142 REFLECTIONS BETWEEN 10.0 AND 1.97 ANGSTROMS REFINEMENT CYCLE 73 IS 0.254. as appears in entries such as 1LZT. Here, the first number is the number of reflections. There is thus a kludge which sets the R-factor to zero if it was read as greater than 0.5 to avoid this situation. In these cases, we lose the R-factor information. This occurs in approx 3.5% of the 1XXX PDB entries.
Definition at line 193 of file ResolPDB.c.
[in] | *wpdb | WHOLEPDB structure pointer |
[out] | *resolution | The resolution (0.0 if not applicable) |
[out] | *RFactor | The R-factor (0.0 if not found) |
[out] | *StrucType | Structure type: STRUCTURE_TYPE_XTAL STRUCTURE_TYPE_NMR STRUCTURE_TYPE_MODEL STRUCTURE_TYPE_UNKNOWN |
This routine attempts to obtain resolution and R-factor information out of a WHOLEPDB structure. It returns TRUE or FALSE to indicate whether valid information was found. Resolution-not-applicable structures then have the resolution set to zero.
N.B. The resolution information returned by the routine is reliable; the R-factor information is stored in so many forms that it is difficult to read without some form of natural language parsing, but we manage to handle most situations. The routine assumes the R-factor to be the first number after the words `R-value' (or one of the other keys - see the case statement in the code for the valid keywords). Thus we cannot handle records of the form: THE R-VALUE FOR 7142 REFLECTIONS BETWEEN 10.0 AND 1.97 ANGSTROMS REFINEMENT CYCLE 73 IS 0.254. as appears in entries such as 1LZT. Here, the first number is the number of reflections. There is thus a kludge which sets the R-factor to zero if it was read as greater than 0.5 to avoid this situation. In these cases, we lose the R-factor information. This occurs in approx 3.5% of the 1XXX PDB entries.
Definition at line 244 of file ResolPDB.c.
char* blReportStructureType | ( | int | StrucType | ) |
[in] | StrucType | Stucture type returned by ResolPDB() |
Returns structure description.
STRUCTURE_TYPE_UNKNOWN Unknown STRUCTURE_TYPE_XTAL X-ray crystal structure STRUCTURE_TYPE_NMR NMR STRUCTURE_TYPE_MODEL Model STRUCTURE_TYPE_ELECTDIFF Electron Diffraction STRUCTURE_TYPE_FIBER Fiber Diffraction STRUCTURE_TYPE_SSNMR Solid State NMR STRUCTURE_TYPE_NEUTRON Neutron Scattering STRUCTURE_TYPE_EM Electron Miscroscopy STRUCTURE_TYPE_SOLSCAT Solution Scattering STRUCTURE_TYPE_IR Infra-red Spectroscopy STRUCTURE_TYPE_POWDER Powder Diffraction STRUCTURE_TYPE_FRET Fluorescence Transfer
Definition at line 410 of file ResolPDB.c.