Debian Codegraph @

PerseusD/PerseusD.h

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 /*This software and documentation is copyright © 2009 by Christopher Quince.*/cxx . . $ `<file>/PerseusD/PerseusD.h`/
2
3 /*Permission is granted for anyone to copy, use, or modify these programs and documents for purposes of research or education, provided this copyright notice is retained, and note is made of any changes that have been made.*/
4
5 /* These programs and documents are distributed without any warranty, express or implied. As the programs were written for research purposes only, they have not been tested to the degree that would be advisable in any important application. All use of these programs is entirely at the user's own risk.*/
6
7 #ifndef NDIST_MPI_H
8 #define NDIST_MPI_Hcxx . . $ `PerseusD/PerseusD.h:8:9`!
9
10 #define FASTA_SUFFIXcxx . . $ `PerseusD/PerseusD.h:10:9`! ".fa"
11 #define ALIGN_SUFFIXcxx . . $ `PerseusD/PerseusD.h:11:9`! ".afa"
12 #define TEMP_ERROR_FILEcxx . . $ `PerseusD/PerseusD.h:12:9`! "Temp.err"
13
14 #define MAX_DIFFcxx . . $ `PerseusD/PerseusD.h:14:9`! 1000
15
16 #define GOODcxx . . $ `PerseusD/PerseusD.h:16:9`! 0
17 #define CHIMERAcxx . . $ `PerseusD/PerseusD.h:17:9`! 1
18 #define TRIMERAcxx . . $ `PerseusD/PerseusD.h:18:9`! 2
19 #define QUAMERAcxx . . $ `PerseusD/PerseusD.h:19:9`! 3
20
21 typedef struct s_Paramscxx . . $ s_Params#
22 {
23 char *szSeqInputFilecxx . . $ s_Params#szSeqInputFile.;
24
25 char *szRefInputFilecxx . . $ s_Params#szRefInputFile.;
26
27 int bImbalancecxx . . $ s_Params#bImbalance.;
28
29 int bOutputAlignmentscxx . . $ s_Params#bOutputAlignments.;
30
31 char *szLookUpFilecxx . . $ s_Params#szLookUpFile.;
32
33 int nSkewcxx . . $ s_Params#nSkew.;
34
35 double dAlphacxx . . $ s_Params#dAlpha.;
36
37 double dBetacxx . . $ s_Params#dBeta.;
38 } t_Paramscxx . . $ t_Params#;
39
40 typedef struct s_IntSortcxx . . $ s_IntSort#
41 {
42 int nFreqcxx . . $ s_IntSort#nFreq.;
43
44 int nIcxx . . $ s_IntSort#nI.;
45 } t_IntSortcxx . . $ t_IntSort#;
46
47 typedef struct s_Datacxx . . $ s_Data#
48 {
49 char* acSequencescxx . . $ s_Data#acSequences.;
50
51 char** aszIDcxx . . $ s_Data#aszID.;
52
53 int* anFreqcxx . . $ s_Data#anFreq.;
54
55 int nSeqcxx . . $ s_Data#nSeq.;
56
57 int nMaxLencxx . . $ s_Data#nMaxLen.;
58
59 int* anSortcxx . . $ s_Data#anSort.;
60
61 int* anLencxx . . $ s_Data#anLen.;
62 } t_Datacxx . . $ t_Data#;
63
64
65
66
67 /**Constants**/
68 #define MAX_LINE_LENGTHcxx . . $ `PerseusD/PerseusD.h:68:9`! 65536
69 #define DELIMcxx . . $ `PerseusD/PerseusD.h:69:9`! " \n"
70 #define DELIM2cxx . . $ `PerseusD/PerseusD.h:70:9`! ",:"
71 #define FALSEcxx . . $ `PerseusD/PerseusD.h:71:9`! 0
72 #define TRUEcxx . . $ `PerseusD/PerseusD.h:72:9`! 1
73
74 /* Input Definitions */
75 #define OPTIONcxx . . $ `PerseusD/PerseusD.h:75:9`! 0 /* optional */
76 #define ALWAYScxx . . $ `PerseusD/PerseusD.h:76:9`! 1 /* required */
77
78 #define LOOKUP_FILE_FLAGcxx . . $ `PerseusD/PerseusD.h:78:9`! "-rin"
79 #define REF_INPUT_FILEcxx . . $ `PerseusD/PerseusD.h:79:9`! "-tin"
80 #define SEQ_INPUT_FILEcxx . . $ `PerseusD/PerseusD.h:80:9`! "-sin"
81 #define USE_BALANCEcxx . . $ `PerseusD/PerseusD.h:81:9`! "-b"
82 #define OUTPUT_ALIGNMENTScxx . . $ `PerseusD/PerseusD.h:82:9`! "-a"
83 #define SKEWcxx . . $ `PerseusD/PerseusD.h:83:9`! "-s"
84 #define CLASSIFYcxx . . $ `PerseusD/PerseusD.h:84:9`! "-c"
85
86 #define GAP_PENALTYcxx . . $ `PerseusD/PerseusD.h:86:9`! 1.5
87 #define GAPcxx . . $ `PerseusD/PerseusD.h:87:9`! '-'
88 #define T_GAPcxx . . $ `PerseusD/PerseusD.h:88:9`! '.'
89 #define COMMAcxx . . $ `PerseusD/PerseusD.h:89:9`! ","
90
91 #define DEFAULT_SKEWcxx . . $ `PerseusD/PerseusD.h:91:9`! 2
92 #define DEFAULT_ALPHA_1cxx . . $ `PerseusD/PerseusD.h:92:9`! -6.6925
93 #define DEFAULT_BETA_1cxx . . $ `PerseusD/PerseusD.h:93:9`! 0.5652
94 #define DEFAULT_ALPHA_2cxx . . $ `PerseusD/PerseusD.h:94:9`! -5.54285
95 #define DEFAULT_BETA_2cxx . . $ `PerseusD/PerseusD.h:95:9`! 0.328
96
97 #define GAP_PENALTY_Ncxx . . $ `PerseusD/PerseusD.h:97:9`! 15.0
98 #define HOMOPOLYMER_PENALTYcxx . . $ `PerseusD/PerseusD.h:98:9`! 4.0
99 #define TERMINAL_PENALTYcxx . . $ `PerseusD/PerseusD.h:99:9`! 1.39
100
101 #define MIS_MATCHcxx . . $ `PerseusD/PerseusD.h:101:9`! '#'
102
103 #define DIAGcxx . . $ `PerseusD/PerseusD.h:103:9`! 0
104 #define LEFTcxx . . $ `PerseusD/PerseusD.h:104:9`! 1
105 #define UPcxx . . $ `PerseusD/PerseusD.h:105:9`! 2
106
107 #define MAX_PACKET_SIZEcxx . . $ `PerseusD/PerseusD.h:107:9`! 1048576
108 #define BIG_DBLcxx . . $ `PerseusD/PerseusD.h:108:9`! 1.0e12
109 #define BIG_INTcxx . . $ `PerseusD/PerseusD.h:109:9`! 100000
110 #define WEIGHTDELIMcxx . . $ `PerseusD/PerseusD.h:110:9`! '_'
111
112 #define N_BASEScxx . . $ `PerseusD/PerseusD.h:112:9`! 4
113 #define LOOKUP_FILEcxx . . $ `PerseusD/PerseusD.h:113:9`! "../Data/Tran.dat"
114
115 #ifndef min
116 #define mincxx . . $ `PerseusD/PerseusD.h:116:9`!(x, y) ((x) < (y) ? (x) : (y))
117 #endif
118 #ifndef max
119 #define maxcxx . . $ `PerseusD/PerseusD.h:119:9`!(x, y) ((x) > (y) ? (x) : (y))
120 #endif
121
122 /* User defined structures */
123
124
125 typedef struct s_Aligncxx . . $ s_Align#
126 {
127 char* acAcxx . . $ s_Align#acA.;
128
129 char* acBcxx . . $ s_Align#acB.;
130
131 int nLencxx . . $ s_Align#nLen.;
132
133 int nCompcxx . . $ s_Align#nComp.;
134
135 int nDiffcxx . . $ s_Align#nDiff.;
136
137 double dDistcxx . . $ s_Align#dDist.;
138
139 int *anMapDcxx . . $ s_Align#anMapD.;
140
141 int *anMapRcxx . . $ s_Align#anMapR.;
142
143 int *anDcxx . . $ s_Align#anD.;
144
145 int *anRcxx . . $ s_Align#anR.;
146
147 double *adDcxx . . $ s_Align#adD.;
148
149 double *adRcxx . . $ s_Align#adR.;
150
151 double dDiffcxx . . $ s_Align#dDiff.;
152 } t_Aligncxx . . $ t_Align#;
153
154 typedef struct s_Resultcxx . . $ s_Result#
155 {
156 double dXcxx . . $ s_Result#dX.;
157 double dYcxx . . $ s_Result#dY.;
158 double dZcxx . . $ s_Result#dZ.;
159 double dPcxx . . $ s_Result#dP.;
160 } t_Resultcxx . . $ t_Result#;
161
162 /*User defined functions*/
163
164 void getCommandLineParamscxx . . $ getCommandLineParams(e21a2e221db30366).(t_Paramscxx . . $ t_Params# *ptParams,int argc,char *argv[]);
165
166 void readDatacxx . . $ readData(e23a2985f422d474).(char* szInputFile, t_Datacxx . . $ t_Data# *ptData);
167
168 void needlemanWunschcxx . . $ needlemanWunsch(15ec6acdeb8c37a).(t_Aligncxx . . $ t_Align# *ptAlign, const char* acA, const char* acB, int nLenA, int nLenB);
169
170 void receiveDatacxx . . $ receiveData(4c549200977ca370).(t_Datacxx . . $ t_Data# *ptData);
171
172 void broadcastDatacxx . . $ broadcastData(4c549200977ca370).(t_Datacxx . . $ t_Data# *ptData);
173
174 double needlemanWunschNcxx . . $ needlemanWunschN(ebbf8d279272e8f6).(const char* acA, const char* acB, int nLenA, int nLenB, int nM);
175
•176 void initLookUpcxx . . $ initLookUp(e5945a22af445639).(t_Paramscxx . . $ t_Params# *ptParams);
177
178 char* getChimeracxx . . $ getChimera(d91510a9ccfdaed8).(int *pnCLength, t_Aligncxx . . $ t_Align#* ptA, t_Aligncxx . . $ t_Align#* ptB, int nSplit, int nLenI);
179
180 double calcCIndexcxx . . $ calcCIndex(32b56df8738c6051).(int nI, int nP1, int nP2, char *acChimera, int nCLength, t_Datacxx . . $ t_Data#* ptRefData, t_Datacxx . . $ t_Data#* ptSeqData);
181
182 double calcEIndexcxx . . $ calcEIndex(9597366e80b3b876).(int nX1, int nY1, int nX2, int nY2, int nSplit, int nLenI);
183
184 int getDifferenceRightcxx . . $ getDifferenceRight(573e6b66982f46d).(t_Aligncxx . . $ t_Align#* ptA, t_Aligncxx . . $ t_Align#* ptB, int nSplit, int nLenI);
185
186 void allocateMatricescxx . . $ allocateMatrices(9a4b93be03ff8555).(int nLenI, int ***paanT, int ***paanBestT, int ***paanT2, int ***paanBestT2);
187
188 char* getTrimeracxx . . $ getTrimera(c4851635f50b3b1c).(int *pnCLength, t_Aligncxx . . $ t_Align#* ptA, t_Aligncxx . . $ t_Align#* ptB, t_Aligncxx . . $ t_Align#* ptC, int nSplit1, int nSplit2, int nLenI);
189
190 char* getQuameracxx . . $ getQuamera(efe738d96bfd9e1f).(int *pnCLength, t_Aligncxx . . $ t_Align#* ptA, t_Aligncxx . . $ t_Align#* ptB, t_Aligncxx . . $ t_Align#* ptC, t_Aligncxx . . $ t_Align#* ptD, int nSplit1, int nSplit2, int nSplit3, int nLenI);
191
192 double calcLoonIndexcxx . . $ calcLoonIndex(9a8e28e6d5f90284).(t_Datacxx . . $ t_Data# *ptSeqData, t_Datacxx . . $ t_Data# *ptRefData, int nI, int nP1, int nP2, int* pnSplit, int* pnParentD, t_Paramscxx . . $ t_Params# *ptParams);
193
194 void destroyDatacxx . . $ destroyData(4c549200977ca370).(t_Datacxx . . $ t_Data# *ptData);
195
196 int alignAllcxx . . $ alignAll(524cacf810e60175).(int nI, int nLenI, int *pnBest, int *pnBestJ, int *anRestrict, int nK, t_Datacxx . . $ t_Data# *ptSeqData, t_Datacxx . . $ t_Data# *ptRefData, t_Aligncxx . . $ t_Align#* atAlign, t_Paramscxx . . $ t_Params# *ptParams, int *anChi);
197
198 int getBestChimeracxx . . $ getBestChimera(2d7282acf20a9b1f).(int nK, t_Datacxx . . $ t_Data# *ptRefData, int* pnP1, int* pnP2, int *pnSplit, int* anRestrict, int nLenI, t_Aligncxx . . $ t_Align#* atAlign, int* anD, int* anR, int* anBestD, int* anBestR);
199
200 int getBestTrimeracxx . . $ getBestTrimera(f9c1488461dda7a6).(int nK, t_Datacxx . . $ t_Data# *ptRefData, int* pnT1, int* pnT2, int* pnT3, int *pnSplit1, int *pnSplit2, int* anRestrict, int nLenI, t_Aligncxx . . $ t_Align#* atAlign, int* anD, int* anR, int* anBestD, int *anBestR);
201
202 void sortByFreqcxx . . $ sortByFreq(4c549200977ca370).(t_Datacxx . . $ t_Data# *ptData);
203
204 double getBestChimeraDcxx . . $ getBestChimeraD(826039e3613a787b).(int nK, t_Datacxx . . $ t_Data# *ptRefData, int* pnP1, int* pnP2, int *pnSplit, int* anRestrict, int nLenI, t_Aligncxx . . $ t_Align#* atAlign, double* adD, double* adR, int* anBestD, int* anBestR);
205
206 double getBestTrimeraDcxx . . $ getBestTrimeraD(4772471c8cd55b7a).(int nK, t_Datacxx . . $ t_Data# *ptRefData, int* pnT1, int* pnT2, int* pnT3, int *pnSplit1, int *pnSplit2, int* anRestrict, int nLenI, t_Aligncxx . . $ t_Align#* atAlign, double* adD, double* adR, int* anBestD, int *anBestR);
207
208 double distNcxx . . $ distN(f068444b76cc40ec).(char cA, char cB);
209
210 #endif