View source: R/create_beast2_input_file.R
create_beast2_input_file | R Documentation |
Create a BEAST2 input file
create_beast2_input_file(
input_filename,
output_filename,
site_model = create_jc69_site_model(),
clock_model = create_strict_clock_model(),
tree_prior = create_yule_tree_prior(),
mrca_prior = NA,
mcmc = create_mcmc(),
beauti_options = create_beauti_options(),
tipdates_filename = NA
)
input_filename |
A FASTA filename.
Use |
output_filename |
Name of the XML parameter file created by this function. BEAST2 uses this file as input. |
site_model |
a site model,
as returned by |
clock_model |
a clock model,
as returned by |
tree_prior |
a tree priors,
as returned by |
mrca_prior |
a Most Recent Common Ancestor prior,
as returned by |
mcmc |
one MCMC.
Use |
beauti_options |
one BEAUti options object,
as returned by |
tipdates_filename |
name of the file containing the tip dates. This file is assumed to have two columns, separated by a tab. The first column contains the taxa names, the second column contains the date. |
nothing
Richèl J.C. Bilderbeek
Use create_beast2_input_file_from_model to do the same with an
inference model.
See create_site_model
for examples with
different site models. See create_clock_model
for examples
with clock models. See create_tree_prior
for examples with
different tree priors. See create_mcmc
for examples with
a different MCMC setup.
if (is_on_ci()) {
check_empty_beautier_folder()
# Get an example FASTA file
input_filename <- get_fasta_filename()
# The file created by beautier, a BEAST2 input file
output_filename <- get_beautier_tempfilename()
create_beast2_input_file(
input_filename,
output_filename
)
file.remove(output_filename)
remove_beautier_folder()
check_empty_beautier_folder()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.