Debian Codegraph @

inc/core/AgnMrnaRepVisitor.h

raw
1 /**
2
3 Copyright (c) 2010-2014, 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 #ifndef AEGEAN_MRNA_REP_VISITOR
11 #define AEGEAN_MRNA_REP_VISITOR
12
13 #include "extended/node_stream_api.h"
14 #include "AgnUnitTest.h"
15
16 /**
17 * @class AgnMrnaRepVisitor
18 *
19 * Implements the GenomeTools ``GtNodeVisitor`` interface. This is a node
20 * visitor used for filtering out all but the longest mRNA (as measured by CDS
21 * length) from alternatively spliced genes.
22 */
23 typedef struct AgnMrnaRepVisitor AgnMrnaRepVisitor;
24
25 /**
26 * @function Constructor for a node stream based on this node visitor.
27 */
28 GtNodeStream* agn_mrna_rep_stream_new(GtNodeStream *in, FILE *mapstream);
29
30 /**
31 * @function Constructor for the node visitor. If `mapstream` is not NULL, each
32 * gene/mRNA rep pair will be written to `mapstream`.
33 */
34 GtNodeVisitor *agn_mrna_rep_visitor_new(FILE *mapstream);
35
36 /**
37 * @function By default, the representative mRNA for each gene will be reported.
38 * Use this function to specify an alternative top-level feature to gene (such
39 * as locus).
40 */
41 void agn_mrna_rep_visitor_set_parent_type(AgnMrnaRepVisitor *v,
42 const char *type);
43
44 /**
45 * @function Run unit tests for this class. Returns true if all tests passed.
46 */
47 bool agn_mrna_rep_visitor_unit_test(AgnUnitTest *test);
48
49 #endif