Learn R Programming

CNVRG

A package to provide a user-friendly wrapper for 'RStan' to implement Dirichlet multinomial modeling of count data.

This package is managed by Joshua Harrison.

A github repo for this package exists at: https://github.com/JHarrisonEcoEvo/CNVRG Please check that repo out for new versions of this software that are under development. Also, if you discover issues or have questions please post them there so that others may benefit from answers.

To install from source. Download repo and unzip it then use the following commands from within the 'R' interpreter. First, you will need to change the path to the 'CNVRG' directory as appropriate.

install.packages("./CNVRG/", repos = NULL, type = "source")

Alternatively, one can download and install from GitHub using devtools like so: devtools::install_github("https://github.com/JHarrisonEcoEvo/CNVRG")

To install from CRAN, open R and type: install.packages("CNVRG")

You may see a prompt asking if you want to compile the package, type "Yes" if you see this.

VIGNETTE

The vignette can be found HERE and the Rmd can be found at the GitHub repo linked above. Additionally, a video providing the intuition behind the CNVRG model can be found here

For those interested in the details of the model see our paper in Molecular Ecology Resources called, "Dirichlet‐multinomial modelling outperforms alternatives for analysis of microbiome and other ecological count data"

Copy Link

Version

Install

install.packages('CNVRG')

Monthly Downloads

207

Version

1.0.0

License

GPL-3

Maintainer

Joshua Harrison

Last Published

September 4th, 2021

Functions in CNVRG (1.0.0)

cnvrg_HMC

Perform Hamiltonian Monte Carlo sampling
diff_abund

Calculate features with different abundances between treatment groups
diversity_calc

Calculate diversity entropies for each replicate
indexer

Determine indices for treatment groups
CNVRG-package

The 'CNVRG' package.
extract_pi_quantiles

Extract quantiles of pi parameters
cnvrg_VI

Perform variational inference sampling
extract_point_estimate

Extract point estimates of multinomial and Dirichlet parameters
isd_transform

Transform data into estimates of absolute abundances using an ISD
fungi

Fungal endophytes of Astragalus lentiginosus grown near Reno, NV