Chapter 5 Alpha and Beta Diversity Analyses
NOte: Use sampling depth of 20718 (including all samples)
5.1 Alpha Rarefaction Curves
5.2 Diversity Metrics
$ qiime diversity core-metrics-phylogenetic \
--i-phylogeny phylogenetic_tree/rooted_tree.qza \
--i-table DADA2_denoising_output/table.qza \
--p-sampling-depth 20718 \
--m-metadata-file metadata.txt \
--output-dir core-metrics-results
Then I used this script from Rachel Lappan to iterate the alpha-group-significance plugin.
5.3 Beta signficance metrics
$ qiime diversity beta-group-significance \
--i-distance-matrix bray_curtis_distance_matrix.qza \
--m-metadata-file ../metadata.txt \
--m-metadata-column treatment \
--o-visualization bray_curtis_distance_matrix.qzv
$ qiime diversity beta-group-significance \
--i-distance-matrix unweighted_unifrac_distance_matrix.qza \
--m-metadata-file ../metadata.txt \
--m-metadata-column treatment \
--o-visualization unweighted_unifrac_distance_matrix.qzv
$ qiime diversity beta-group-significance \
--i-distance-matrix weighted_unifrac_distance_matrix.qza \
--m-metadata-file ../metadata.txt \
--m-metadata-column treatment \
--o-visualization weighted_unifrac_distance_matrix.qzv