Debian Codegraph @

inc/core/AgnGeneStream.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_GENE_STREAM
11 #define AEGEAN_GENE_STREAM
12
13 #include "core/logger_api.h"
14 #include "extended/node_stream_api.h"
15 #include "AgnUnitTest.h"
16
17 /**
18 * @class AgnGeneStream
19 *
20 * Implements the ``GtNodeStream`` interface. Searches the complete feature
21 * graph of each feature node in the input for canonical protein-coding gene
22 * features. Some basic sanity checks are performed on the mRNA(s) associated
23 * with each gene, and genes are only delivered to the output stream if they
24 * include one or more valid mRNA subfeatures.
25 */
26 typedef struct AgnGeneStream AgnGeneStream;
27
28 /**
29 * @function Class constructor.
30 */
31 GtNodeStream* agn_gene_stream_new(GtNodeStream *in_stream, GtLogger *logger);
32
33 /**
34 * @function Specify a source (GFF3 column 2) to be applied to newly inferred
35 * features (default is '.').
36 */
37 void agn_gene_stream_set_source(AgnGeneStream *gs, GtStr *source);
38
39 /**
40 * @function Run unit tests for this class. Returns true if all tests passed.
41 */
42 bool agn_gene_stream_unit_test(AgnUnitTest *test);
43
44 #endif