<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bayesian Reconstruction of Disease Outbreaks by Combining Epidemiologic
and Genomic Data • outbreaker2</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="bootstrap-toc.css">
<script src="bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script><meta property="og:title" content="Bayesian Reconstruction of Disease Outbreaks by Combining Epidemiologic
and Genomic Data">
<meta property="og:description" content="Bayesian reconstruction of disease outbreaks using epidemiological
and genetic information. Jombart T, Cori A, Didelot X, Cauchemez S, Fraser
C and Ferguson N. 2014. <doi:10.1371/journal.pcbi.1003457>. Campbell, F,
Cori A, Ferguson N, Jombart T. 2019. <doi:10.1371/journal.pcbi.1006930>.">
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target="#toc">
<div class="container template-home">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">outbreaker2</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">1.1.2</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fas fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
Articles
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="articles/customisation.html">Using custom priors, likelihood, or movements in outbreaker2</a>
</li>
<li>
<a href="articles/introduction.html">Introduction to outbreaker2</a>
</li>
<li>
<a href="articles/overview.html">outbreaker2: package overview</a>
</li>
<li>
<a href="articles/Rcpp_API.html">outbreaker2: Rcpp API</a>
</li>
</ul>
</li>
<li>
<a href="news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->
</header><div class="row">
<div class="contents col-md-9">
<div id="outbreaker2-a-framework-for-reconstructing-disease-outbreaks" class="section level2">
<h2 class="hasAnchor">
<a href="#outbreaker2-a-framework-for-reconstructing-disease-outbreaks" class="anchor"></a><em>outbreaker2: a framework for reconstructing disease outbreaks</em>
</h2>
<p>Welcome to the project page of <em>outbreaker2</em>, a Bayesian framework for integrating epidemiological and genetic data to reconstruct transmission trees of densely sampled outbreaks. It re-implements, generalises and replaces the model of <a href="https://github.com/thibautjombart/outbreaker"><em>outbreaker</em></a>, and uses a modular approach which enables fine customisation of priors, likelihoods and parameter movements (see <a href="http://www.repidemicsconsortium.org/outbreaker2/articles/customisation.html">customisation vignette</a>).</p>
<div id="note-correction-to-genetic-likelihood" class="section level3">
<h3 class="hasAnchor">
<a href="#note-correction-to-genetic-likelihood" class="anchor"></a>NOTE: Correction to genetic likelihood</h3>
<p>The genetic likelihood of the <a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1003457">original <em>outbreaker</em> paper</a> was found to contain a minor mistake in accounting for unobserved generations of infection. As of June 7th 2019, <em>outbreaker2</em> will use the correct genetic likelihood published <a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1006930">here</a>.</p>
<p>The original genetic likelihood was:</p>
<p><img src="https://latex.codecogs.com/svg.latex?%5Cmu%5E%7Bd(s_i,s_%7B%5Calpha_i%7D)%7D(1&space;-&space;%5Cmu)%5E%7B(%5Ckappa_i%5Ctimes&space;l(s_i,&space;s_%7B%5Calpha_i%7D))&space;-&space;d(s_i,s_%7B%5Calpha_i%7D)%7D" title="\mu^{d(s_i,s_{\alpha_i})}(1 - \mu)^{(\kappa_i\times l(s_i, s_{\alpha_i})) - d(s_i,s_{\alpha_i})}"></p>
<p>The corrected genetic likelihood is:</p>
<p><img src="https://latex.codecogs.com/svg.latex?(%5Ckappa_i&space;%5Cmu)%5E%7Bd(s_i,s_%7B%5Calpha_i%7D)%7D(1&space;-&space;%5Ckappa_i&space;%5Cmu)%5E%7Bl(s_i,&space;s_%7B%5Calpha_i%7D)&space;-&space;d(s_i,s_%7B%5Calpha_i%7D)%7D" title="(\kappa_i \mu)^{d(s_i,s_{\alpha_i})}(1 - \mu)^{(\kappa_i\times l(s_i, s_{\alpha_i})) - d(s_i,s_{\alpha_i})}"></p>
<p><br></p>
</div>
</div>
<div id="installation" class="section level2">
<h2 class="hasAnchor">
<a href="#installation" class="anchor"></a>Installation</h2>
<p>To install the stable version from CRAN:</p>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html">install.packages</a></span><span class="op">(</span><span class="st">"outbreaker2"</span><span class="op">)</span></code></pre></div>
<p>To install the development version from github (requires Rtools on windows and GSL headers on all platforms):</p>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="fu">devtools</span><span class="fu">::</span><span class="fu"><a href="https://devtools.r-lib.org//reference/remote-reexports.html">install_github</a></span><span class="op">(</span><span class="st">"reconhub/outbreaker2"</span><span class="op">)</span></code></pre></div>
<p>To add local copies of the vignettes, you will need to specify:</p>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="fu">devtools</span><span class="fu">::</span><span class="fu"><a href="https://devtools.r-lib.org//reference/remote-reexports.html">install_github</a></span><span class="op">(</span><span class="st">"reconhub/outbreaker2"</span>, build_vignettes <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></code></pre></div>
<p>Then, to load the package, use:</p>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span><span class="op">(</span><span class="st">"outbreaker2"</span><span class="op">)</span></code></pre></div>
<p><br></p>
</div>
<div id="documentation" class="section level2">
<h2 class="hasAnchor">
<a href="#documentation" class="anchor"></a>Documentation</h2>
<p><em>outbreaker2</em> is fully documented on a <a href="http://www.repidemicsconsortium.org/outbreaker2/">dedicated website</a>.</p>
<p>It also comes with the following vignettes:</p>
<ul>
<li>
<strong><code>introduction</code></strong>: general introduction using a worked example.</li>
<li>
<strong><code>overview</code></strong>: brief overview of the package’s content.</li>
<li>
<strong><code>customisation</code></strong>: customisation of priors, likelihoods, and movement functions.</li>
<li>
<strong><code>Rcpp_API</code></strong>: documentation for the Rcpp API.</li>
</ul>
<p><br></p>
</div>
<div id="contributors" class="section level2">
<h2 class="hasAnchor">
<a href="#contributors" class="anchor"></a>Contributors</h2>
<ul>
<li><a href="https://github.com/thibautjombart">Thibaut Jombart</a></li>
<li><a href="https://github.com/finlaycampbell">Finlay Campbell</a></li>
<li><a href="https://github.com/richfitz">Rich Fitzjohn</a></li>
<li><a href="https://github.com/gtonkinhill">Gerry Tonkin-Hill</a></li>
<li><a href="https://github.com/alxsrobert">Alexis Robert</a></li>
<li><a href="https://github.com/kreldjarn">Kristjan Eldjarn</a></li>
</ul>
<p>See details of contributions <a href="https://github.com/reconhub/outbreaker2/graphs/contributors">here</a>.</p>
<p>Contributions are welcome via <strong>pull requests</strong>.</p>
<p>Please note that this project is released with a <a href="https://github.com/reconhub/outbreaker2/blob/master/CONDUCT.md">Contributor Code of Conduct</a>. By participating in this project you agree to abide by its terms.</p>
<p><strong>Maintainer:</strong> Finlay Campbell (<a href="mailto:finlaycampbell93@gmail.com" class="email">finlaycampbell93@gmail.com</a>)</p>
</div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
<div class="links">
<h2>Links</h2>
<ul class="list-unstyled">
<li>Download from CRAN at <br><a href="https://cloud.r-project.org/package=outbreaker2">https://cloud.r-project.org/package=outbreaker2</a>
</li>
</ul>
</div>
<div class="license">
<h2>License</h2>
<ul class="list-unstyled">
<li>
<a href="https://opensource.org/licenses/mit-license.php">MIT</a> + file <a href="LICENSE-text.html">LICENSE</a>
</li>
</ul>
</div>
<div class="citation">
<h2>Citation</h2>
<ul class="list-unstyled">
<li><a href="authors.html">Citing outbreaker2</a></li>
</ul>
</div>
<div class="developers">
<h2>Developers</h2>
<ul class="list-unstyled">
<li>Thibaut Jombart <br><small class="roles"> Author </small> </li>
<li>Finlay Campbell <br><small class="roles"> Author, maintainer </small> </li>
<li>Rich Fitzjohn <br><small class="roles"> Author </small> </li>
<li><a href="authors.html">All authors...</a></li>
</ul>
</div>
<div class="dev-status">
<h2>Dev status</h2>
<ul class="list-unstyled">
<li><a href="https://travis-ci.org/reconhub/outbreaker2"><img src="https://travis-ci.org/reconhub/outbreaker2.svg?branch=master" alt="Travis-CI Build Status"></a></li>
<li><a href="https://ci.appveyor.com/project/thibautjombart/outbreaker2/branch/master"><img src="https://ci.appveyor.com/api/projects/status/yj449x0yqhphvcrt/branch/master?svg=true" alt="Appveyor build status"></a></li>
<li><a href="https://codecov.io/github/reconhub/outbreaker2?branch=master"><img src="https://codecov.io/github/reconhub/outbreaker2/coverage.svg?branch=master" alt="Coverage Status"></a></li>
<li><a href="https://cran.r-project.org/package=outbreaker2"><img src="https://cranlogs.r-pkg.org/badges/outbreaker2" alt="CRAN Downloads"></a></li>
<li><a href="https://www.r-pkg.org:443/pkg/outbreaker2"><img src="https://cranlogs.r-pkg.org/badges/grand-total/outbreaker2" alt="Downloads from Rstudio mirror"></a></li>
<li><a href="https://cran.r-project.org/package=outbreaker2"><img src="https://www.r-pkg.org/badges/version/outbreaker2" alt="CRAN_Status_Badge"></a></li>
</ul>
</div>
</div>
</div>
<footer><div class="copyright">
<p>Developed by Thibaut Jombart, Finlay Campbell, Rich Fitzjohn.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
</div>
</body>
</html>