The TAI measure represents the weighted arithmetic mean (expression levels as
weights for the phylostratum value) over all evolutionary age categories denoted as phylostra.
$$TAI_s = \sum (e_is * ps_i) / \sum e_is$$
where TAI_s denotes the TAI value in developmental stage s,
e_is denotes the gene expression level of gene i in stage s,
and ps_i denotes the corresponding phylostratum of gene i, \(i = 1,...,N\) and N = total number of genes.
Internally the function calls the C++ function cpp_TAI
to speed up TAI computations.