Debian Codegraph @

src/dr/app/beast/BeastVersion.java

raw symbols SCIP
1 /*
2 * BeastVersion.java
3 *
4 * Copyright (c) 2002-2015 Alexei Drummond, Andrew Rambaut and Marc Suchard
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 dr.app.beast;
27
28 import dr.util.Author;
29 import dr.util.Citable;
30 import dr.util.Citation;
31 import dr.util.Version;
32
33 import java.util.Arrays;
34 import java.util.Collections;
35 import java.util.List;
36
37 /**
38 * This class provides a mechanism for returning the version number of the
39 * dr software.
40 *
41 * This is manually updated as required. The REVISION string is no longer used
42 * since switching to GitHub.
43 *
44 * @author Alexei Drummond
45 * @author Andrew Rambaut
46 *
47 * $Id$
48 */
49 public class BeastVersion implements Version, Citable {
50
51 public static final BeastVersion INSTANCE = new BeastVersion();
52
53 /**
54 * Version string: assumed to be in format x.x.x
55 */
56 private static final String VERSION = "1.10.4";
57
58 private static final String DATE_STRING = "2002-2018";
59
60 private static final boolean IS_PRERELEASE = true;
61
62 // this is now being manually updated since the move to GitHub. 7 digits of GitHub hash.
63 private static final String REVISION = "bc6cbd9";
64
65 public String getVersion() {
66 return VERSION;
67 }
68
69 public String getVersionString() {
70 return "v" + VERSION + (IS_PRERELEASE ? " Prerelease #" + REVISION : "");
71 }
72
73 public String getDateString() {
74 return DATE_STRING;
75 }
76
77 public String[] getCredits() {
78 return new String[]{
79 "Designed and developed by",
80 "Alexei J. Drummond, Andrew Rambaut and Marc A. Suchard",
81 "",
82 "Department of Computer Science",
83 "University of Auckland",
84 "[email protected]",
85 "",
86 "Institute of Evolutionary Biology",
87 "University of Edinburgh",
88 "[email protected]",
89 "",
90 "David Geffen School of Medicine",
91 "University of California, Los Angeles",
92 "[email protected]",
93 "",
94 "Downloads, Help & Resources:",
95
96 "\thttp://beast.community",
97 "",
98 "Source code distributed under the GNU Lesser General Public License:",
99 "\thttp://github.com/beast-dev/beast-mcmc",
100 "",
101 "BEAST developers:",
102 "\tAlex Alekseyenko, Guy Baele, Trevor Bedford, Filip Bielejec, Erik Bloomquist, Matthew Hall,",
103 "\tJoseph Heled, Sebastian Hoehna, Denise Kuehnert, Philippe Lemey, Wai Lok Sibon Li,",
104 "\tGerton Lunter, Sidney Markowitz, Vladimir Minin, Michael Defoin Platel,",
105 "\tOliver Pybus, Chieh-Hsi Wu, Walter Xie",
106 "",
107 "Thanks to:",
108 "\tRoald Forsberg, Beth Shapiro and Korbinian Strimmer"};
109 }
110
111 public String getHTMLCredits() {
112 return
113 "<p>Designed and developed by<br>" +
114 "Alexei J. Drummond, Andrew Rambaut and Marc A. Suchard</p>" +
115 "<p>Department of Computer Science, University of Auckland<br>" +
116 "<a href=\"mailto:[email protected]\">[email protected]</a></p>" +
117 "<p>Institute of Evolutionary Biology, University of Edinburgh<br>" +
118 "<a href=\"mailto:[email protected]\">[email protected]</a></p>" +
119 "<p>David Geffen School of Medicine, University of California, Los Angeles<br>" +
120 "<a href=\"mailto:[email protected]\">[email protected]</a></p>" +
121 "<p><a href=\"http://beast.community\">http://beast.community</a></p>" +
122 "<p>Source code distributed under the GNU LGPL:<br>" +
123 "<a href=\"http://github.com/beast-dev/beast-mcmc\">http://github.com/beast-dev/beast-mcmc</a></p>" +
124 "<p>BEAST developers:<br>" +
125 "Alex Alekseyenko, Guy Baele, Trevor Bedford, Filip Bielejec, Erik Bloomquist, Matthew Hall,<br>"+
126 "Joseph Heled, Sebastian Hoehna, Denise Kuehnert, Philippe Lemey, Wai Lok Sibon Li,<br>"+
127 "Gerton Lunter, Sidney Markowitz, Vladimir Minin, Michael Defoin Platel,<br>"+
128 "Oliver Pybus, Chieh-Hsi Wu, Walter Xie</p>" +
129 "<p>Thanks to Roald Forsberg, Beth Shapiro and Korbinian Strimmer</p>";
130 }
131
132 public String getBuildString() {
133 return "https://github.com/beast-dev/beast-mcmc/commit/" + REVISION;
134 }
135
136 @Override
137 public Citation.Category getCategory() {
138 return Citation.Category.FRAMEWORK;
139 }
140
141 @Override
142 public String getDescription() {
143 return "BEAST primary citation";
144 }
145
146 @Override
147 public List<Citation> getCitations() {
148 return Arrays.asList(CITATIONS);
149 }
150
151 public static Citation[] CITATIONS = new Citation[] {
152 new Citation(
153 new Author[]{
154 new Author("MA", "Suchard"),
155 new Author("P", "Lemey"),
156 new Author("G", "Baele"),
157 new Author("DL", "Ayres"),
158 new Author("AJ", "Drummond"),
159 new Author("A", "Rambaut")
160 },
161 "Bayesian phylogenetic and phylodynamic data integration using BEAST 1.10",
162 2018,
163 "Virus Evolution",
164 4, "vey016",
165 "10.1093/ve/vey016"),
166 // new Citation(
167 // new Author[]{
168 // new Author("AJ", "Drummond"),
169 // new Author("MA", "Suchard"),
170 // new Author("Dong", "Xie"),
171 // new Author("A", "Rambaut")
172 // },
173 // "Bayesian phylogenetics with BEAUti and the BEAST 1.7",
174 // 2012,
175 // "Mol Biol Evol",
176 // 29, 1969, 1973,
177 // "10.1093/molbev/mss075")
178 };
179
180 }