MENU

Fun & Interesting

Using the purrr and broom R packages to easily perform thousands of statistical tests (CC112)

Riffomonas Project 9,393 lượt xem 3 years ago
Video Not Working? Fix It Now

Functions from the purr and broom R packages are a powerful combination if you need to iterate or repeat a function over multiple groups of data. In this episode of Code Club, Pat uses the nest, map, tidy, and unnest functions to run kruskal.test and pairwise.wilcox.test to test for evidence of significant differences across thousands of taxa in a microbiome data analysis.

Pat will use RStudio and the #map, #tidy, and #nest functions from the purrr and broom packages. The accompanying blog post can be found at https://www.riffomonas.org/code_club/2021-06-03-filter-by-significance.

Do you have a figure that you would like to receive a critique or help improving? Let me know and I'd be happy to arrange a guest appearance!

If you're interested in taking an upcoming 3 day R workshop, email me at riffomonas@gmail.com!

R: https://r-project.org
RStudio: https://rstudio.com
Raw data: https://github.com/riffomonas/raw_data/releases/latest
Workshops: https://www.mothur.org/wiki/workshops

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/

0:00 Introduction
3:15 Testing significance for one OTU
6:43 Testing significance for most abundant OTUs
11:20 Testing significance with pairwise comparisons
14:44 Testing significance for all OTUs
16:06 Rational for looking at most abundant OTUs
18:28 Recap

Comment