3 #include "sc2seq.h" /* This also includes scconst.h, sc.h, interface.h */
12 void initialize( int *num_dist0, int window_length[MAX_TABLE_NUMBER], double scale0s[MAX_TABLE_NUMBER], double scale0p[MAX_TABLE_NUMBER], FILE *fpin0, char likelihoods[MAX_TABLE_NUMBER][MAXLINE], char *pir_name0, char *print, char gauss_param[2][MAXLINE], int *mode,double init_class_prob[MAX_CLASS_NUMBER])
17 *mode |= PROLINE_FREE_MODE; /* Default mode is Proline Free. */
18 *mode |= PAIRCOIL_PAIRS; /* Always default to pairs for PairCoil */
20 *mode |= USE_LIKE_LINE;
21 *mode |= WEB_OUT_MODE; /* Make the out file by default be the */
22 /* list of the seq and registers and probs */
23 /* instead of the raw list of tuples of */
24 /* scores needed for plotting and making */
28 for (i=0; i< MAX_TABLE_NUMBER; i++) {
29 window_length[i]=WINDOW;
30 scale0s[i] = SCALE0; /** Set to default **/
32 likelihoods[i][0]=','; /** A hack to check if get it in get_defaults */
35 *pir_name0=','; /** A hack to check if get it in get_defaults */
37 strcpy(print,"/dev/null");
39 gauss_param[0][0]= ','; /* Used as flag in multivariate_like.c. */
40 gauss_param[1][0]= ',';
42 init_class_prob[0] = .015; /* Dimer probability*/
43 init_class_prob[1] = .009; /* Trimer probablity*/
44 init_class_prob[2] = .976; /* Non-coiled prob. */
48 void read_command_line(int argc, char *argv[], char **command_line_pointer,
49 int combine_dist[MAX_TABLE_NUMBER],
51 int num_dist[MAX_TABLE_NUMBER],
52 char multi_lib[MAX_TABLE_NUMBER][MAXFUNCTNUM],
53 char **command_line_config)
59 if (!strcmp(argv[argc-2],CONFIG_SWITCH)) {
60 *command_line_config = argv[argc-1];
61 printf("got command config %s\n", argv[argc-1]);
65 if ((argc >= 3) && (argc <=5)) {
66 /* Ignore pos options and removal options in config file */
67 *command_line_pointer = argv[2];
68 /** This could point to the table to remove from. **/
72 *mode |= LIB_AT_COMMAND_LINE;
74 num_dist[0]=strlen(argv[3]);
75 max_libnum = num_dist[0];
78 num_dist[1]=strlen(argv[4]);
79 if (num_dist[1] > max_libnum) max_libnum = num_dist[1];
81 else num_dist[1]=num_dist[0];
82 while (number < max_libnum) {
83 if (num_dist[0] > number) {
84 multi_lib[0][number]= argv[3][number] - '0';
86 if (argc == 4) multi_lib[1][number] =multi_lib[0][number];
87 else if (num_dist[1] > number)
88 multi_lib[1][number]= argv[4][number]- '0';
95 /* fprintf(stderr,"Usage: xcoil <file-name>\n"); */
103 int old_num_dim(int number_multi_lib, int number_of_distances) {
105 if ( (number_multi_lib > 1) || (number_of_distances == 1))