/** Copyright (c) 2010-2014, Daniel S. Standage and CONTRIBUTORS The AEGeAn Toolkit is distributed under the ISC License. See the 'LICENSE' file in the AEGeAn source code distribution or online at https://github.com/standage/AEGeAn/blob/master/LICENSE. **/ #ifndef AEGEAN_INFER_CDS_VISITOR #define AEGEAN_INFER_CDS_VISITOR #include "core/logger_api.h" #include "extended/node_stream_api.h" #include "AgnUnitTest.h" /** * @class AgnInferCDSVisitor * * Implements the GenomeTools ``GtNodeVisitor`` interface. This is a node * visitor used for inferring an mRNA's CDS from explicitly defined exon and * start/stop codon features. */ typedef struct AgnInferCDSVisitor AgnInferCDSVisitor; /** * @function Constructor for a node stream based on this node visitor. */ GtNodeStream* agn_infer_cds_stream_new(GtNodeStream *in, GtStr *source, GtLogger *logger); /** * @function Constructor for the node visitor. */ GtNodeVisitor *agn_infer_cds_visitor_new(GtLogger *logger); /** * @function Set the source value (GFF3 column 2) that will be assigned to any * inferred features (default is '.'). */ void agn_infer_cds_visitor_set_source(AgnInferCDSVisitor *v, GtStr *source); /** * @function Run unit tests for this class. Returns true if all tests passed. */ bool agn_infer_cds_visitor_unit_test(AgnUnitTest *test); #endif