1 /****************************************************************\
2 * *
3 * C4 dynamic programming library - DP layout code *
4 * *
5 * Guy St.C. Slater.. mailto:guy@ebi.ac.uk *
6 * Copyright (C) 2000-2009. All Rights Reserved. *
7 * *
8 * This source code is distributed under the terms of the *
9 * GNU General Public License, version 3. See the file COPYING *
10 * or http://www.gnu.org/licenses/gpl.txt for details *
11 * *
12 * If you use this code, please keep this notice intact. *
13 * *
14 \****************************************************************/
15
16 #include <glib.h>
17
18 #include "optimal.h"
19 #include "match.h"
20
Argument_main(Argument * arg)21 int Argument_main(Argument *arg){
22 register C4_Model *model = C4_Model_create("test");
23 register Optimal *optimal;
24 register Match *match;
25 Match_ArgumentSet_create(arg);
26 Argument_process(arg, "optimal.test", NULL, NULL);
27 match = Match_find(Match_Type_DNA2DNA);
28 C4_Model_add_transition(model, "start to end", NULL, NULL, 1, 1,
29 NULL, C4_Label_MATCH, match);
30 C4_Model_close(model);
31 optimal = Optimal_create(model, "optimal test",
32 Optimal_Type_SCORE, FALSE);
33 /**/
34 Optimal_destroy(optimal);
35 C4_Model_destroy(model);
36 return 0;
37 }
38
39