Skip to content

A python library for generating and manipulating BEAST 1 XML files

License

Notifications You must be signed in to change notification settings

Nardus/beast_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beast_utils

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Generate and manipulate BEAST v1 XML files using templates and simple python calls.

This library provides an API allowing programmatic generation of BEAST XML files. Its main aim is to separate data (which may change) from basic run setup (which can be saved in a template XML file generated manually or using BEAUTI). This simplifies use of BEAST in a pipeline, where sequence data and metadata (e.g., dates, locations) may change over the course of the project, and alongside it, things like the best partitioning scheme and substitution models or predictors for GLMs. Note however, that this library focusses primarily on phylogeographic analyses, and cannot support all possible analyses that BEAST is capable of.

Key features currently implemented are:

  • Merge arbitrary XML templates, allowing complex analyses to be specified in a more modular fashion
  • Insert or update sequence data, dates, and traits, including complex partitioning schemes
  • Parse IQ-Tree result files to find the appropriate partitioning scheme and substitution models
  • Insert or update substitution models
  • Insert or modify the starting tree specification
  • Update parameters which depend on data (e.g. matrix dimensions), in most cases automatically
  • Add various phylogeography-related blocks to an XML:
    • GLMs
    • Markov jumps/rewards
  • Change run length / output file names

Installation

pip install git+https://github.com/nardus/beast_utils.git

About

A python library for generating and manipulating BEAST 1 XML files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages