1 #define NUMBER_METHODS 7
2 #define NUMBER_PREPROCESSORS 5
3 #define MAX_ALGOR_NUMBER 32
4 #define USABLE_ALGOR_NUMBER 32 /* MAX_TABLE_NUMBER*8 where 8 is from */
5 /* 4 methods with 2 possible "offset types" */
6 /*#define USABLE_ALGOR_NUMBER 8 */ /* 4 methods with 2 possible "offset types" */
9 #define LENGTH_OF_COIL 0 /** For the dimer-trimer likelihood algorithm. */
10 #define ONCE_PER_COIL 1
12 /* Currently: DimerTrimerSingle, DimerTrimerPair,
13 TableDiffSingle where score coil once
14 TableDiffSingle where score coil length coil times
15 TableDiffPair where score coil once
16 TableDiffPair where score coil lenth coil times for like. */
18 /** Think of Single=0, Once=0, Length=1, Pair=2 and just add up.... **/
20 enum {TableDiffSingleOnce, TableDiffSingleLength,
21 TableDiffPairOnce, TableDiffPairLength,
22 DTSingleLike, DTPairLike};
25 enum {TDRes, TDCoil}; /* For computing which number likelihood line to
26 use in TableDiff method. */
27 /* The algorithm line number is 2*TD? + pairs. */
29 enum {MultiCoil, PairCoil, NEWCOILS, HMMCoil, ActualCoil,
30 /** TableDiffRes, TableDiffCoil, **/
31 PairCoilDiff, PairCoilDiffAvg, STOCK_PAIR};
33 /* Can use pairs or singles for first 3. Singles for PairCoil is NEWCOIL. */
36 extern char *methodname[];
37 extern int main_method;
39 /******The following are declared in sc2seq_interface.c ****/
40 extern double many_pprobs[MAX_TABLE_NUMBER][NUM_RES_TYPE][POSNUM],
41 many_pprobp[MAX_TABLE_NUMBER][NUM_RES_TYPE][NUM_RES_TYPE][POSNUM][POSNUM];
42 extern double many_weights[MAX_TABLE_NUMBER][AANUM][POSNUM],
43 many_weightp[MAX_TABLE_NUMBER][AANUM][AANUM][POSNUM][POSNUM];
46 extern double (*pprobs)[POSNUM];
47 extern double (*pprobp)[NUM_RES_TYPE][POSNUM][POSNUM];
48 extern double (*weights)[POSNUM];
49 extern double (*weightp)[AANUM][POSNUM][POSNUM];
50 /*********************************************************/
52 void output_seq(char lib[MAXFUNCTNUM],
53 char multi_lib[MAX_TABLE_NUMBER][MAXFUNCTNUM],
55 double *m_single, double *b_single,
57 double log_bound,FILE *flog,
61 int main_method, int main_preprocessor_method,