Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidealbanese committed May 29, 2019
1 parent 8d26560 commit 8806f6d
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions doc/source/phyloseq.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
An introduction to the downstream analysis with R and phyloseq
==============================================================

.. note::
In this tutorial we describe what is needed to make some common analysis on the
data processed with micca using `R <https://www.r-project.org/>`_ and `phyloseq
<https://joey711.github.io/phyloseq/>`_. In particular, we will discuss the
following topics:

This tutorial requires :doc:`pairedend_97` to be done.
- rarefaction;
- taxonomy and relative abundances;
- alpha diversity and non-parametric tests;
- beta diversity and PERMANOVA;
- differential abuncance test with DESeq2.

.. note::
.. attention::

This tutorial is tested with `R <https://www.r-project.org/>`_ 3.5.3,
`phyloseq <https://joey711.github.io/phyloseq/>`_ 1.26.1, ggplot2 3.1.0,
vegan 2.5-4 and DESeq2 1.22.2.
* This tutorial requires :doc:`pairedend_97` to be done.

* The tutorial is tested
with R 3.5.3, phyloseq 1.26.1, ggplot2 3.1.0, vegan 2.5-4 and DESeq2 1.22.2.

Import data and preparation
---------------------------
Expand Down Expand Up @@ -61,14 +69,12 @@ minimum sample depth in the dataset (459 reads per sample).
> # rarefy without replacement
> ps.rarefied = rarefy_even_depth(ps, rngseed=1, sample.size=0.9*min(sample_sums(ps)), replace=F)
.. note::
.. attention::

Rarefaction can waste a lot of data and would not be necessary. See
https://doi.org/10.1371/journal.pcbi.1003531.
* Rarefaction can waste a lot of data and would not be necessary. See
https://doi.org/10.1371/journal.pcbi.1003531.

.. note::

Remember to set the random seed (``rngseed``) for repeatable experiments.
* Remember to set the random seed (``rngseed``) for repeatable experiments.


.. admonition:: Exercise
Expand All @@ -77,11 +83,6 @@ minimum sample depth in the dataset (459 reads per sample).
phyloseq function ``sample_sums()``.


.. warning:: Exercise

Plot the samples depths histogram before and after the rarefaction using the
phyloseq function ``sample_sums()``.

Plot abundances
---------------

Expand Down

0 comments on commit 8806f6d

Please sign in to comment.