Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidealbanese committed Jun 4, 2019
1 parent e531cd3 commit 66029b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Binary file modified doc/source/images/garda_beta.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 26 additions & 1 deletion doc/source/phyloseq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,36 @@ estimates using the phyloseq function ``estimate_richness()``
Bar0114D2.PL1.B1 120 216.3158 34.30966 222.7492 9.064837 4.028745 0.9586721 24.19674 52.85012
Bar0114D3.PL1.C1 116 187.8696 25.47702 221.1842 8.864324 3.932334 0.9560141 22.73454 49.98502
Test whether the observed number of OTUs differs significantly between seasons.
We make a non-parametric test, the Wilcoxon rank-sum test (Mann-Whitney):

.. code-block:: R
> metadata = sample_data(ps.rarefied)
> pairwise.wilcox.test(rich$Observed, metadata$Season)
Pairwise comparisons using Wilcoxon rank sum test
data: rich$Observed and metadata$Season
Fall Spring Summer
Spring 0.112 - -
Summer 0.270 0.681 -
Winter 1.000 0.025 0.112
P value adjustment method: holm
By default, the function ``pairwise.wilcox.test()`` reports the pairwise
adjusted (Holm) p-values.

.. admonition:: Exercise

Repeat the test on the Shannon indexes.

Beta diversity
--------------

Now, we can plot the PCoA using the unweighted UniFrac as distance:
Plot the PCoA using the unweighted UniFrac as distance:

.. code-block:: R
Expand Down

0 comments on commit 66029b0

Please sign in to comment.