Phylonco project contains 3 subprojects:
- phylonco-beast (BEAST package)
- phylonco-lphybeast (LPhyBEAST extension, also BEAST package)
- phylonco-lphy (LPhy extension)
Please note 1 and 2 will release as one BEAST package, 3 will release as a LPhy extension.
- How to update dependencies in Intellij, especially SNAPSHOT version.
https://github.com/LinguaPhylo/LPhyBeast/blob/master/DEV_NOTE.md#update-dependencies-in-intellij
Use this simple steps if LPhyBEAST's version is not changed.
- How to update the LPhyBEAST dependency:
LPhyBEAST is released as a .zip
file into the Maven repository,
because of the requirement of BEAST package framework.
Therefore, its update is not straight forward as other dependencies.
When you want to upgrade LPhyBEAST to a newer version:
i. Refresh Gradle Dependencies.
ii. You need to run the task installLPhyBEAST
inside the build of phylonco-lphybeast
subproject twice.
The first time it downloads the zip file and unzip it, at the second time it loads all jar files into the system. This process can be done either from command line below, or IntelliJ (screenshot on the right side).
./gradlew phylonco-lphybeast:installLPhyBEAST
iii. Rebuild the project.
- Run LPhyBEAST from Intellij for developers only:
Create an "Application" in "Run/Debug Configurations". An example is shown in the screenshot.
i. Make sure the working dir has your lphy script.
ii. Put the arguments like:
-vf YOUR_PATH/beast-phylonco/phylonco-lphybeast/version.xml,YOUR_PATH/beast-phylonco/phylonco-lphybeast/build/lphybeast/version.xml
ErrModel_Haploid.lphy
The 1st version.xml is for the LPhyBEAST extension (phylonco-lphybeast), the 2nd is from the LPhyBEAST core. Both are required by BEAST2 framework.
- How to check if you have the correct version of dependencies installed in IntelliJ:
Go to the "External Libraries", and expand the list, you must have the correct version of lphy and lphybeast jars inside the red rectangles: