Giter Club home page Giter Club logo

bactdating's Introduction

BactDating

Travis-CI Build Status codecov

The goal of BactDating is to perform Bayesian dating of the nodes of a bacterial phylogenetic tree. This typically involves simultaneous Bayesian estimation of the molecular clock rate and coalescent rate. Additional features include inference of root location, lost sampling dates and different evolutionary models.

Installation

You can install BactDating from github with:

devtools::install_github("xavierdidelot/BactDating")

The package can then be loaded using:

library(BactDating)

Example

This is a basic example of usage. First we generate a coalescent tree with a single leaf per year between 1990 and 2010:

tree=simcoaltree(1990:2010)
plot(tree)
ape::axisPhylo(backward=F)

Next we generate an observed phylogeny based on this timed tree, and perform a root-to-tip analysis:

obsphy=simobsphy(tree)
r=roottotip(obsphy,1990:2010)

We can run the dating analysis on this phylogeny as follows:

res=bactdate(obsphy,1990:2010)
plot(res,'treeCI')

More information and getting help

For more detailed examples of how to use BactDating, see the vignettes here. See also the help included in the package using the R command help(package='BactDating').

If you have any problem or question please create an issue here or get in touch by emailing [email protected]

bactdating's People

Contributors

johnlees avatar maxbiostat avatar xavierdidelot avatar

Watchers

 avatar  avatar

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.