Optimizes model parameters under the SELON model
SelonOptimize(nuc.data.path, n.partitions = NULL, phy,
edge.length = "optimize", edge.linked = TRUE,
optimal.nuc = "majrule", nuc.model = "GTR", set.Ne = 10000,
diploid = TRUE, verbose = FALSE, n.cores = 1,
max.tol = .Machine$double.eps^0.25, max.evals = 1e+06,
cycle.stage = 12, max.restarts = 3, user.optimal.nuc = NULL,
output.by.restart = TRUE, output.restart.filename = "restartResult",
user.supplied.starting.param.vals = NULL, fasta.rows.to.keep = NULL,
recalculate.starting.brlen = TRUE, dt.threads = 1)
Provides the path to the directory containing the gene specific fasta files that contains the nucleotide data.
The number of partitions to analyze. The order is based on the Unix order of the fasta files in the directory.
The phylogenetic tree to optimize the model parameters.
Indicates whether or not edge lengths should be optimized. By default it is set to "optimize", other option is "fixed", which user-supplied branch lengths.
A logical indicating whether or not edge lengths should be optimized separately for each gene. By default, a single set of each lengths is optimized for all genes.
Indicates what type of optimal.nuc should be used. At the moment there is only a single option: "majrule".
Indicates what type nucleotide model to use. There are three options: "JC", "GTR", or "UNREST".
Indicates whether Ne is to estimated or a fixed value is to be used. Either a fixed value is supplied or "optimize" is use to indicate that it is a parameter to optimize.
A logical indicating whether or not the organism is diploid or not.
Logical indicating whether each iteration be printed to the screen.
The number of cores to run the analyses over.
Supplies the relative optimization tolerance.
Supplies the max number of iterations tried during optimization.
Specifies the number of cycles per restart. Default is 12.
Supplies the number of random restarts.
If optimal.nuc is set to "user", this option allows for the user-input optimal amino acids. Must be a list. To get the proper order of the partitions see "GetPartitionOrder" documentation.
Logical indicating whether or not each restart is saved to a file. Default is TRUE.
Designates the file name for each random restart.
Designates user-supplied starting values for C.q.phi.Ne, Grantham alpha, and Grantham beta. Default is NULL.
Indicates which rows to remove in the input fasta files.
Whether to use given branch lengths in the starting tree or recalculate them.
Indicates how many available threads to allow data.table to use. Default is zero.
SELON stands for SELection On Nucleotides. This function takes a user supplied topology and a set of fasta formatted sequences and optimizes the parameters in the SELON model. Selection is based on selection towards an optimal nucleotide at each site, which is based simply on the majority rule of the observed data. The strength of selection is then varied along sites based on a Taylor series, which scales the substitution rates.