Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Nov 4, 2024
1 parent ae8d099 commit 647b93d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion vignettes/case_study.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,10 @@ By applying MOFA analysis, our goal is to determine whether metagenomics and
fatty acids exhibit shared variability, ultimately assessing whether the
microbial community is associated with fatty acid composition.

```{r, results = FALSE}
```{r}
#| label: fit_mofa
#| output: false
#| include: false
mae_temp <- mae
mae_temp[[2]] <- altExp(mae_temp[[2]], "prev_genus")
Expand Down Expand Up @@ -786,6 +787,21 @@ microbes and specific fatty acid profiles, hinting at a functional relationship.

## Conclusions

```{r}
#| label: create_summary_plot
#| eval: false
#| echo: false
features <- c(
"Docosahexaenoic acid 22:6n-3 (DHA)", "Eicosapentaenoic acid 20:5n-3 (EPA)")
p1 <- plotExpression(
mae[[1]], features, assay.type = "counts", x = "timepoint",
colour_by = "study_group", scales = "free", ncol = 1)
p2 <- plot_variance_explained(model)
p1 + p2
```

The present case study has demonstrated how easy and fast it is to
download large dataset and transform the data into a `MultiAssayExperiment`,
which in turn gives the researchers access to an extensive plethora of
Expand Down

0 comments on commit 647b93d

Please sign in to comment.