Debian Codegraph @

inc/core/AgnCliquePair.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_CLIQUE_PAIR
11 #define AEGEAN_CLIQUE_PAIR
12
13 #include "AgnComparison.h"
14 #include "AgnTranscriptClique.h"
15
16 /**
17 * @class AgnCliquePair
18 *
19 * The AgnCliquePair class facilitates comparison of two alternative sources of
20 * annotation for the same sequence.
21 */
22 typedef struct AgnCliquePair AgnCliquePair;
23
24 /**
25 * @function Based on the already-computed comparison statistics, classify this
26 * clique pair as a perfect match, a CDS match, etc. See
27 * :c:type:`AgnCompClassification`.
28 */
29 AgnCompClassification agn_clique_pair_classify(AgnCliquePair *pair);
30
31 /**
32 * @function Add this clique pair's internal comparison stats to a larger set of
33 * aggregate stats.
34 */
35 void agn_clique_pair_comparison_aggregate(AgnCliquePair *pair,
36 AgnComparison *comp);
37
38 /**
39 * @function Same as c:func:`agn_clique_pair_compare_direct`, but with pointer
40 * dereferencing.
41 */
42 int agn_clique_pair_compare(void *p1, void *p2);
43
44 /**
45 * @function Determine which pair has higher comparison scores. Returns 1 if the
46 * first pair has better scores, -1 if the second pair has better scores, 0 if
47 * they are equal.
48 */
49 int agn_clique_pair_compare_direct(AgnCliquePair *p1, AgnCliquePair *p2);
50
51 /**
52 * @function Negation of c:func:`agn_clique_pair_compare`.
53 */
54 int agn_clique_pair_compare_reverse(void *p1, void *p2);
55
56 /**
57 * @function Class destructor.
58 */
59 void agn_clique_pair_delete(AgnCliquePair *pair);
60
61 /**
62 * @function Return a pointer to the prediction annotation from this pair.
63 */
64 AgnTranscriptClique *agn_clique_pair_get_pred_clique(AgnCliquePair *pair);
65
66 /**
67 * @function Return a pointer to the reference annotation from this pair.
68 */
69 AgnTranscriptClique *agn_clique_pair_get_refr_clique(AgnCliquePair *pair);
70
71 /**
72 * @function Return a pointer to this clique pairs comparison statistics.
73 */
74 AgnComparison *agn_clique_pair_get_stats(AgnCliquePair *pair);
75
76 /**
77 * @function Class constructor.
78 */
79 AgnCliquePair* agn_clique_pair_new(AgnTranscriptClique *refr,
80 AgnTranscriptClique *pred);
81
82 /**
83 * @function Run unit tests for this class. Returns true if all tests passed.
84 */
85 bool agn_clique_pair_unit_test(AgnUnitTest *test);
86
87 #endif