-
Notifications
You must be signed in to change notification settings - Fork 2
/
MicrobiotaProcess.R
59 lines (51 loc) · 1021 Bytes
/
MicrobiotaProcess.R
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
#### Abundancias relativas con MicrobiotaProcess
transformar el objeto de phyloseq a MPSE
```{r}
p_0week #CS y MDD en semana 0
psd4_mdd #MDD semana 0 y semana 8
p_0_mpse <- p_0week %>% as.MPSE()
p_mdd_mpse <- psd4_mdd %>% as.MPSE()
```
Graficar top 20
### CS y MDD Week 0
```{r}
## a nivel familia
p1 <- p_0_mpse %>%
mp_plot_abundance(
.abundance=RareAbundance,
.group=groups,
taxa.class = Family,
topn = 20,
relative = TRUE
)
## a nivel genero
p2 <- p_0_mpse %>%
mp_plot_abundance(
.abundance=RareAbundance,
.group=groups,
taxa.class = Genus,
topn = 20,
relative = TRUE
)
```
### MMD Week 0 y 08
```{r}
## a nivel familia
p3 <- p_mdd_mpse %>%
mp_plot_abundance(
.abundance=RareAbundance,
.group=groups,
taxa.class = Family,
topn = 20,
relative = TRUE
)
## a nivel genero
p4 <- p_mdd_mpse %>%
mp_plot_abundance(
.abundance=RareAbundance,
.group=groups,
taxa.class = Genus,
topn = 20,
relative = TRUE
)
```