phyloP in SPH mode
phyloP.sph(mod, msa = NULL, mode = "CON", features = NULL,
basewise = FALSE, subtree = NULL, ref.idx = 1, outfile = NULL,
outfile.only = FALSE, outfile.format = "default", prior.only = FALSE,
nsites = NULL, post.only = FALSE, fit.model = FALSE,
epsilon = ifelse(basewise, 1e-06, 1e-10), confidence.interval = NULL,
quantiles = FALSE)
An object of class tm
representing the neutral model.
The multiple alignment to be scored.
The type of p-value to compute. One of "CON", "ACC", "NNEUT", or "CONACC".
A features object of type feat
. If given, compute
p-values for each element.
Logical. If TRUE
, compute scores for every base
in reference sequence. Cannot be TRUE
if features is provided.
A character string giving the name of a node in the tree. Partition the tree into the subtree beneath the node and the complementary supertree, and consider conservation/acceleration in the subtree given the supertree. The branch above the specified node is included with the subtree.
index of reference sequence in the alignment. If zero, use frame of reference of entire alignment. If -1 and features is used, try to guess the frame of reference for each feature based on sequence name.
Character string. If given, write results to given file.
Logical. If TRUE
, do not return any
results to R (this may be useful for saving memory).
Character string describing output format. Possible formats depend on other options (see description below).
Logical. If TRUE
, compute only prior
distribution of number of substitutions over nsites sites. Alignment
is ignored in this case.
Integer. Number of sites to consider if prior.only is
TRUE
.
Logical. If TRUE
, compute the posterior
distribution of the number of substitutions given the the neutral model
and the alignment.
Logical. If TRUE
, re-scale the model (including
a separate scale for the subtree, if applicable) before computing the
posterior distribution. This makes p-values less conservative.
Cannot currently be used with features.
Numeric value indicating the thhreshold used in truncating tails of distributions; tail probabilities less than this value are discarded. This only applies to the right tail.
Numeric value between 0 and 1. If given, allow for uncertainty in the estimate of the actual number of substitutions by using a central confidence interval about the mean of given size. To be conservative, the maximum of this interval is used when computing a p-value of conservation, and the minimum is used when computing a p-value of acceleration. The variance of the posterior is computed exactly, but the confidence interval is based on the assumption that the combined distribution will be approximately normal (true for large numbers of sites by the central limit theorem).
Logical. If TRUE
, report quantiles of distribution
rather than whole distribution.
Either a list, data frame, or matrix, depending on options.