BEAST2

Configure BEAST2 XML files for Bayesian phylogenetic MCMC analyses.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Neclow/claude-bioinformatics-skills --skill beast2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: BEAST2
Source: https://github.com/Neclow/claude-bioinformatics-skills/tree/main/skills/beast2
Command: npx skills add https://github.com/Neclow/claude-bioinformatics-skills --skill beast2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates complex Bayesian phylogenetic inference using BEAST2, enabling researchers to reconstruct evolutionary histories, estimate divergence times, and test evolutionary hypotheses from molecular data.

Core Features & Use Cases

  • XML Configuration: Guides users in creating and editing BEAST2 XML configuration files for various models (substitution, clock, tree priors).
  • MCMC Execution & Monitoring: Provides commands to run BEAST2 analyses, resume interrupted runs, and monitor convergence using diagnostics like ESS and trace plots.
  • Model Selection & Post-processing: Facilitates model comparison via Nested Sampling and aids in summarizing results using TreeAnnotator and LogCombiner.
  • Use Case: A molecular biologist needs to infer the evolutionary relationships and divergence times of a viral population. They can use this Skill to configure a BEAST2 XML file, run the MCMC analysis, diagnose convergence, and generate a time-calibrated phylogenetic tree.

Quick Start

Use the BEAST2 skill to run a phylogenetic analysis with the provided 'my_data.xml' configuration file.

Frequently Asked Questions about BEAST2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a BEAST2 XML file for Bayesian phylogenetic inference?

To configure a BEAST2 XML file for Bayesian phylogenetic inference, you define substitution models, clock models, and tree priors. This setup allows the MCMC analysis to properly sample evolutionary histories and estimate divergence times from molecular data.

Why does my BEAST2 MCMC analysis fail to converge and how do I diagnose ESS?

Your BEAST2 MCMC analysis fails to converge when effective sample size (ESS) values are low. You diagnose convergence by inspecting trace plots and ESS diagnostics, and can use advanced methods like CoupledMCMC or troubleshoot common configuration errors to improve sampling.

What is the best way to perform model selection in Bayesian phylogenetics?

The best way to perform model selection in Bayesian phylogenetics is using Nested Sampling. This approach evaluates competing evolutionary hypotheses by calculating marginal likelihoods, allowing you to compare substitution and clock models accurately.

How do I summarize and post-process MCMC trees after a BEAST2 run?

To summarize and post-process MCMC trees after a BEAST2 run, use TreeAnnotator and LogCombiner. These tools merge log files and tree outputs, generating a maximum clade credibility time-calibrated phylogenetic tree for evolutionary analysis.

Can I resume an interrupted Bayesian phylogenetic inference run in BEAST2?

Yes, you can resume an interrupted Bayesian phylogenetic inference run in BEAST2. The software provides specific commands to checkpoint and resume MCMC analyses, allowing you to continue evolutionary sampling without losing previous computational progress.

When do I need to apply calibration strategies in phylodynamics?

You need to apply calibration strategies in phylodynamics when estimating divergence times from molecular sequences. Calibration involves assigning known temporal constraints to tree priors, which is essential for generating accurate time-calibrated phylogenetic trees.