Debian Codegraph @

inc/core/AgnGaevalVisitor.h

raw
1 /**
2
3 Copyright (c) 2010-2015, Daniel S. Standage and CONTRIBUTORS
4
5 The AEGeAn Toolkit is distributed under the ISC License. See
6 the 'LICENSE' file in the AEGeAn source code distribution or
7 online at https://github.com/standage/AEGeAn/blob/master/LICENSE.
8
9 **/
10
11 #ifndef AEGEAN_GAEVAL_VISITOR
12 #define AEGEAN_GAEVAL_VISITOR
13
14 #include "extended/node_stream_api.h"
15 #include "AgnUnitTest.h"
16
17 /**
18 * @class AgnGaevalVisitor
19 *
20 * Implements the GenomeTools ``GtNodeVisitor`` interface. This is a node
21 * visitor used for calculating transcript coverage and integrity scores for
22 * gene models using alignment data.
23 */
24 typedef struct AgnGaevalVisitor AgnGaevalVisitor;
25
26 /**
27 * @type Parameters used in calculating GAEVAL integrity.
28 * See http://www.plantgdb.org/GAEVAL/docs/integrity.html
29 */
30 struct AgnGaevalParams
31 {
32 double alpha;
33 double beta;
34 double gamma;
35 double epsilon;
36 GtUword exp_cds_len;
37 GtUword exp_5putr_len;
38 GtUword exp_3putr_len;
39 };
40 typedef struct AgnGaevalParams AgnGaevalParams;
41
42 /**
43 * @function Constructor for a node stream based on this node visitor.
44 */
45 GtNodeStream* agn_gaeval_stream_new(GtNodeStream *in, GtNodeStream *astream,
46 AgnGaevalParams gparams);
47
48 /**
49 * @function Class constructor for the node visitor.
50 */
51 GtNodeVisitor*
52 agn_gaeval_visitor_new(GtNodeStream *astream, AgnGaevalParams gparams);
53
54 /**
55 * @function Run unit tests for this class.
56 */
57 bool agn_gaeval_visitor_unit_test(AgnUnitTest *test);
58
59 #endif