-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path90-lab.Rmd.Rmd
76 lines (30 loc) · 2.17 KB
/
90-lab.Rmd.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: "Questions for Lab 1, 2 and 3"
author: "Leo lahti & Rajesh Shigdel"
date: Sys.time()
output: html_document
---
The example in this tutorial are mainly based on this online book by Leo Lahti [aut], Sudarsan Shetty [aut], Felix GM Ernst [aut, cre]
[Orchestrating Microbiome Analysis](https://microbiome.github.io/OMA/)
In this tutorila we use [human gastrointestinal microbiota data](https://www.microbiomeatlas.org/)
#Lab 1
1.Make a se (SummarizedExperiment) Object for the further analysis
2.Once you make a SummarizedExperiment object out of this data then check how many taxa and samples the data contains?
3.Report how many unique phylum present in this data
4. Subset the data at the phylum level with only taking bacterial phyla that are greater than 10% of prevalence in the total sample (feature selection lab 1)
5. Subset a se object which consist only two phyum i.e Actinobacteria", "Cyanobacteria
6. Calculates relative abundances, and stores the table to assays
7.Perform a centred log-ratio transformation (clr)
* Aitchison, J. (1986). “The Statistical Analysis of Compositional Data”, Chapman and Hall, reprinted in 2003 with additional material by The Blackburn Press
8.calculate Abundances of all taxa in specific sample and abundance of specific taxa in all samples
#Lab 2
##Clustering and visualization
1. Visualize Beta-diversity using principal coordinate analysis (PCoA); use relative abundance data with bray-Curtis dissimilarities
2. Visualize Beta-diversity using principal coordinate analysis (PCoA); with Aitchison distance (clr transformation+ Euclidean distance)
3. Cluster the samples using Dirichlet- multinomial mixture model
4. Visualize the cluster in the PCoA plot
#Lab 3
##Analysis and interpretation
1. What taxa are driving the axis? Calculate the spearman correlation between PC1 and the relative abundance of the bacteria and visualize the results in a bar plot.
2. Visualize the dominant taxonomic group of each sample by colour on PCoA plot
3. Visualize gender by colour on PCoA plot