View source: R/estimateTreeFuncs.R
estimatePhangornTree | R Documentation |
Estimate a ML tree from a given topology Uses 'pml' and 'optim.pml' from the 'phangorn' package to estimate the tree.
estimatePhangornTree(
alnfile,
treefile,
submodel = "LG",
type = "AA",
format = "fasta",
k = 4,
...
)
alnfile |
The path to the sequence alignment file |
treefile |
The path to the master tree file (whose topology will be used to generate the tree) |
submodel |
Substitution model to be used to estimate the tree |
type |
"AA" for amino acid or "DNA" for DNA |
format |
Format of the alignment file (commonly used formats include fasta and phylip) |
k |
Number of intervals in the discrete gamma distribution for 'pml' |
... |
Further arguments passed to 'pml' or 'optim.pml' |
A list: 'tree.opt' is the tree from the optimized output of 'optim.pml'; 'results.opt' is the optimized output of 'optim.pml'; 'results.init' is the initial results estimated by 'pml'
phyDat
for alignment formats,
pml
and optim.pml
for tree estimation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.