Debian Codegraph @

inc/core/AgnLocusMapVisitor.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_LOCUS_MAP_VISITOR
11 #define AEGEAN_LOCUS_MAP_VISITOR
12
13 #include "extended/node_stream_api.h"
14 #include "AgnUnitTest.h"
15
16 /**
17 * @class AgnLocusMapVisitor
18 *
19 * Implements the GenomeTools ``GtNodeVisitor`` interface. This is a node
20 * visitor used for printing out gene --> locus and mRNA --> locus relationships
21 * as part of a locus/iLocus processing stream.
22 */
23 typedef struct AgnLocusMapVisitor AgnLocusMapVisitor;
24
25 /**
26 * @function Constructor for a node stream based on this node visitor. See
27 * :c:func:`agn_locus_map_visitor_new` for a description of the function
28 * arguments.
29 */
30 GtNodeStream*
31 agn_locus_map_stream_new(GtNodeStream *in, FILE *genefh, FILE *mrnafh);
32
33 /**
34 * @function Constructor for the node visitor. Gene-to-locus relationships are
35 * printed to the ``genefh`` file handle, while mRNA-to-locus relationships are
36 * printed to the ``mrnafh`` file handle. Setting either file handle to NULL
37 * will disable printing the corresponding output.
38 */
39 GtNodeVisitor *agn_locus_map_visitor_new(FILE *genefh, FILE *mrnafh);
40
41 #endif