Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1dec3c5
add new occupancy likelihood calc and operator
jessiejofielding Apr 14, 2025
3988cb2
update build file
jessiejofielding Apr 15, 2025
f962566
update .idea files, build file
jessiejofielding Apr 15, 2025
bf15ce7
Create temp.xml
jessiejofielding Apr 15, 2025
c25841b
create new file for minimum switch likelikhood
jessiejofielding May 15, 2025
a4c642b
rename our modified beast classic likelihood for clarity
jessiejofielding May 15, 2025
1b7c19e
create abstract class with shared functionality
jessiejofielding May 15, 2025
a770a9c
add different trait linked models, improve names
jessiejofielding May 15, 2025
3f2df2b
fix author info
jessiejofielding May 15, 2025
b371a1b
start improving readme
jessiejofielding May 15, 2025
cd1529d
add new classes to version file
jessiejofielding May 15, 2025
cf43ed1
rename TraitTreeOperator to TraitAndOccupancyTreeOperator
jessiejofielding May 15, 2025
5e4ade5
rename some things
jessiejofielding May 15, 2025
9c8ab37
clean up
jessiejofielding May 15, 2025
3a6e418
add some example files
jessiejofielding May 15, 2025
bef7374
clean up whitespace
jessiejofielding May 21, 2025
565747a
add expected occupancy methods/inputs to abstract class
jessiejofielding May 21, 2025
5af29f3
clean up
jessiejofielding May 21, 2025
00d9021
add relaxed instant switch model
jessiejofielding May 21, 2025
fec3193
add relaxed expected occupancy model
jessiejofielding May 21, 2025
161f48d
Update version.xml
jessiejofielding May 21, 2025
e119cdb
add new example files for relaxed clock
jessiejofielding May 21, 2025
83fcfad
add elementwise prior
jessiejofielding Jun 6, 2025
1bd284e
Update version.xml
jessiejofielding Jun 6, 2025
567250e
fix cases where nodeTraits was not set correctly
jessiejofielding Jun 17, 2025
0eb9262
clean ancestral likelihood and fix leaf calculations
jessiejofielding Jun 18, 2025
4a35952
update operator to check for ambiguous tips
jessiejofielding Jun 18, 2025
4e4848d
Merge branch 'jf/feature/occupancy-likelihood-improvement' into jf/fe…
jessiejofielding Jun 18, 2025
b1c3679
fix tip likelihood calc, clean up
jessiejofielding Jun 20, 2025
78d2284
allow branch rate and occupancy logging
jessiejofielding Jun 20, 2025
5b0a99f
minor clean ups
jessiejofielding Jun 30, 2025
11794aa
Merge pull request #2 from hoehnlab/jf/feature/elementwise-prior
jessiejofielding Jun 30, 2025
6bc66f6
delete old trait linked code
jessiejofielding Jun 30, 2025
72965a2
remove relaxed models
jessiejofielding Jun 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .idea/BeastFX.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/ant.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/beast-classic.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/beast2.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/mtj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
# type-linked-time-trees
# type-linked-time-trees

## To Build This Package locally (recommended for developers)

First you will need to make sure you have beast2, BeastFX, and beast-classic
cloned in the same directory as this repo.

Recommended file structure:
```txt
parent-dir
|___beast2
|___BeastFX
|___beast-classic
|___type-linked-time-trees
```

For convenience, here are the commands to clone these repos:
```sh
cd <parent-dir>
git clone https://github.com/CompEvol/beast2.git
git clone https://github.com/CompEvol/BeastFX.git
git clone https://github.com/BEAST2-Dev/beast-classic.git
git clone <this-repo>
```

Make sure you have `ant` installed. Set `JAVACMD` env variable to the path for the [JDK recommended for beast2 development](https://github.com/CompEvol/BeastFX/blob/master/DevGuideIntelliJ.md#azul-jdk-17). (See [here](https://www.beast2.org/package-development-guide/) for a general guide to Beast2 development.)

Now, you can run these commands to build all necessary jar files and then
package files:

```sh
cd <parent-dir>/beast2
ant build_jar_all_BEAST_NoJUnitTest
cd ../BeastFX
ant build_jar_all_BeastFX_NoJUnitTest
cd ../beast-classic
ant build_jar_all_BEAST_CLASSIC_NoJUnitTest
cd ../type-linked-time-trees
ant package
```

23 changes: 15 additions & 8 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,38 @@
</description>
<!-- set global properties for this build -->
<property name="TypeLinkedDir" location="../type-linked-time-trees/" />
<property name="beastClassicDir" location="../beast-classic"/>
<property name="srcTypeLinked" location="src" />
<property name="buildTypeLinked" location="build" />
<property name="libTypeLinked" location="lib" />
<!-- <property name="libTypeLinked" location="lib" />-->
<property name="release_dir" value="release" />
<property name="Package_dir" value="${release_dir}/package" />
<property name="distTypeLinked" location="${buildTypeLinked}/dist" />
<property name="report" value="${buildTypeLinked}/junitreport"/>

<!-- folders for beast2 -->
<property name="beast2path" location="../beast2" />
<property name="libBeast2" location="${beast2path}/lib" />
<property name="srcBeast2" location="${beast2path}/src" />
<property name="beast2classpath" location="${beast2path}/build" />

<!-- beast classic -->
<property name="beastClassicDir" location="../beast-classic"/>
<property name="libClassic" location="${beastClassicDir}/lib"/>
<property name="srcClassic" location="${beastClassicDir}/src" />
<property name="beastClassicClasspath" location="${beastClassicDir}/build" />
<property name="Package_dir" value="${release_dir}/package" />
<import file="${beast2path}/build.xml" />
<import file="${beastClassicDir}/build.xml"/>
<property name="main_class_BEAST" value="beast.app.BeastMCMC" />
<property name="report" value="${buildTypeLinked}/junitreport"/>
<path id="classpath">
<pathelement path="${libBeast2}"/>
<pathelement path="${buildTypeLinked}"/>
<fileset dir="${libBeast2}" includes="junit-4.8.2.jar"/>
<pathelement path="${beast2classpath}"/>
<pathelement path="${beastClassicClasspath}"/>
<fileset dir="${libBeast2}" includes="beagle.jar"/>
</path>

<import file="${beast2path}/build.xml"/>
<import file="${beastClassicDir}/build.xml"/>
<property name="main_class_BEAST" value="beast.app.BeastMCMC" />

<!-- start -->
<target name="initTypeLinked">
<echo message="${ant.project.name}: ${ant.file}" />
Expand All @@ -58,7 +65,7 @@
</target>

<!-- compile Java source code -->
<target name="compile-allTypeLinked" depends="initTypeLinked,compile-all">
<target name="compile-allTypeLinked" depends="initTypeLinked,compile-all,compile-allBEAST_CLASSIC">
<!-- Capture the path as a delimited property using the refid attribute -->
<property name="myclasspath" refid="classpath"/>
<!-- Emit the property to the ant console -->
Expand Down
Loading