Debian Codegraph @

src/test/dr/app/beauti/BeautiTester.java

raw symbols SCIP
1 /*
2 * BeautiTester.java
3 *
4 * Copyright (C) 2002-2006 Alexei Drummond and Andrew Rambaut
5 *
6 * This file is part of BEAST.
7 * See the NOTICE file distributed with this work for additional
8 * information regarding copyright ownership and licensing.
9 *
10 * BEAST is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * BEAST is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with BEAST; if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 * Boston, MA 02110-1301 USA
24 */
25
26 package test.dr.app.beauti;
27
28 import dr.app.beauti.options.BeautiOptions;
29
30 /**
31 * @author Andrew Rambaut
32 * @author Alexei Drummond
33 * @version $Id: BeautiTester.java,v 1.2 2005/07/11 14:07:25 rambaut Exp $
34 */
35 public class BeautiTester {
36
37 public BeautiTester() {
38 BeautiTesterConfig btc = new BeautiTesterConfig();
39 btc.createScriptWriter("tests/run_script.sh");
40
41 BeautiOptions beautiOptions = btc.createOptions();
42 btc.importFromFile("examples/Primates.nex", beautiOptions, false);
43 btc.buildNucModels("tests/pri_", beautiOptions);
44
45 beautiOptions = btc.createOptions();
46 btc.importFromFile("examples/Primates.nex", beautiOptions, true);
47 btc.buildAAModels("tests/pri_", beautiOptions);
48
49 beautiOptions = btc.createOptions();
50 btc.importFromFile("examples/Dengue4.env.nex", beautiOptions, false);
51 // beautiOptions.fixedSubstitutionRate = false;
52 btc.buildNucModels("tests/den_", beautiOptions);
53
54 beautiOptions = btc.createOptions();
55 btc.importFromFile("examples/Dengue4.env.nex", beautiOptions, true);
56 // beautiOptions.fixedSubstitutionRate = false;
57 btc.buildAAModels("tests/den_", beautiOptions);
58
59 btc.closeScriptWriter();
60 }
61
62
63
64 //Main method
65 public static void main(String[] args) {
66
67 new BeautiTester();
68 }
69 }
70