| 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_INFER_EXONS_VISITOR |
| 11 |
#define AEGEAN_INFER_EXONS_VISITOR |
| 12 |
|
| 13 |
#include "core/logger_api.h" |
| 14 |
#include "extended/node_stream_api.h" |
| 15 |
#include "AgnUnitTest.h" |
| 16 |
|
| 17 |
/** |
| 18 |
* @class AgnInferExonsVisitor |
| 19 |
* |
| 20 |
* Implements the GenomeTools ``GtNodeVisitor`` interface. This is a node |
| 21 |
* visitor used for inferring exon features when only CDS and UTR features are |
| 22 |
* provided explicitly. |
| 23 |
*/ |
| 24 |
typedef struct AgnInferExonsVisitor AgnInferExonsVisitor; |
| 25 |
|
| 26 |
/** |
| 27 |
* @function Constructor for a node stream based on this node visitor. |
| 28 |
*/ |
| 29 |
GtNodeStream* agn_infer_exons_stream_new(GtNodeStream *in, GtStr *source, |
| 30 |
GtLogger *logger); |
| 31 |
|
| 32 |
/** |
| 33 |
* @function Class constructor for the node visitor. |
| 34 |
*/ |
| 35 |
GtNodeVisitor* agn_infer_exons_visitor_new(GtLogger *logger); |
| 36 |
|
| 37 |
/** |
| 38 |
* @function Set the source value (GFF3 column 2) that will be assigned to any |
| 39 |
* inferred features (default is '.'). |
| 40 |
*/ |
| 41 |
void agn_infer_exons_visitor_set_source(AgnInferExonsVisitor *v, GtStr *source); |
| 42 |
|
| 43 |
/** |
| 44 |
* @function Run unit tests for this class. |
| 45 |
*/ |
| 46 |
bool agn_infer_exons_visitor_unit_test(AgnUnitTest *test); |
| 47 |
|
| 48 |
#endif |