19 int main(
int argc,
char **argv) {
39 printf(
"Total area : %f A2\n",result->
total);
40 for (
int i = 0; i < class_area->
n; ++i)
41 printf(
"%s : %f A2\n",class_area->
string[i],
42 class_area->
value[i]);
45 printf(
"Error calculating SASA\n");
void freesasa_strvp_free(freesasa_strvp *strvp)
Frees a freesasa_strvp object.
Struct used to store n string-value-pairs (strvp) in arrays of doubles and strings.
freesasa_strvp * freesasa_result_classify(const freesasa_result *result, const freesasa_structure *structure, const freesasa_classifier *classifier)
Sums up the SASA for groups of atoms defined by a classifier.
int n
Number of values and strings.
freesasa_result * freesasa_calc_structure(const freesasa_structure *structure, const freesasa_parameters *parameters)
Calculates SASA based on a given structure.
double * value
Array of values.
struct freesasa_structure freesasa_structure
Struct for structure object.
Functions and datatypes for performing and analyzing SASA calculations.
char ** string
Array of strings.
Struct to store results of SASA calculation.
double total
Total SASA in Ångström^2.
freesasa_structure * freesasa_structure_from_pdb(FILE *pdb, const freesasa_classifier *classifier, int options)
Init structure with coordinates from pdb-file.
void freesasa_structure_free(freesasa_structure *structure)
Free structure.
void freesasa_result_free(freesasa_result *result)
Frees a freesasa_result object.