diff --git a/Dockerfile b/Dockerfile
index 2ce36b8..890cc9b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
# Dockerfile to build container for unit testing
-FROM openjdk:10
+FROM openjdk:17
RUN apt-get update && apt-get install -y git ant
diff --git a/README.md b/README.md
index 096a951..b451555 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ KV Parag, L du Plessis, OG Pybus. _Jointly inferring the dynamics of population
To install BESP:
-1. Download and install [BEAST2](www.beast2.org) (at least version 2.5.0).
+1. Download and install [BEAST2](www.beast2.org) (at least version 2.7.0).
2. Launch the BEAUti application distributed with BEAST2.
3. From the File menu select "Manage Packages".
4. Click the "Package repositories" button at the bottom of the Package Manager dialog box.
@@ -26,7 +26,7 @@ To install BESP:
To build this package from source, ensure that you have the following installed:
-- Java JDK v1.8
+- Java JDK v17
- Apache Ant v1.9 or later
- An internet connection
diff --git a/ScreenShotIntelliJ.png b/ScreenShotIntelliJ.png
new file mode 100644
index 0000000..59d0612
Binary files /dev/null and b/ScreenShotIntelliJ.png differ
diff --git a/build.xml b/build.xml
index 5e68e46..2cdcc7a 100644
--- a/build.xml
+++ b/build.xml
@@ -7,15 +7,16 @@
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
+
+
+
+
+
@@ -65,7 +69,7 @@
No local copy of the beast2 source found at ${beastDir}.
Compiling against version ${beast-version} from GitHub.
-
+
@@ -80,10 +84,41 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -95,21 +130,36 @@
+ srcdir="${beastDir}/src" destdir="${build-beast}"
+ includeantruntime="false">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
@@ -123,7 +173,9 @@
-
+
@@ -144,10 +196,11 @@
-
-
+
@@ -186,7 +239,7 @@
-
+
@@ -211,8 +264,8 @@
-
-
+
+
diff --git a/examples/BESP/bison_besp_mcpgamma_limits_densdefined.xml b/examples/BESP/bison_besp_mcpgamma_limits_densdefined.xml
index 28d9803..7e33d21 100644
--- a/examples/BESP/bison_besp_mcpgamma_limits_densdefined.xml
+++ b/examples/BESP/bison_besp_mcpgamma_limits_densdefined.xml
@@ -1,21 +1,20 @@
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -181,23 +180,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -367,24 +366,24 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -404,7 +403,7 @@
-
+
@@ -420,7 +419,7 @@
-
+
@@ -476,7 +475,7 @@
-
+
@@ -493,7 +492,7 @@
-
+
diff --git a/examples/BESP/bison_besp_mcpgamma_limits_freqdefined.xml b/examples/BESP/bison_besp_mcpgamma_limits_freqdefined.xml
index b0eb8a8..9dec0e8 100644
--- a/examples/BESP/bison_besp_mcpgamma_limits_freqdefined.xml
+++ b/examples/BESP/bison_besp_mcpgamma_limits_freqdefined.xml
@@ -1,21 +1,20 @@
+ :bsp.util"
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -181,23 +180,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -367,25 +366,25 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -405,7 +404,7 @@
-
+
@@ -421,7 +420,7 @@
-
+
@@ -477,7 +476,7 @@
-
+
@@ -494,7 +493,7 @@
-
+
diff --git a/examples/BESP/bison_besp_mcpgamma_limits_robust.xml b/examples/BESP/bison_besp_mcpgamma_limits_robust.xml
index 089f401..e5a536b 100644
--- a/examples/BESP/bison_besp_mcpgamma_limits_robust.xml
+++ b/examples/BESP/bison_besp_mcpgamma_limits_robust.xml
@@ -1,22 +1,20 @@
-
+ :bsp.util"
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -181,23 +179,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -366,24 +364,24 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -403,7 +401,7 @@
-
+
@@ -419,7 +417,7 @@
-
+
@@ -471,7 +469,7 @@
-
+
@@ -487,7 +485,7 @@
-
+
diff --git a/examples/BESP/bison_besp_mcpgamma_robust.xml b/examples/BESP/bison_besp_mcpgamma_robust.xml
index e4c75fc..c30480a 100644
--- a/examples/BESP/bison_besp_mcpgamma_robust.xml
+++ b/examples/BESP/bison_besp_mcpgamma_robust.xml
@@ -1,21 +1,20 @@
+ :bsp.util"
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -181,23 +180,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -366,24 +365,24 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -403,7 +402,7 @@
-
+
@@ -419,7 +418,7 @@
-
+
@@ -471,7 +470,7 @@
-
+
@@ -487,7 +486,7 @@
-
+
diff --git a/examples/BSP/bison_bsp_mcpgamma.xml b/examples/BSP/bison_bsp_mcpgamma.xml
index 2f80211..3f233ff 100644
--- a/examples/BSP/bison_bsp_mcpgamma.xml
+++ b/examples/BSP/bison_bsp_mcpgamma.xml
@@ -1,20 +1,20 @@
+ :bsp.util"
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -180,23 +180,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -365,24 +365,24 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -397,7 +397,7 @@
-
+
@@ -413,7 +413,7 @@
-
+
@@ -467,7 +467,7 @@
-
+
@@ -481,7 +481,7 @@
-
+
diff --git a/examples/BSP/bison_bsp_mcpgamma_limits.xml b/examples/BSP/bison_bsp_mcpgamma_limits.xml
index 4144f03..1e222b0 100644
--- a/examples/BSP/bison_bsp_mcpgamma_limits.xml
+++ b/examples/BSP/bison_bsp_mcpgamma_limits.xml
@@ -1,20 +1,20 @@
+ :bsp.util"
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -180,23 +180,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -365,24 +365,24 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -397,7 +397,7 @@
-
+
@@ -413,7 +413,7 @@
-
+
@@ -467,7 +467,7 @@
-
+
@@ -481,7 +481,7 @@
-
+
diff --git a/examples/BSP/bison_bsp_mcpgamma_skylinecomparison.xml b/examples/BSP/bison_bsp_mcpgamma_skylinecomparison.xml
index 10b8255..408f479 100644
--- a/examples/BSP/bison_bsp_mcpgamma_skylinecomparison.xml
+++ b/examples/BSP/bison_bsp_mcpgamma_skylinecomparison.xml
@@ -1,21 +1,20 @@
-
+ :bsp.util"
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -180,23 +179,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -365,20 +364,20 @@
-
+
1.0
-
+
-
+
-
+
@@ -387,7 +386,7 @@
-
+
@@ -402,7 +401,7 @@
-
+
@@ -418,7 +417,7 @@
-
+
@@ -473,7 +472,7 @@
-
+
@@ -487,7 +486,7 @@
-
+
diff --git a/examples/BSP/bison_bspold_mcpgamma.xml b/examples/BSP/bison_bspold_mcpgamma.xml
index 58932bc..69caf12 100644
--- a/examples/BSP/bison_bspold_mcpgamma.xml
+++ b/examples/BSP/bison_bspold_mcpgamma.xml
@@ -1,18 +1,20 @@
+ beautistatus=''
+ namespace="beast.base.core:beast.base.inference
+ :beast.base.evolution.alignment
+ :beast.base.evolution.tree.coalescent
+ :beast.base.util
+ :beast.base.inference.parameter
+ :beast.base.evolution.nuc
+ :beast.base.evolution.operator:beast.base.inference.operator
+ :beast.base.evolution.sitemodel
+ :beast.base.evolution.substitutionmodel
+ :beast.base.evolution.likelihood
+ :bsp.distributions
+ :bsp.util"
+ required="BEAST v2.7.2"
+ version="2.7">
@@ -178,23 +180,23 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
U12959_0_0=0,
U12958_0_0=0,
U12957_0_0=0,
@@ -363,24 +365,24 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -395,7 +397,7 @@
-
+
@@ -411,7 +413,7 @@
-
+
@@ -465,7 +467,7 @@
-
+
@@ -478,7 +480,7 @@
-
+
diff --git a/examples/BSP/hcv_bsp_mcpgamma.xml b/examples/BSP/hcv_bsp_mcpgamma.xml
index 492ffce..8b916ea 100644
--- a/examples/BSP/hcv_bsp_mcpgamma.xml
+++ b/examples/BSP/hcv_bsp_mcpgamma.xml
@@ -1,29 +1,32 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -118,25 +121,25 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -165,7 +168,7 @@
-
+
@@ -181,7 +184,7 @@
-
+
7.9E-4
@@ -242,7 +245,7 @@
-
+
@@ -257,7 +260,7 @@
-
+
diff --git a/examples/BSP/hcv_bsp_mcpgamma_skylinecomparison.xml b/examples/BSP/hcv_bsp_mcpgamma_skylinecomparison.xml
index e44de7a..7d88d3a 100644
--- a/examples/BSP/hcv_bsp_mcpgamma_skylinecomparison.xml
+++ b/examples/BSP/hcv_bsp_mcpgamma_skylinecomparison.xml
@@ -1,29 +1,32 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -118,21 +121,21 @@
-
+
1.0
-
+
-
+
-
+
@@ -140,7 +143,7 @@
-
+
@@ -169,7 +172,7 @@
-
+
@@ -185,7 +188,7 @@
-
+
7.9E-4
@@ -248,7 +251,7 @@
-
+
@@ -265,7 +268,7 @@
-
+
diff --git a/examples/BSP/hcv_bsp_robust.xml b/examples/BSP/hcv_bsp_robust.xml
index bcffcea..603e51a 100644
--- a/examples/BSP/hcv_bsp_robust.xml
+++ b/examples/BSP/hcv_bsp_robust.xml
@@ -1,30 +1,32 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -118,21 +120,21 @@
-
+
1.0
-
+
-
+
-
+
@@ -141,7 +143,7 @@
-
+
@@ -170,7 +172,7 @@
-
+
@@ -186,7 +188,7 @@
-
+
7.9E-4
@@ -243,7 +245,7 @@
-
+
@@ -257,7 +259,7 @@
-
+
diff --git a/examples/BSP/hcv_bspold_mcpgamma.xml b/examples/BSP/hcv_bspold_mcpgamma.xml
index ba049a5..4f9fd68 100644
--- a/examples/BSP/hcv_bspold_mcpgamma.xml
+++ b/examples/BSP/hcv_bspold_mcpgamma.xml
@@ -1,27 +1,32 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -116,25 +121,25 @@
-
+
1.0
-
+
-
+
-
+
-
+
@@ -163,7 +168,7 @@
-
+
@@ -179,7 +184,7 @@
-
+
7.9E-4
@@ -241,7 +246,7 @@
-
+
@@ -255,7 +260,7 @@
-
+
diff --git a/fxtemplates/TreePriorsBESP.xml b/fxtemplates/TreePriorsBESP.xml
new file mode 100644
index 0000000..1ada65d
--- /dev/null
+++ b/fxtemplates/TreePriorsBESP.xml
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+
+
+
+
+
+
+
+
+ Coalescent with BESP tree t:$(n)
+
+ Markov chained prior on population sizes of BESP
+
+ Prior on sampling intensity of BESP
+
+
+
+
+ Scale population size of BESP prior of tree t:$(n)
+
+ Scale sampling intensity of BESP prior of tree t:$(n)
+
+ Exchange group sizes of BESP prior of tree t:$(n)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/fxtemplates/TreePriorsBSP.xml b/fxtemplates/TreePriorsBSP.xml
new file mode 100644
index 0000000..a0e3cb3
--- /dev/null
+++ b/fxtemplates/TreePriorsBSP.xml
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+
+
+
+
+
+
+
+ Coalescent with BSP tree t:$(n)
+
+ Markov chained prior on population sizes of BSP
+
+
+
+
+ Scale population size of BSP prior of tree t:$(n)
+
+ Exchange group sizes of BSP prior of tree t:$(n)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/bsp/distributions/BESP.java b/src/bsp/distributions/BESP.java
index 0ac99e0..4d38690 100644
--- a/src/bsp/distributions/BESP.java
+++ b/src/bsp/distributions/BESP.java
@@ -1,17 +1,17 @@
package bsp.distributions;
-import beast.core.Citation;
-import beast.core.Description;
-import beast.core.Input;
-import beast.core.parameter.IntegerParameter;
-import beast.core.parameter.RealParameter;
-import beast.core.util.Log;
-import beast.evolution.tree.coalescent.IntervalType;
-import beast.math.Binomial;
+import beast.base.core.Citation;
+import beast.base.core.Description;
+import beast.base.core.Input;
+import beast.base.core.Log;
+import beast.base.evolution.tree.IntervalType;
+import beast.base.inference.parameter.IntegerParameter;
+import beast.base.inference.parameter.RealParameter;
+import beast.base.util.Binomial;
import java.util.Arrays;
-import static beast.evolution.tree.coalescent.IntervalType.SAMPLE;
+import static beast.base.evolution.tree.IntervalType.SAMPLE;
/***************************************************************
diff --git a/src/bsp/distributions/BSP.java b/src/bsp/distributions/BSP.java
index 1413a53..72e37b6 100644
--- a/src/bsp/distributions/BSP.java
+++ b/src/bsp/distributions/BSP.java
@@ -1,29 +1,29 @@
package bsp.distributions;
-import beast.core.Citation;
-import beast.core.Description;
-import beast.core.Input;
-import beast.core.parameter.IntegerParameter;
-import beast.core.parameter.RealParameter;
-import beast.core.util.Log;
-import beast.evolution.tree.TreeDistribution;
-import beast.evolution.tree.coalescent.IntervalType;
-import beast.evolution.tree.coalescent.TreeIntervals;
-import beast.math.Binomial;
-import beast.util.HeapSort;
-import beast.util.Randomizer;
+import beast.base.core.Citation;
+import beast.base.core.Description;
+import beast.base.core.Input;
+import beast.base.core.Log;
+import beast.base.evolution.tree.IntervalType;
+import beast.base.evolution.tree.TreeDistribution;
+import beast.base.evolution.tree.TreeIntervals;
+import beast.base.inference.parameter.IntegerParameter;
+import beast.base.inference.parameter.RealParameter;
+import beast.base.util.Binomial;
+import beast.base.util.HeapSort;
+import beast.base.util.Randomizer;
import java.util.Arrays;
-import static beast.evolution.tree.coalescent.IntervalType.COALESCENT;
+import static beast.base.evolution.tree.IntervalType.COALESCENT;
/*****************************************
* Bayesian Skyline Plot implementation. *
*****************************************
*
* - This implementation will return the same likelihood as
- * beast.evolution.tree.coalescent.BayesianSkyline, but will hopefully also be faster
+ * beast.base.evolution.tree.coalescent.BayesianSkyline, but will hopefully also be faster
* - This implementation makes use of the TreeIntervals class, like the original BayesianSkyline
* - Only one parameter (popSizes) which can change only at coalescent times, which are grouped with
* popSizeGroupSizes.
diff --git a/src/bsp/util/popSizeChangeTimeLogger.java b/src/bsp/util/popSizeChangeTimeLogger.java
index fa81fbf..6633838 100644
--- a/src/bsp/util/popSizeChangeTimeLogger.java
+++ b/src/bsp/util/popSizeChangeTimeLogger.java
@@ -1,9 +1,9 @@
package bsp.util;
-import beast.core.CalculationNode;
-import beast.core.Function;
-import beast.core.Input;
-import beast.core.Loggable;
+import beast.base.core.Function;
+import beast.base.core.Input;
+import beast.base.core.Loggable;
+import beast.base.inference.CalculationNode;
import bsp.distributions.BSP;
import java.io.PrintStream;
diff --git a/src/bsp/util/samplingIntensityChangeTimeLogger.java b/src/bsp/util/samplingIntensityChangeTimeLogger.java
index 0a33c5c..9269b49 100644
--- a/src/bsp/util/samplingIntensityChangeTimeLogger.java
+++ b/src/bsp/util/samplingIntensityChangeTimeLogger.java
@@ -1,9 +1,9 @@
package bsp.util;
-import beast.core.CalculationNode;
-import beast.core.Function;
-import beast.core.Input;
-import beast.core.Loggable;
+import beast.base.core.Function;
+import beast.base.core.Input;
+import beast.base.core.Loggable;
+import beast.base.inference.CalculationNode;
import bsp.distributions.BESP;
import java.io.PrintStream;
diff --git a/test/beastfx/app/beauti/BEAUtiBESPTest.java b/test/beastfx/app/beauti/BEAUtiBESPTest.java
new file mode 100644
index 0000000..2daa0c5
--- /dev/null
+++ b/test/beastfx/app/beauti/BEAUtiBESPTest.java
@@ -0,0 +1,151 @@
+//package test.beast.app.beauti;
+//
+//import org.junit.Test;
+//import test.beastfx.app.beauti.BeautiBase;
+//
+//import java.io.File;
+//
+///* Run from beast2 module path (examples/nexus/Flu.nex needs to be in path) */
+//public class BEAUtiBESPTest extends BeautiBase {
+//
+// @Test
+// public void beautiBSPTest() throws Exception {
+// warning("Load Flu.nex");
+// importAlignment(NEXUS_DIR, new File("Flu.nex"));
+//
+// JTabbedPaneFixture f = beautiFrame.tabbedPane();
+// f.selectTab("Priors");
+//
+// setAndCheckBSPTreePrior(f);
+// setAndCheckExpGrowthTreePrior(f);
+// setAndCheckBSPTreePrior(f);
+//
+// makeSureXMLParses();
+// }
+//
+// @Test
+// public void beautiBESPTest() throws Exception {
+// warning("Load Flu.nex");
+// importAlignment("../beast2/examples/nexus", new File("Flu.nex"));
+//
+// JTabbedPaneFixture f = beautiFrame.tabbedPane();
+// f.selectTab("Priors");
+//
+// setAndCheckBESPTreePrior(f);
+// setAndCheckExpGrowthTreePrior(f);
+// setAndCheckBESPTreePrior(f);
+// setAndCheckBSPTreePrior(f);
+// setAndCheckBESPTreePrior(f);
+//
+// makeSureXMLParses();
+// }
+//
+//
+//
+// /* Helper functions to set and check tree priors */
+//
+// private void setAndCheckBSPTreePrior(JTabbedPaneFixture f) throws Exception {
+//
+// warning("Change to Coalescent - BSP");
+// beautiFrame.comboBox("TreeDistribution").selectItem("Coalescent BSP");
+// printBeautiState(f);
+//
+// assertStateEquals("Tree.t:Flu", "BSPPopSizes.t:Flu", "BSPGroupSizes.t:Flu");
+// assertOperatorsEqual( "BSPTreeScaler.t:Flu",
+// "BSPTreeRootScaler.t:Flu",
+// "BSPUniformOperator.t:Flu",
+// "BSPSubtreeSlide.t:Flu",
+// "BSPNarrow.t:Flu",
+// "BSPWide.t:Flu",
+// "BSPWilsonBalding.t:Flu",
+// "BSPPopSizesScaler.t:Flu",
+// "BSPGroupSizesDelta.t:Flu");
+// assertPriorsEqual("BSP.t:Flu", "BSPMarkovChainedPopSizes.t:Flu");
+// assertTraceLogEqual( "posterior",
+// "likelihood",
+// "prior",
+// "treeLikelihood.Flu",
+// "TreeHeight.t:Flu",
+// "BSP.t:Flu",
+// "BSPPopSizes.t:Flu",
+// "BSPGroupSizes.t:Flu",
+// "BSPPopSizeChangeTimes.t:Flu");
+//
+// makeSureXMLParses();
+//
+// }
+//
+//
+// private void setAndCheckBESPTreePrior(JTabbedPaneFixture f) throws Exception {
+//
+// warning("Change to Coalescent - BESP");
+// beautiFrame.comboBox("TreeDistribution").selectItem("Coalescent BESP");
+// printBeautiState(f);
+//
+// assertStateEquals("Tree.t:Flu",
+// "BESPPopSizes.t:Flu",
+// "BESPGroupSizes.t:Flu",
+// "BESPSamplingIntensity.t:Flu");
+// assertOperatorsEqual( "BESPTreeScaler.t:Flu",
+// "BESPTreeRootScaler.t:Flu",
+// "BESPUniformOperator.t:Flu",
+// "BESPSubtreeSlide.t:Flu",
+// "BESPNarrow.t:Flu",
+// "BESPWide.t:Flu",
+// "BESPWilsonBalding.t:Flu",
+// "BESPPopSizesScaler.t:Flu",
+// "BESPGroupSizesDelta.t:Flu",
+// "BESPSamplingIntensityScaler.t:Flu");
+// assertPriorsEqual("BESP.t:Flu",
+// "BESPMarkovChainedPopSizes.t:Flu",
+// "BESPSamplingIntensityPrior.t:Flu");
+// assertTraceLogEqual( "posterior",
+// "likelihood",
+// "prior",
+// "treeLikelihood.Flu",
+// "TreeHeight.t:Flu",
+// "BESP.t:Flu",
+// "BESPPopSizes.t:Flu",
+// "BESPGroupSizes.t:Flu",
+// "BESPSamplingIntensity.t:Flu",
+// "BESPPopSizeChangeTimes.t:Flu",
+// "BESPSamplingIntensityChangeTimes.t:Flu");
+//
+// makeSureXMLParses();
+//
+// }
+//
+//
+// private void setAndCheckExpGrowthTreePrior(JTabbedPaneFixture f) throws Exception {
+//
+// warning("Change to Coalescent - exponential population");
+// beautiFrame.comboBox("TreeDistribution").selectItem("Coalescent Exponential Population");
+// printBeautiState(f);
+//
+// assertStateEquals("Tree.t:Flu", "ePopSize.t:Flu", "growthRate.t:Flu");
+// assertOperatorsEqual( "CoalescentExponentialTreeScaler.t:Flu",
+// "CoalescentExponentialTreeRootScaler.t:Flu",
+// "CoalescentExponentialUniformOperator.t:Flu",
+// "CoalescentExponentialSubtreeSlide.t:Flu",
+// "CoalescentExponentialNarrow.t:Flu",
+// "CoalescentExponentialWide.t:Flu",
+// "CoalescentExponentialWilsonBalding.t:Flu",
+// "ePopSizeScaler.t:Flu",
+// "GrowthRateRandomWalk.t:Flu");
+// assertPriorsEqual("CoalescentExponential.t:Flu", "ePopSizePrior.t:Flu", "GrowthRatePrior.t:Flu");
+// assertTraceLogEqual( "posterior",
+// "likelihood",
+// "prior",
+// "treeLikelihood.Flu",
+// "TreeHeight.t:Flu",
+// "CoalescentExponential.t:Flu",
+// "ePopSize.t:Flu",
+// "growthRate.t:Flu");
+//
+// makeSureXMLParses();
+// }
+//
+//
+//
+//
+//}
diff --git a/test/bsp/distributions/BESPTest.java b/test/bsp/distributions/BESPTest.java
index c455fbd..d7b5d28 100644
--- a/test/bsp/distributions/BESPTest.java
+++ b/test/bsp/distributions/BESPTest.java
@@ -1,8 +1,8 @@
package bsp.distributions;
-import beast.evolution.tree.Tree;
-import beast.evolution.tree.coalescent.TreeIntervals;
-import beast.util.TreeParser;
+import beast.base.evolution.tree.Tree;
+import beast.base.evolution.tree.TreeIntervals;
+import beast.base.evolution.tree.TreeParser;
import junit.framework.TestCase;
import org.junit.Test;
import test.beast.BEASTTestCase;
diff --git a/test/bsp/distributions/BSPTest.java b/test/bsp/distributions/BSPTest.java
index 41981fc..06ebc60 100644
--- a/test/bsp/distributions/BSPTest.java
+++ b/test/bsp/distributions/BSPTest.java
@@ -1,10 +1,10 @@
package bsp.distributions;
-import beast.evolution.tree.Tree;
-import beast.evolution.tree.coalescent.BayesianSkyline;
-import beast.evolution.tree.coalescent.TreeIntervals;
-import beast.math.Binomial;
-import beast.util.TreeParser;
+import beast.base.evolution.tree.Tree;
+import beast.base.evolution.tree.TreeIntervals;
+import beast.base.evolution.tree.TreeParser;
+import beast.base.evolution.tree.coalescent.BayesianSkyline;
+import beast.base.util.Binomial;
import junit.framework.TestCase;
import org.junit.Test;
import test.beast.BEASTTestCase;
@@ -14,7 +14,7 @@
* Unit tests for bsp.distributions.BSP.java
*
* - Compare likelihood to the classical and generalized skyline plots in Ape
- * - Compare likelihood to the original Bayesian Skyline Plot implementation in BEAST2 core (beast.evolution.tree.coalescent.BayesianSkyline.java)
+ * - Compare likelihood to the original Bayesian Skyline Plot implementation in BEAST2 core (beast.base.evolution.tree.coalescent.BayesianSkyline.java)
* - Test methods for getting segment change times
* - Test methods for getting population size at different times (this is slightly different to the original Bayesian Skyline Plot)
*
diff --git a/test/bsp/distributions/TreeIntervalsTest.java b/test/bsp/distributions/TreeIntervalsTest.java
index b0fe571..c8b8e59 100644
--- a/test/bsp/distributions/TreeIntervalsTest.java
+++ b/test/bsp/distributions/TreeIntervalsTest.java
@@ -1,17 +1,17 @@
package bsp.distributions;
-import beast.evolution.tree.Tree;
-import beast.evolution.tree.coalescent.IntervalType;
-import beast.evolution.tree.coalescent.TreeIntervals;
-import beast.util.TreeParser;
+import beast.base.evolution.tree.IntervalType;
+import beast.base.evolution.tree.Tree;
+import beast.base.evolution.tree.TreeIntervals;
+import beast.base.evolution.tree.TreeParser;
import junit.framework.TestCase;
import org.junit.Test;
-import static beast.evolution.tree.coalescent.IntervalType.SAMPLE;
+import static beast.base.evolution.tree.IntervalType.SAMPLE;
/**
- * Unit tests for beast.evolution.tree.coalescent.TreeIntervals.java
+ * Unit tests for beast.base.evolution.tree.TreeIntervals.java
*
* These are mostly just to check that TreeIntervals does what I think it does
*
diff --git a/test/test/beast/app/beauti/BEAUtiBESPTest.java b/test/test/beast/app/beauti/BEAUtiBESPTest.java
deleted file mode 100644
index f89ea23..0000000
--- a/test/test/beast/app/beauti/BEAUtiBESPTest.java
+++ /dev/null
@@ -1,151 +0,0 @@
-package test.beast.app.beauti;
-
-import org.fest.swing.fixture.JTabbedPaneFixture;
-import org.junit.Test;
-
-import java.io.File;
-
-/* Run from beast2 module path (examples/nexus/Flu.nex needs to be in path) */
-public class BEAUtiBESPTest extends BeautiBase {
-
- @Test
- public void beautiBSPTest() throws Exception {
- warning("Load Flu.nex");
- importAlignment("../beast2/examples/nexus", new File("Flu.nex"));
-
- JTabbedPaneFixture f = beautiFrame.tabbedPane();
- f.selectTab("Priors");
-
- setAndCheckBSPTreePrior(f);
- setAndCheckExpGrowthTreePrior(f);
- setAndCheckBSPTreePrior(f);
-
- makeSureXMLParses();
- }
-
- @Test
- public void beautiBESPTest() throws Exception {
- warning("Load Flu.nex");
- importAlignment("../beast2/examples/nexus", new File("Flu.nex"));
-
- JTabbedPaneFixture f = beautiFrame.tabbedPane();
- f.selectTab("Priors");
-
- setAndCheckBESPTreePrior(f);
- setAndCheckExpGrowthTreePrior(f);
- setAndCheckBESPTreePrior(f);
- setAndCheckBSPTreePrior(f);
- setAndCheckBESPTreePrior(f);
-
- makeSureXMLParses();
- }
-
-
-
- /* Helper functions to set and check tree priors */
-
- private void setAndCheckBSPTreePrior(JTabbedPaneFixture f) throws Exception {
-
- warning("Change to Coalescent - BSP");
- beautiFrame.comboBox("TreeDistribution").selectItem("Coalescent BSP");
- printBeautiState(f);
-
- assertStateEquals("Tree.t:Flu", "BSPPopSizes.t:Flu", "BSPGroupSizes.t:Flu");
- assertOperatorsEqual( "BSPTreeScaler.t:Flu",
- "BSPTreeRootScaler.t:Flu",
- "BSPUniformOperator.t:Flu",
- "BSPSubtreeSlide.t:Flu",
- "BSPNarrow.t:Flu",
- "BSPWide.t:Flu",
- "BSPWilsonBalding.t:Flu",
- "BSPPopSizesScaler.t:Flu",
- "BSPGroupSizesDelta.t:Flu");
- assertPriorsEqual("BSP.t:Flu", "BSPMarkovChainedPopSizes.t:Flu");
- assertTraceLogEqual( "posterior",
- "likelihood",
- "prior",
- "treeLikelihood.Flu",
- "TreeHeight.t:Flu",
- "BSP.t:Flu",
- "BSPPopSizes.t:Flu",
- "BSPGroupSizes.t:Flu",
- "BSPPopSizeChangeTimes.t:Flu");
-
- makeSureXMLParses();
-
- }
-
-
- private void setAndCheckBESPTreePrior(JTabbedPaneFixture f) throws Exception {
-
- warning("Change to Coalescent - BESP");
- beautiFrame.comboBox("TreeDistribution").selectItem("Coalescent BESP");
- printBeautiState(f);
-
- assertStateEquals("Tree.t:Flu",
- "BESPPopSizes.t:Flu",
- "BESPGroupSizes.t:Flu",
- "BESPSamplingIntensity.t:Flu");
- assertOperatorsEqual( "BESPTreeScaler.t:Flu",
- "BESPTreeRootScaler.t:Flu",
- "BESPUniformOperator.t:Flu",
- "BESPSubtreeSlide.t:Flu",
- "BESPNarrow.t:Flu",
- "BESPWide.t:Flu",
- "BESPWilsonBalding.t:Flu",
- "BESPPopSizesScaler.t:Flu",
- "BESPGroupSizesDelta.t:Flu",
- "BESPSamplingIntensityScaler.t:Flu");
- assertPriorsEqual("BESP.t:Flu",
- "BESPMarkovChainedPopSizes.t:Flu",
- "BESPSamplingIntensityPrior.t:Flu");
- assertTraceLogEqual( "posterior",
- "likelihood",
- "prior",
- "treeLikelihood.Flu",
- "TreeHeight.t:Flu",
- "BESP.t:Flu",
- "BESPPopSizes.t:Flu",
- "BESPGroupSizes.t:Flu",
- "BESPSamplingIntensity.t:Flu",
- "BESPPopSizeChangeTimes.t:Flu",
- "BESPSamplingIntensityChangeTimes.t:Flu");
-
- makeSureXMLParses();
-
- }
-
-
- private void setAndCheckExpGrowthTreePrior(JTabbedPaneFixture f) throws Exception {
-
- warning("Change to Coalescent - exponential population");
- beautiFrame.comboBox("TreeDistribution").selectItem("Coalescent Exponential Population");
- printBeautiState(f);
-
- assertStateEquals("Tree.t:Flu", "ePopSize.t:Flu", "growthRate.t:Flu");
- assertOperatorsEqual( "CoalescentExponentialTreeScaler.t:Flu",
- "CoalescentExponentialTreeRootScaler.t:Flu",
- "CoalescentExponentialUniformOperator.t:Flu",
- "CoalescentExponentialSubtreeSlide.t:Flu",
- "CoalescentExponentialNarrow.t:Flu",
- "CoalescentExponentialWide.t:Flu",
- "CoalescentExponentialWilsonBalding.t:Flu",
- "ePopSizeScaler.t:Flu",
- "GrowthRateRandomWalk.t:Flu");
- assertPriorsEqual("CoalescentExponential.t:Flu", "ePopSizePrior.t:Flu", "GrowthRatePrior.t:Flu");
- assertTraceLogEqual( "posterior",
- "likelihood",
- "prior",
- "treeLikelihood.Flu",
- "TreeHeight.t:Flu",
- "CoalescentExponential.t:Flu",
- "ePopSize.t:Flu",
- "growthRate.t:Flu");
-
- makeSureXMLParses();
- }
-
-
-
-
-}
diff --git a/version.xml b/version.xml
index 5cc34da..00bb148 100644
--- a/version.xml
+++ b/version.xml
@@ -1,6 +1,12 @@
-
-
+
+
+
-
-
+
+
+
+
+
+
+