Under "clade"
case without specifying nodes (i.e.
'auto-recognize') a list including:
$all.clades for each detected node, the data-frame includes
the average rate difference (computed as the mean rate over all branches
subtended by the node minus the average rate for the rest of the tree) and
the probability that it do represent a real shift. Probabilities are
contrasted to simulations shuffling the rates across the tree branches for
a number of replicates specified by the argument nrep
. Note that the
p-values refer to the number of times the real average rates are larger (or
smaller) than the rates averaged over the rest of the tree, divided by the
number of simulations. Hence, large rates are significantly larger than the
rest of the tree (at alpha = 0.05), when the probability is > 0.975; and
small rates are significantly small for p < 0.025.
$single.clades the same as with 'all.clades' but restricted
to the largest/smallest rate values along a single lineage (i.e. nested
clades with smaller rate shifts are excluded).
Under "clade"
condition by specifying the node
argument:
$all.clades.together if more than one node is tested, this
specifies the average rate difference and the significance of the rate
shift, by considering all the specified nodes as evolving under a single
rate. As with the 'auto-recognize' feature, large rates are significantly
larger than the rest of the tree (at alpha = 0.05), when the probability is
> 0.975; and small rates are significantly small for p < 0.025.
$single.clades gives the significance for individual clades
tested individually against the rest of the tree ($singles) and by
excluding the rate values of other shifting clades from the rate vector of the rest of
the tree ($no.others)
Under the "sparse"
condition:
$state.results for each state, the data-frame includes the
average rate difference (computed as the mean rate over all leaves evolving
under a given state, minus the average rate for each other state or the
rest of the tree) and the probability that the shift is real. Large rates
are significantly larger (at alpha = 0.05), when the probability is >
0.975; and small rates are significantly small for p < 0.025. States are
compared pairwise.
Under all circumstances, if 'cov'
values are provided to the
function, search.shift
returns as $rates object the vector of
residuals of RRphylo
rates versus cov
regression.
The output always has an attribute "Call" which returns an unevaluated call to the function.