Home

Awesome

beastier

<!-- markdownlint-disable MD013 -->

Peer Review Status CRAN version CRAN total downloads CRAN downloads per month Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI

BranchGitHub Actions logoCodecov logo
masterR-CMD-checkcodecov.io
developR-CMD-checkcodecov.io
<!-- markdownlint-enable MD013 -->

beastier is an R package to run BEAST2.

beastier logo

beastier is part of the babette package suite:

Related R packages:

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

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

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"
  )
)

Install

See install.

FAQ

See FAQ

Missing features/unsupported

beastier cannot do everything BEAST2 can.

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

<!-- markdownlint-disable MD013 -->
BranchGitHub Actions logoCodecov logo
beautier masterR-CMD-checkcodecov.io
beautier developR-CMD-checkcodecov.io
beastierinstall masterR-CMD-checkcodecov.io
beastierinstall developR-CMD-checkcodecov.io
<!-- markdownlint-enable MD013 -->
BranchAppVeyor logo
beastier_on_windows masterBuild status
beastier_on_windows developBuild status

Files used by continuous integration scripts

FilenameDescriptions
mlc_config.jsonConfiguration of the link checker, use markdown-link-check --config mlc_config.json --quiet docs/**/*.md to do link checking locally
.spellcheck.ymlConfiguration of the spell checker, use pyspelling -c .spellcheck.yml to do spellcheck locally
.wordlist.txtWhitelisted words for the spell checker, use pyspelling -c .spellcheck.yml to do spellcheck locally
.markdownlint.jsoncConfiguration of the markdown linter, use markdownlint "**/*.md" to do markdown linting locally. The name of this file is a default name.
.markdownlintignoreFiles 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:

FASTA files anthus_aco.fas and anthus_nd2.fas from:

ropensci_footer