powered by
Computes a set of discrete gamma rates for rate variation across sites or characters. This function is adapted from the phangorn package.
phangorn
get_gamma_rates(alpha, k)
Numeric vector of length k representing the discrete gamma rates.
Numeric. The shape parameter of the gamma distribution.
Integer. The number of rate categories.
get_gamma_rates(alpha = 0.5, k = 4)
Run the code above in your browser using DataLab