CalibratedYule(Number lambda, Integer n, Object cladeTaxa, Number[] cladeMRCAAge, Object otherTaxa, Number rootAge)

The CalibratedYule method accepts one or more clade taxa and generates a tip-labelled time tree. If a root age is provided, the method conditions the tree generation on this root age.

Parameters

  • Number lambda - per-lineage birth rate, possibly scaled to mutations or calendar units.
  • Integer n - (optional) the total number of taxa.
  • Object cladeTaxa - a string array of taxa id or a taxa object for clade taxa (e.g. dataframe, alignment or tree)
  • Number[] cladeMRCAAge - an array of ages for clade most recent common ancestor, ages should be correspond with clade taxa array.
  • Object otherTaxa - (optional) a string array of taxa id or a taxa object for other taxa (e.g. dataframe, alignment or tree)
  • Number rootAge - (optional) the root age to be conditioned on optional.

Return type

TimeTree

Examples

  • calibratedYule.lphy