00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef DH_DPARAMS
00034 #define DH_DPARAMS
00035
00036
00037
00038 #include <stdio.h>
00039 #include <stdlib.h>
00040 #include <unistd.h>
00041 #include <string.h>
00042 #include <ctype.h>
00043 #include <limits.h>
00044 #include <assert.h>
00045
00046 #include "utils.h"
00047 #include "memhandler.h"
00048 #include "fparams.h"
00049
00050
00051
00052
00053
00054 #define M_DPAR_INTERFACE_METHOD1 'e'
00055 #define M_DPAR_INTERFACE_METHOD2 'E'
00056 #define M_DPAR_DISTANCE_CRITERIA 'd'
00057 #define M_DPAR_INPUT_FILE 'f'
00058 #define M_DPAR_OUTPUT_FILE 'o'
00059
00060
00061
00062
00063 #define M_INTERFACE_METHOD1 1
00064 #define M_VERT_LIG_NEIG_DIST 4.0
00065
00066 #define M_INTERFACE_METHOD2 2
00067 #define M_LIG_NEIG_DIST 4.0
00068
00069 #define M_OUTPUT_FILE1_DEFAULT "dpout_explicitp.txt"
00070 #define M_OUTPUT_FILE2_DEFAULT "dpout_fpocketp.txt"
00071 #define M_OUTPUT_FILE3_DEFAULT "dpout_fpocketnp.txt"
00072
00073 #define M_MAX_FILE_NAME_LENGTH 300
00074 #define M_NB_MC_ITER 2500
00075 #define M_MIN_ASPH_RAY 2.8
00076 #define M_MAX_ASPH_RAY 10.0
00077
00078 #define M_DP_USAGE "\
00079 \n***** USAGE (dpocket) *****\n\
00080 \n\
00081 The program needs as input a file containing at each \n\
00082 line a pdb file name and a ligand code (3 letters). \n\
00083 The format of each line must be: \n\n\
00084 {PATH/}2fej.pdb LIG \n\n\
00085 The ligand code is the resname of the ligand atoms in \n\
00086 the pdb file and has to separated by a tab from the \n\
00087 pdb structure in the input file. \n\n\
00088 See the manual for more information. \n\n\
00089 Example of command using default parameters: \n\
00090 \t./bin/dpocket -f file_path \n\n\
00091 Options: \n\
00092 \t-o string : Prefix of the output file. (./dpout_*) \n\
00093 \t-e : Use the first protein-ligand explicit \n\
00094 \t interface definition (default). \n\
00095 \t-E : Use the second protein-ligand explicit \n\
00096 \t interface definition. \n\
00097 \t-d float : Distance criteria for the choosen \n\
00098 \t interface definition. (4.0) \n\n\
00099 Options specific to fpocket are usable too. \n\
00100 See the manual/tutorial for mor information. \n\
00101 ***************************\n"
00102
00103
00104
00105
00106 typedef struct s_dparams
00107 {
00108 char **fcomplex,
00109 **ligs ;
00110
00111 char *f_exp,
00112 *f_fpckp,
00113 *f_fpcknp ;
00114
00115 float interface_dist_crit;
00116
00117 int nfiles,
00118 interface_method ;
00119
00120 s_fparams *fpar ;
00121
00122 } s_dparams ;
00123
00124
00125
00126 s_dparams* init_def_dparams(void) ;
00127 s_dparams* get_dpocket_args(int nargs, char **args) ;
00128
00129 int add_list_complexes(char *str_list_file, s_dparams *par) ;
00130 int add_complexe(char *complex, char *ligand, s_dparams *par) ;
00131 int parse_dist_crit(char *str, s_dparams *p) ;
00132
00133 void print_dparams(s_dparams *p, FILE *f) ;
00134 void print_dpocket_usage(FILE *f) ;
00135 void free_dparams(s_dparams *p) ;
00136
00137 #endif