-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathAtlas.Rmd
executable file
·44 lines (36 loc) · 1.19 KB
/
Atlas.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: "HITChip Atlas"
author: "Leo Lahti, Sudarshan Shetty et al."
bibliography:
- bibliography.bib
output:
BiocStyle::html_document:
number_sections: no
toc: yes
toc_depth: 4
toc_float: true
self_contained: true
thumbnails: true
lightbox: true
gallery: true
use_bookdown: false
highlight: haddock
---
<!--
%\VignetteEngine{knitr::rmarkdown}
%\VignetteIndexEntry{microbiome tutorial - atlas}
%\usepackage[utf8]{inputenc}
-->
## Intestinal microbiota diversity in 1006 western adults
The data set from [Lahti et al. Nat. Comm. 5:4344, 2014](http://www.nature.com/ncomms/2014/140708/ncomms5344/full/ncomms5344.html) has microbiota profiling of 130 genus-like taxa across 1006 normal western adults from [Data Dryad](http://doi.org/10.5061/dryad.pk75d). Load the data in R:
```{r data2, warning=FALSE, message=FALSE}
# Download the required R packages and then the HITChip Atlas data set
library(microbiome)
data(atlas1006)
```
Estimate ecosystem alpha diversity and related indicators for this data set:
```{r div-example, warning=FALSE, message=FALSE}
tab <- microbiome::alpha(atlas1006, index = c("shannon", "invsimpson"))
library(knitr)
kable(head(tab))
```