venkataduvvuri / adapref

R package to do adaptive preferential sampling in phylodynamics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adapref

adapref has two main uses:

  • Estimation of the effective population size of a single population when there is preferential sampling [1]

  • Estimation of the effective population sizes of two populations coevolving [2]. One is free to include or not preferential sampling in this second scenario

It is a package to be used jointly with phylodyn and spmrf. Many of the functions of this package have been developed starting from the work done in these two packages. We acknowledge the developers for their work.

Installation

  1. Install (if necessary) package dependencies and helpers: devtools, ape, spmrf, rstan, loo and phylodyn.

  2. Load devtools using library(devtools).

  3. Install adapref using

    1. install_github("lorenzocapp/adapref"), or

    2. install_github("lorenzocapp/adapref", build_vignettes = TRUE) if you want some illustrative vignettes (note: using build_vignettes = TRUE will make the install take longer).

Vignettes

  1. Adaptive preferential sampling with simulated data: A short tutorial to describe the basics of the method described in [1]

  2. Adapop: multiple populations coalescent modelling: A short tutorial to describe the basics of the method described in [2]

References

[1] Cappello, L., Palacios, J.A. (2022) Adaptive Preferential Sampling in Phylodynamics, Journal of Computational and Graphical Statistics, 31, 541-552. Link

[2] Cappello, L.***, Kim, J.* , Palacios, J. A., (2022+) ``Bayesian Inference of Dependent Population Dynamics in Coalescent Models.” biorXiv . * first authors

About

R package to do adaptive preferential sampling in phylodynamics

License:Other


Languages

Language:R 100.0%