Skip to content

bioDS/FBD-dLTTs

Repository files navigation

FBD-dLTTs

Determinstic lineage-through-time calculations for "The Fossilised Birth-Death Model is Identifiable"

The Figures folder contains the figures used in the paper, while the Graphing folder contains the R code and data used to reformat the output from running the FBDensemble.R file.

Castor was built using Rcpp - most underlying functionality is written in C and then imported into R. The simulations use a forked version of castor, so that sampled ancestor trees can be produced.

Note that further work is necessary to make deterministic density calculations suitable for sampled ancestor trees.

To run the code using this version of castor, clone the repo linked above. Then, run source updateRunFBD.sh to build the package, and run the Rscript FBDensemble.R. You will need to make sure you do not have the standard castor implementation loaded into R.

If you have already built the package, you can run just the main Rscript using Rscript FBDensemble.R.

To produce nLTT curves using removal probabilities which are not constant, run Rscript linearKappa.R.