Debian Codegraph @

inc/core/AgnCompareReportHTML.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_COMPARE_REPORT_HTML
11 #define AEGEAN_COMPARE_REPORT_HTML
12
13 #include "core/logger_api.h"
14 #include "extended/node_visitor_api.h"
15 #include "AgnLocus.h"
16
17 /**
18 * @class AgnCompareReportHTML
19 *
20 * The ``AgnCompareReportHTML`` class is an extension of the
21 * ``AgnCompareReport`` class. This node visitor relies on its parent class to
22 * process a stream of ``AgnLocus`` objects (containing two alternative sources
23 * of annotation to be compared) and then produces textual reports of the
24 * comparison statistics.
25 */
26 typedef struct AgnCompareReportHTML AgnCompareReportHTML;
27
28 /**
29 * @functype By default, the ParsEval summary report includes an overview with
30 * the start time, filenames, and command-line arguments. Users can override
31 * this behavior by specifying a callback function that follows this signature.
32 */
33 typedef void (*AgnCompareReportHTMLOverviewFunc)(FILE *outstream, void *data);
34
35
36 /**
37 * @function After the node stream has been processed, call this function to
38 * write a summary of all locus comparisons to the output directory.
39 */
40 void agn_compare_report_html_create_summary(AgnCompareReportHTML *rpt);
41
42 /**
43 * @function Class constructor. Creates a node visitor used to process a stream
44 * of ``AgnLocus`` objects containing two sources of annotation to be compared.
45 * Reports will be written in ``outdir`` and status messages will be written
46 * to the logger.
47 */
48 GtNodeVisitor *agn_compare_report_html_new(const char *outdir, bool gff3,
49 AgnLocusPngMetadata *pngdata,
50 GtLogger *logger);
51
52 /**
53 * @function By default, the summary report's title will be 'ParsEval Summary'.
54 * Use this function to replace the title text.
55 */
56 void agn_compare_report_html_reset_summary_title(AgnCompareReportHTML *rpt,
57 GtStr *title_string);
58
59 /**
60 * @function Specify a callback function to be used when printing an overview
61 * on the summary report.
62 */
63 void agn_compare_report_html_set_overview_func(AgnCompareReportHTML *rpt,
64 AgnCompareReportHTMLOverviewFunc func,
65 void *funcdata);
66
67 #endif