HMP-package

Hypothesis Testing and Power Calculations for Comparing Metagenomics Samples

Hypothesis Testing and Power Calculations for Comparing Metagenomics Samples

This package provides tools for Generating data matrices following Multinomial and Dirichlet-Multinomial distributions, Computing the following test-statistics and their corresponding p-values, and Computing the power and size of the tests described above using Monte-Carlo simulations. package

Details

Hypothesis Test\textbf{Hypothesis Test}Test Statistics Function\textbf{Test Statistics Function}Power Calculation Function\textbf{Power Calculation Function}
2+ Sample Means w/ Reference VectorXmc.sevsampleMC.Xmc.statistics
1 Sample Mean w/ Reference VectorXsc.onesampleMC.Xsc.statistics
2+ Sample Means w/o Reference VectorXmcupo.sevsampleMC.Xmcupo.statistics
2+ Sample OverdispersionsXoc.sevsampleMC.Xoc.statistics
2+ Sample DM-DistributionXdc.sevsampleMC.Xdc.statistics
Multinomial vs DMC.alpha.multinomialMC.ZT.statistics

In addition to hypothesis testing and power calculations you can:

  1. Perform basic data management to exclude samples with fewer than pre-specified number of reads, collapse rare taxa and order the taxa by frequency. This is useful to exclude failed samples (i.e. samples with very few reads) - Data.filter
  2. Plot your data - Barchart.data
  3. Generate random sample of Dirichlet Multinomial data with pre-specified parameters - Dirichlet.multinomial

Note: Thought the description of the functions refer its application to ranked abundance distributions (RAD) data, every function is also applicable to model species abundance data. See references for a discussion and application to both type of ecological data.

References

La Rosa PS, Brooks JP, Deych E, Boone EL, Edwards DJ, et al. (2012) Hypothesis Testing and Power Calculations for Taxonomic-Based Human Microbiome Data. PLoS ONE 7(12): e52078. doi:10.1371/journal.pone.0052078

Yang D, Johnson J, Zhou X, Deych E, et al. (2019) Microbiome Recursive Partitioning. Currently Under Review.

Author(s)

Patricio S. La Rosa, Elena Deych, Berkley Shands, Sharina Carter, Dake Yang, William D. Shannon

  • Maintainer: Berkley Shands
  • License: Apache License (== 2.0)
  • Last published: 2019-08-31

Useful links