Giter Club home page Giter Club logo

tracer's Introduction

Simplified Tracer in R and Extras

In development.

Not only the subset, but also more

This package is initially developed as a simplified implementation of Tracer v1.7 in R. It can take an advantage of ggplot2 to create high quality images, and also make batch processing of multiple logs easier.

Through the development, it is growing to a package not only used as a simple version of Tracer, but also aiming to provide more post-analysis methods to understand
the posterior distributions from the Bayesian phylogenetic inference using MCMC. In addition, coverage tests for a model validation are recently added.

  1. For example, readState can extract the summary of operator proposals from BEAST 2 *.state log file.
readState("data/star.beast.state")
  1. Summarising tree statistics from the posterior trees logged by BEAST 2, such as the total branch length, tree height, etc.
tre.sta.df <- readTrees("data/RSV2long.trees")
tre.sta <- analyseTreeStats(tre.sta.df)
  1. The 5-step pipeline to summarise the coverage tests for validating Bayesian phylogenetic models.

Citations

  1. For Tracer, please cite:

Rambaut A, Drummond AJ, Xie D, Baele G and Suchard MA (2018),
Posterior summarisation in Bayesian phylogenetics using Tracer 1.7, Systematic Biology. syy032. doi:10.1093/sysbio/syy032

  1. For the coverage-test pipeline, please cite:

Drummond AJ, Xie D, Mendes F (), LinguaPhylo: a probabilistic model specification language for reproducible phylogenetic analyses, in preparation.

Installation

You can use the devtools install_github() function to install the latest development version directly from the GitHub.

library("devtools")
remove.packages("TraceR")
devtools::install_github("walterxie/TraceR")
library("TraceR")

Or install from TraceR_*.tar.gz.

setwd("~/WorkSpace/TraceR")
install.packages("TraceR_?.?.?.tar.gz", repos = NULL, type = "source")
library("TraceR")

To see all exported functions:

help(package = "TraceR")

Try the following commands:

# read MCMC log
mcmc.log <- readMCMCLog("data/star.beast.log")
# get traces and remove burn in
traces <- getTraces(mcmc.log, burn.in=0.1)
# get stats
stats <- analyseTraces(traces)

Please note: you can use ggplot2 instead of gg1L package for visualisation. gtTraces(...) is the only function depending on gg1L, and the gg1L code will be removed from the future dependecy, after it is replaced by the ggplot2 code.

devtools::install_github("walterxie/gg1L")
library("gg1L")

Tutorial (TODO update is required)

tracer's People

Contributors

josephwb avatar walterxie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

josephwb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.