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

Generate the randomly sampled tree with given sample fractions and clade taxa name arrays within the given tree. The order of sample fractions are respectively matching 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