Coder Social home page Coder Social logo

lnaphylodyn's Introduction

LNAphyloDyn:

Package of the research paper: Fitting stochastic epidemic models to gene genealogies using linear noise approximation

Installation

Prerequisites

You need to install these R packages before you install LNAPhlyodyn package: abind, smfsb, Rcpp, RcppArmadillo. You can easily install these packages by running the following code in your R console.

install.packages("abind")
install.packages("smfsb")
install.packages("Rcpp")
install.packages("RcppArmadillo")

Install LNAPhylodyn package

After installing the prerequisites packages, LNAphyloDyn package can be installed by running the following code in your console

Sys.setenv("PKG_LIBS" = "-llapack")
devtools::install_github("MingweiWilliamTang/LNAPhyloDyn")

See Errors in installation?

If you see errors when installing the package on your laptop, you can simply download the package, go to the directory and run

sourceCpp('src/LNA_functional.cpp')
source('R/basic.R', echo = TRUE)
source('R/coal_simulation.R', echo=TRUE)
source('R/general_change_point.R', echo=TRUE)
source('R/LNA_chpt_slice.R', echo=TRUE)

The above files contains most of the essential functions in the packages.

Vignettes

Here are some Vignettes that helps you get familiar with our work. Just download and have fun!

  1. ConstantR0 A short example showing how to simulate SIR trajectory and genealogy based on constant reproduction number R0, illustrating methodology ...

  2. ChangeR0 A short example showing how to simulate SIR trajectory and genealogy based time-varying reproduction number R0, illustrating methodology ...

  3. Ebola Case studies analyzing Ebola genealogies from Sierra Leone and Liberia in the 2014 ebola outbreaks.

lnaphylodyn's People

Contributors

mingweiwilliamtang avatar

Watchers

 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.