Package: beastier 2.5.2
beastier: Call 'BEAST2'
'BEAST2' (<https://www.beast2.org>) is a widely used Bayesian phylogenetic tool, that uses DNA/RNA/protein data and many model priors to create a posterior of jointly estimated phylogenies and parameters. 'BEAST2' is a command-line tool. This package provides a way to call 'BEAST2' from an 'R' function call.
Authors:
beastier_2.5.2.tar.gz
beastier_2.5.2.zip(r-4.5)beastier_2.5.2.zip(r-4.4)beastier_2.5.2.zip(r-4.3)
beastier_2.5.2.tgz(r-4.5-any)beastier_2.5.2.tgz(r-4.4-any)beastier_2.5.2.tgz(r-4.3-any)
beastier_2.5.2.tar.gz(r-4.5-noble)beastier_2.5.2.tar.gz(r-4.4-noble)
beastier_2.5.2.tgz(r-4.4-emscripten)beastier_2.5.2.tgz(r-4.3-emscripten)
beastier.pdf |beastier.html✨
beastier/json (API)
NEWS
# Install 'beastier' in R: |
install.packages('beastier', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ropensci/beastier/issues
Pkgdown site:https://docs.ropensci.org
On CRAN:beastier-2.5.2(2024-10-06)
bayesianbeastbeast2phylogenetic-inferencephylogeneticsopenjdk
Last updated 1 months agofrom:cced6fd85f (on main). Checks:7 OK, 2 ERROR. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 24 2025 |
R-4.5-win | OK | Mar 24 2025 |
R-4.5-mac | OK | Mar 24 2025 |
R-4.5-linux | ERROR | Mar 24 2025 |
R-4.4-win | OK | Mar 24 2025 |
R-4.4-mac | OK | Mar 24 2025 |
R-4.4-linux | ERROR | Mar 24 2025 |
R-4.3-win | OK | Mar 24 2025 |
R-4.3-mac | OK | Mar 24 2025 |
Exports:add_quotes_if_has_spacesare_beast2_input_linesare_beast2_input_lines_deepare_beast2_input_lines_fastare_identical_alignmentsbeast2_options_to_tablebeastier_reportcheck_beast2check_beast2_optionscheck_beast2_options_data_typescheck_beast2_options_do_not_overwrite_existing_filescheck_beast2_options_filenames_differcheck_beast2_options_namescheck_beast2_optionsescheck_beast2_pathcheck_can_create_dir_for_state_output_filecheck_can_create_filecheck_can_create_screenlog_filecheck_can_create_state_output_filecheck_can_create_tracelog_filecheck_can_create_treelog_filecheck_empty_beastier_foldercheck_empty_beaustier_folderscheck_input_filenamecheck_input_filename_validitycheck_n_threadscheck_oscheck_rng_seedcontinue_beast2create_beast2_continue_cmd_from_optionscreate_beast2_input_file_foldercreate_beast2_optionscreate_beast2_run_cmdcreate_beast2_run_cmd_from_optionscreate_beast2_screenlog_foldercreate_beast2_state_output_file_foldercreate_beast2_tracelog_foldercreate_beast2_treelog_foldercreate_beast2_validate_cmdcreate_beast2_validate_cmd_bincreate_beast2_validate_cmd_jarcreate_beast2_version_cmdcreate_beast2_version_cmd_bincreate_beast2_version_cmd_jarcreate_beastier_tempfoldercreate_mcbette_beast2_optionscreate_random_alignmentcreate_random_fastacreate_random_phylogenycreate_temp_input_filenamecreate_temp_state_filenamedo_minimal_runextract_screenlog_filename_from_beast2_input_fileextract_tracelog_filename_from_beast2_input_fileextract_treelog_filename_from_beast2_input_fileget_alignment_ids_from_xml_filenameget_beast2_example_filenameget_beast2_example_filenamesget_beast2_main_class_nameget_beast2_options_filenamesget_beast2_versionget_beastier_folderget_beastier_pathget_beastier_pathsget_beastier_tempfilenameget_default_beast2_bin_pathget_default_beast2_download_urlget_default_beast2_download_url_linuxget_default_beast2_download_url_winget_default_beast2_folderget_default_beast2_jar_pathget_default_beast2_pathget_default_beast2_versionget_default_java_pathget_duplicate_param_idsget_java_versionget_trees_filenamesgives_beast2_warninghas_unique_idsinstall_beast2is_alignmentis_beast2_input_fileis_beast2_installedis_bin_pathis_jar_pathis_on_appveyoris_on_ciis_on_travisis_win_bin_pathprint_beast2_optionsremove_beastier_folderremove_beaustier_foldersremove_file_if_presentrename_beast2_options_filenamesrun_beast2run_beast2_from_optionssave_linessave_nexus_as_fastauninstall_beast2
Dependencies:ade4apebeautierbitbit64clicliprcpp11crayondigestfansifastmatchgenericsgluehmsigraphlatticelifecyclemagrittrMASSMatrixnlmephangornpillarpixmappkgconfigprettyunitsprogresspurrrquadprogR6rappdirsRcppRcppArmadilloreadrrJavarlangsegmentedseqinrsessioninfospstringistringrtibbletidyselecttzdbutf8vctrsvroomwithrxml2
Readme and manuals
beastier
Branch | ![]() |
![]() |
---|---|---|
master |
||
develop |
beastier
is an R package to run BEAST2.
beastier
is part of the babette
package suite:
-
beautier
creates BEAST2 input (.xml
) files. -
beastier
runs BEAST2 -
mauricer
: install BEAST2 packages -
tracerer
pastes BEAST2 output (.log
,.trees
, etc) files.
Related R packages:
-
beastierinstall
: Install and uninstall BEAST2 -
beastier_on_windows
: Verify thatbeastier
works on the Windows operating system -
lumier
: Shiny app to help create the function call needed
Install BEAST2
Due to CRAN policy, beastier cannot install BEAST2.
As a workaround, the non-CRAN
beastierinstall
can be used.
To install BEAST2:
remotes::install_github("richelbilderbeek/beastierinstall")
beastierinstall::install_beast2()
Example for v2.1
v2.1
Run BEAST2:
output_state_filename <- "out.state"
run_beast2(
input_filename = get_beastier_path("2_4.xml"),
output_state_filename = output_state_filename
)
This will create the files as specified in the 2_4.xml
BEAST2 input file.
Example for v2.0.25
v2.0.25
output_log_filename <- "out.log"
output_trees_filename <- "out.trees"
output_state_filename <- "out.state"
run_beast2(
input_filename = get_beastier_path("2_4.xml"),
output_log_filename = output_log_filename,
output_trees_filenames = output_trees_filename,
output_state_filename = output_state_filename
)
Note that in this version, the filenames for the .log
and .trees
files could be specified. This is unneeded:
the 2_4.xml
BEAST2 input file specifies where these files will be stored:
<?xml [...]?><beast [...]>
[...]
<run [...]>
[...]
<logger id="tracelog" fileName="test_output_0.log" [...]>
[...]
</logger>
[...]
<logger id="treelog.t:[...]" fileName="$(tree).trees" [...]>
[...]
</logger>
</run>
</beast>
When using beautier
, this can be specified in create_mcmc
:
create_mcmc(
tracelog = create_tracelog(
filename = "my_trace.log"
),
treeslog = create_treeslog(
filename = "my_trees.trees"
)
)
InstallInstall
See install.
FAQFAQ
See FAQ
Missing features/unsupported
beastier
cannot do everything BEAST2
can.
- Remove: install BEAST2, use
beastierinstall
- Experimental: Continue a BEAST2 run
- Untested: Setup BEAGLE
There is a feature I miss
See CONTRIBUTING, at Submitting use cases
I want to collaborate
See CONTRIBUTING, at 'Submitting code'
I think I have found a bug
See CONTRIBUTING, at 'Submitting bugs'
There's something else I want to say
Sure, just add an Issue. Or send an email.
External links
Dependencies
Branch | ![]() |
![]() |
---|---|---|
beautier master
|
||
beautier develop
|
||
beastierinstall master
|
||
beastierinstall develop
|
Branch | ![]() |
---|---|
beastier_on_windows master
|
|
beastier_on_windows develop
|
Files used by continuous integration scripts
Filename | Descriptions |
---|---|
mlc_config.json | Configuration of the link checker, use markdown-link-check --config mlc_config.json --quiet docs/**/*.md to do link checking locally |
.spellcheck.yml | Configuration of the spell checker, use pyspelling -c .spellcheck.yml to do spellcheck locally |
.wordlist.txt | Whitelisted words for the spell checker, use pyspelling -c .spellcheck.yml to do spellcheck locally |
.markdownlint.jsonc | Configuration of the markdown linter, use markdownlint "**/*.md" to do markdown linting locally. The name of this file is a default name. |
.markdownlintignore | Files ignored by the markdown linter, use markdownlint "**/*.md" to do markdown linting locally. The name of this file is a default name. |
References
Article about babette
:
- Bilderbeek, Richèl JC, and Rampal S. Etienne. "
babette
: BEAUti 2, BEAST 2 and Tracer for R." Methods in Ecology and Evolution (2018). https://doi.org/10.1111/2041-210X.13032
FASTA files anthus_aco.fas
and anthus_nd2.fas
from:
- Van Els, Paul, and Heraldo V. Norambuena. "A revision of species limits in Neotropical pipits Anthus based on multilocus genetic and vocal data." Ibis.