.. jupyter-execute:: :hide-code: import set_working_directory ``natsel_zhang`` – a branch-site test ===================================== This is the hypothesis test presented in `Zhang et al `__. It evaluates the hypothesis that a set of sites have undergone positive natural selection on a pre-specified set of lineages. For this model class, there are groups of branches for which all positions are evolving neutrally but some proportion of those neutrally evolving sites change to adaptively evolving on so-called foreground edges. For the current example, we’ll define the Chimpanzee and Human branches as foreground and everything else as background. The following table defines the parameter scopes. .. jupyter-execute:: :hide-code: from IPython.core.display import HTML from numpy import array from cogent3 import make_table header = ['Site Class', 'Proportion', 'Background Edges', 'Foreground Edges'] data = {'Site Class': array(['0', '1', '2a', '2b'], dtype=' 1', '0 < omega0 < 1'], dtype='