SubsampledTree(TimeTree tree, String[][] taxa, Double[] sampleFraction)

Generate a randomly sampled tree using the given sample fractions and clade taxa name arrays from the specified tree. The order of sample fractions corresponds to the order of the name arrays.

Parameters

  • TimeTree tree - the full tree to extract taxa from.
  • String[][] taxa - the taxa name arrays that the function would sample
  • Double[] sampleFraction - the fractions that the function sample in the taxa

Return type

TimeTree

Examples

  • SubsampledTree.lphy