Examples how to use the babette R package.
For all examples, do load babette
:
library(babette)
All examples use the BEAST2 Primates.nex
alignment file and convert
it to a FASTA file first.
See install.md for the installation instructions.
See babette example 0: self-test for the code.
Using all default settings, only specify a DNA alignment.
See babette example 1: all default
The way to do so, is to date the node of the most recent common ancestor of all taxa:
See babette example 2: fixed crown age
See babette example 3: JC69 site model
See babette example 4: Relaxed clock log normal
See babette example 5: Birth-Death tree prior
See babette example 6: Yule tree prior with a normally distributed birth rate
Thanks to Yacine Ben Chehida for this use case
See babette example 7: HKY site model with a non-zero proportion of invariants
Thanks to Yacine Ben Chehida for this use case
See babette example 8: Strict clock with a known clock rate
Thanks to Paul van Els and Yacine Ben Chehida for this use case.
Picture needed here
See babette example 9: sample from prior
- Video: YouTube download (.ogv)
Example | |
---|---|
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |