Analysis and Simulation of Environmental DNA Experiments

Provides a modeling framework for the design and analysis of experiments collecting environmental DNA.


artemis: an R package for eDNA analysis

artemis logo

Travis build status Codecov test coverage

The artemis package was created to aid in the design and analysis of eDNA survey studies by offering a custom suite of models for eDNA sampling and qPCR data. It implements a set of Bayesian latent-variable, truncated data models which are fit using Stan.

Installation


The easiest way to install `artemis` is from [CRAN](https://cran.r-project.org/package=artemis) with the `install.packages` function:

install.packages("artemis")


Testing your installation

If your installation of artemis and its dependencies was successful, the following code should run without error (although you may see warning messages from rstan about Bulk/Tail Effective Samples Sizes being too low). If the first or second model returns an error that seems to have something to do with your c++ compiler, you may need to follow instructions to edit your Makevars or Makevars.win file.

library(artemis)

model_fit = eDNA_lm(Cq ~ scale(Distance_m) + scale(Volume_mL), 
                    data = eDNA_data,
                    std_curve_alpha = 21.2, std_curve_beta = -1.5)

model_fit2 = eDNA_lmer(Cq ~ scale(Distance_m) + scale(Volume_mL) + (1|FilterID),
                       eDNA_data,
                       std_curve_alpha = 21.2, std_curve_beta = -1.5)

Installing artemis from source

Installing artemis from source on Windows is not currently well-supported; we recommend installing from the pre-compiled binary if you're on Windows. If you're on MacOS or Linux and you prefer to install from source, then go ahead and do that with your function/utility of choice (devtools::install_github(), utils::install.packages(type = "source"), R CMD INSTALL, etc.).

If you have sub-architecture you're really in to customizing, the source code is here, go nuts.


Basic use

Please refer to the Getting Started with the artemis package vignette, which covers most of the functionality of artemis.

Additional vignettes are forthcoming!

Reporting bugs

Please report all bugs via an issue at the package repo.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("artemis")

1.1.1 by Matt Espe, 5 years ago


Browse source code at https://github.com/cran/artemis


Authors: Matt Espe [aut, cre] , Myfanwy Johnston [aut]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports Rcpp, rstan, lme4, rstantools, utils

Depends on methods, graphics, stats, ggplot2, loo

Suggests testthat, knitr, rmarkdown, markdown, covr

Linking to BH, Rcpp, RcppEigen, RcppParallel, rstan, StanHeaders

System requirements: GNU make


See at CRAN