00001 00002 /* 00003 COPYRIGHT DISCLAIMER 00004 00005 Vincent Le Guilloux, Peter Schmidtke and Pierre Tuffery, hereby 00006 disclaim all copyright interest in the program “fpocket” (which 00007 performs protein cavity detection) written by Vincent Le Guilloux and Peter 00008 Schmidtke. 00009 00010 Vincent Le Guilloux 28 November 2008 00011 Peter Schmidtke 28 November 2008 00012 Pierre Tuffery 28 November 2008 00013 00014 GNU GPL 00015 00016 This file is part of the fpocket package. 00017 00018 fpocket is free software: you can redistribute it and/or modify 00019 it under the terms of the GNU General Public License as published by 00020 the Free Software Foundation, either version 3 of the License, or 00021 (at your option) any later version. 00022 00023 fpocket is distributed in the hope that it will be useful, 00024 but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00026 GNU General Public License for more details. 00027 00028 You should have received a copy of the GNU General Public License 00029 along with fpocket. If not, see <http://www.gnu.org/licenses/>. 00030 00031 **/ 00032 00033 #ifndef DH_PSORTING 00034 #define DH_PSORTING 00035 00036 /* -----------------------------INCLUDES--------------------------------------*/ 00037 00038 #include <math.h> 00039 #include <stdio.h> 00040 #include <stdlib.h> 00041 00042 #include "pocket.h" 00043 00044 /* ---------------------- PUBLIC STRUCTURES ----------------------------------*/ 00045 00046 00047 /* ----------------------------PROTOTYPES-------------------------------------*/ 00048 00049 void sort_pockets(c_lst_pockets *pockets, 00050 int (*fcmp)(const node_pocket*, const node_pocket*)) ; 00051 00052 int compare_pockets_nasph(const node_pocket *p1, const node_pocket *p2) ; 00053 int compare_pockets_volume(const node_pocket *p1, const node_pocket *p2) ; 00054 int compare_pockets_score(const node_pocket *p1, const node_pocket *p2) ; 00055 int compare_pockets_corresp(const node_pocket *p1, const node_pocket *p2) ; 00056 int compare_pockets_vol_corresp(const node_pocket *p1, const node_pocket *p2) ; 00057 00058 #define M_VOLUME_SORT_FUNCT &compare_pockets_volume 00059 #define M_SCORE_SORT_FUNCT &compare_pockets_score 00060 #define M_NASPH_SORT_FUNCT &compare_pockets_nasph 00061 00062 #endif