skbio.diversity.alpha.kempton_taylor_q¶

skbio.diversity.alpha.
kempton_taylor_q
(counts, lower_quantile=0.25, upper_quantile=0.75)[source]¶ Calculate KemptonTaylor Q index of alpha diversity.
State: Experimental as of 0.4.0.
Estimates the slope of the cumulative abundance curve in the interquantile range. By default, uses lower and upper quartiles, rounding inwards.
 Parameters
 Returns
KemptonTaylor Q index of alpha diversity.
 Return type
double
Notes
The index is defined in 1. The implementation here is based on the description given in the SDRIV online manual 2.
The implementation provided here differs slightly from the results given in Magurran 1998. Specifically, we have 14 in the numerator rather than 15. Magurran recommends counting half of the OTUs with the same # counts as the point where the UQ falls and the point where the LQ falls, but the justification for this is unclear (e.g. if there were a very large # OTUs that just overlapped one of the quantiles, the results would be considerably off). Leaving the calculation asis for now, but consider changing.
References