Bioplib
Protein Structure C Library
|
Accessibility calculation code. More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "macros.h"
#include "SysDefs.h"
#include "pdb.h"
#include "access.h"
Go to the source code of this file.
Macros | |
#define | MAXBUFF 160 /* I/O buffer */ |
#define | MAX_INTERSECT |
#define | MAX_INTERSECT_EXP 100 /* Amount to expand intersect array by */ |
#define | MAX_ATOM_IN_CUBE |
#define | FREE_ACCESS_STORAGE |
#define | EXPAND_INTERSECT_ARRAYS |
Functions | |
RESRAD * | blSetAtomRadii (PDB *pdb, FILE *fpRad) |
BOOL | blCalcAccess (PDB *pdb, int natoms, REAL integrationAccuracy, REAL probeRadius, BOOL doAccessibility) |
RESACCESS * | blCalcResAccess (PDB *pdb, RESRAD *resrad) |
Accessibility calculation code.
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.
Calculation of solvent accessibility by the method of Lee and Richards. Based loosely on PMCL code by Peter McLaughlin
Read the radius file and set the radii in the PDB linked list. Also returns the data from the radius file for use by blCalcResAccess()
Does the accessibilty calculations. integrationAccuracy can be set to zero to use the default value
Calculates residue accessibility and relative accessibility
Definition in file access.c.
#define EXPAND_INTERSECT_ARRAYS |
#define FREE_ACCESS_STORAGE |
#define MAX_ATOM_IN_CUBE |
#define MAX_INTERSECT |
#define MAX_INTERSECT_EXP 100 /* Amount to expand intersect array by */ |
BOOL blCalcAccess | ( | PDB * | pdb, |
int | natoms, | ||
REAL | integrationAccuracy, | ||
REAL | probeRadius, | ||
BOOL | doAccessibility | ||
) |
[in,out] | *pdb | PDB linked list |
[in] | natoms | Number of atoms |
[in] | integrationAccuracy | Integration accuracy |
[in] | probeRadius | Probe radius |
[in] | doAccessibility | Accessibility or contact area |
Allocates arrays and calls routines to populate them, do the access calculations and populate into the PDB linked list
[in,out] | *pdb | PDB linked list |
[in] | *resrad | Linked list of atom radius information |
Calculates and populates the residue totals and relative values using standards stored in resrad
[in,out] | *pdb | PDB linked list |
[in] | *fpRad | Radius file pointer |
Set atom radii from the radius file in the PDB linked list Returns the radius lookup information since it also contains the standard accessibilities