Debian Codegraph @

atac-driver/chainer/halign/halign.H

raw symbols SCIP
1 /**************************************************************************
2 * This file is part of A2Amapper.
3 * Copyright (c) 2004 Applera Corporation
4 * Author: Clark Mobarry
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received (LICENSE.txt) a copy of the GNU General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 **************************************************************************/
20
21 #ifndef _ALIGN__HALIGN_H_
22 #define _ALIGN__HALIGN_H_
23
24 // CMM 2004 Feb 05: The variable "first" does not really belong in
25 // the alignment object. We should put it into a separate iterator
26 // over alignment struct/class. Currently, this is called by Python
27 // so I would need to learn how to make C++ glue code for Python
28 // objects. Currently I just make glue code for Python modules.
29
30 typedef struct H_Alignment_t {
31 int offset1;
32 int offset2;
33 int len1;
34 int len2;
35 int score;
36 int first;
37 int scriptAsArrayMax;
38 int *scriptAsArray;
39 } H_Alignment_t;
40
41 void halignStart(char *string1,
42 char *string2,
43 H_Alignment_t *alignment);
44
45
46 int iterateUngappedAlignSharpEnds(H_Alignment_t *aln,
47 int &bgn1,
48 int &bgn2,
49 int &len1,
50 int &len2,
51 int &nmat);
52
53 #endif
54