BEAST utility library containing generally useful classes used by other BEAST packages.
Requires Java 25 and Maven.
mvn compileBEAST 3 dependencies (beast-base, beast-pkgmgmt, beast-fx) are resolved from Maven Central,
so no extra repository or token is needed.
To run the tests and build the BEAST package ZIP (target/BEASTLabs.v<version>.zip):
mvn verifyRun BEAST on an example XML with BEASTLabs from target/classes:
mvn compile exec:exec -Dbeast.args="-overwrite -prefix target/ examples/testScript.xml"-prefix target/ writes the log, trees and state files to target/ instead of the project root.
JPMS module name: beast.labs
Key exports:
beastlabs.core.util—Slice,ParameterConstrainerbeastlabs.util—Script,Transformbeastlabs.math.distributions—BernoulliDistribution,WeightedDirichlet,WeibullDistributionbeastlabs.evolution.tree—RNNIMetric,RobinsonsFouldMetric,MonophyleticConstraintbeastlabs.evolution.likelihood—ExperimentalTreeLikelihood,MultiPartitionTreeLikelihoodbeastlabs.evolution.operators— tree operators,CombinedOperatorbeastlabs.parsimony— Fitch parsimony implementations
The master branch targets BEAST 3 (beast-base 2.8.0-rc1); all 142 source files compile against it.
Changes from BEAST 2:
- Maven build (was Ant)
- JPMS module
beast.labswithrequires staticfor beast-fx/javafx commons-math2.x replaced withcommons-statistics(immutable distribution API)cern.colt.Arraysreplaced withjava.util.Arraysorg.jsonreplaced withbeast.base.internal.json- Nashorn scripting (
beastlabs.util.Script) via the standalonenashorn-core(removed from the JDK); nashorn and its ASM dependencies are shipped in the packagelib, and nashorn isrequires staticso BEASTLabs still loads without it. Nashorn also needs the JDK modulejdk.dynalink, which the BEAST launcher must add with--add-modules - Tests use JUnit 5
- BEAST package metadata in
version.xml - CI in
.github/workflows/ci-publish.yml: builds and tests on push and pull request, and publishes to Maven Central on av*tag (see RELEASING.md) release.shbuilds the package ZIP and optionally creates a GitHub release
It should look like this after following the developer guide https://github.com/CompEvol/beast3/blob/master/scripts/DevGuideIntelliJ.md
