Orchestrating microbiome multi-omics

Bioconductor conference, 2023

Leo Lahti @antagomir

August 2023

Orchestrating microbiome multi-omics with R and Bioconductor

Leo Lahti @antagomir | Department of Computing, University of Turku, Finland

Banner of the Bioconductor conference, August 2-4, 2023, with the BioC2023 logo.

Organizing microbiome data

Side information
sample & feature metadata

Multiple assays
counts, relabundance, phILR..

Alternative experiments 
16S, metagenome, phylogenetic microarrays; pipelines

Cross-kingdom analyses  bacteriome, archaeome, virome, mykobiome, eukaryome

Hierarchical data
taxonomic levels, nested designs, sample & feature trees

Structure of the TreeSummarizedExperiment class: assays, row and column data, row and column trees, reference sequence and metadata.

Fig. by Domenick Braccia (EuroBioC 2020)

Integrating multiple experiments

Combine taxonomic, metagenomic & functional profiling, and host measurements 

by extending the Bioconductor MultiAssayExperiment class.

TreeSummarizedExperiment (taxonomic profiles, multiple assays, alternative experiments, hierarchies) next to MultiAssayExperiment (integrating multiple omics), with schematic structures.

Table comparing the assays, altExp and MultiAssay options by rows, columns and recommended use. Title and authors of the paper Software for the Integration of Multiomics Experiments in Bioconductor.

Benefits for microbiome data science

TreeSummarizedExperiment (taxonomic profiles, multiple assays, alternative experiments, hierarchies) next to MultiAssayExperiment (integrating multiple omics), with schematic structures.

Extended
enhances multi-assay analyses in microbiome studies

Optimized
speed, memory & scale (sample sizes, datasets, cohorts)

Integrated
with other applications & frameworks (e.g. Single Cell, Spatial transcriptomics)

Package and data ecosystem

Bioconductor methods & packages supporting the framework.

Overview of plot functions in the miaViz package.

  • Basic wrangling: transformations, agglomeration, split/merge etc.

  • Alpha & beta diversity

  • Dimension reduction (scater)

  • Differential abundance (ANCOMBC, ALDEx2, benchdamic)

  • Visualization (miaViz)

  • Time series manipulation (miaTime)

  • Ecological simulations (miaSim)

mia logo. Bioconductor logo.

Importers for other common formats

Linking with other common formats and microbiome data science frameworks.

QIIME 2 logo. mothur logo. BIOM format logo. phyloseq logo.

Open data resources

Open microbiome data sets readily available in TreeSummarizedExperiment format via curatedMetagenomicData, EBI MGnify, Bioconductor ExperimentHub, and packages.

Title of the paper Accessible, curated metagenomic data through ExperimentHub.

Homepage of EBI MGnify.

Bioconductor page of the microbiomeDataSets package.

Minimal example

Cross-correlating taxonomic and metabolomic profiles from a dietary intervention study in mice (Hintikka et al. 2021).

library(mia)

# Import data and rename
data("HintikkaXOData")
mae <- HintikkaXOData
  
# Agglomerate rare taxa by prevalence at the Family level & log10-transform read  counts
mae[["microbiota"]] <- agglomerateByPrevalence(mae[["microbiota"]], rank = "Family")
mae[["microbiota"]] <- transformAssay(mae[["microbiota"]], method = "clr", pseudocount = 1)

# Get cross-correlation between taxa & metabolites
x <- testExperimentCrossAssociation(mae, experiment1 = "microbiota", experiment2 = "metabolites",
                                               assay.type1 = "clr", assay.type2 = "nmr",
                                               mode = "matrix", sort = TRUE)$cor

# Visualize taxa-metabolite associations on heatmap
ComplexHeatmap::Heatmap(x)
Heatmap of correlations between microbial families and metabolites, with hierarchical clustering.

Documentation: OMA Gitbook (beta)

Complements other Bioconductor Gitbooks; overlapping methods and analysis strategies: microbiome.github.io/OMA

Table of contents and title page of the OMA online book.

Homepage of the OSCA book on single-cell analysis with Bioconductor.
Homepage of the OSTA book on spatially resolved transcriptomics analysis with Bioconductor.

Community

Coordination: Tuomas Borman, Leo Lahti

Giulio Benedetti, Yağmur Şimşek, Basil Courbayre, Jeba Akewak, Daena Rys, Henrik Eckermann, Chouaib Benchraka, Rajesh Shigdel, Artur Sannikov, Lu Yang, Renuka Potbhare, S. A. Shetty, R. Huang, F. G.M. Ernst, D. J. Braccia, H. C. Bravo; 20+ contributors, 10+ countries. Welcome to join!

Acknowledgments: TreeSummarizedExperiment, SingleCellExperiment, MultiAssayExperiment, curatedMetagenomicData, MGnifyR, phILR, ANCOMBC, ALDEx2, benchdamic, scater, scuttle authors..

Courses in 2023: Pune (IND) | Turku & Oulu (FIN) | Utrecht, Wageningen & Radboud (NLD) | Norwich (UK) |Bergen (NO)

Slack channel miaverse and project website microbiome.github.io, with a QR code.
Photograph of two members of the mia community.
Creative Commons Attribution (CC BY) licence badge.

University of Turku logo.

Research Council of Finland logo.

BioCity Turku logo.

Turku University Foundation logo.

FindingPheno project logo.

ML4Microbiome logo.

Bioconductor logo.

Bioconductor books

Homepage of the OSCA book on single-cell analysis with Bioconductor.
Homepage of the OSTA book on spatially resolved transcriptomics analysis with Bioconductor.

Homepage of the OMA online book.

Resources

Microbiome R package listing:

github.com/microsud/Tools-Microbiome-Analysis

mia logo.

Title of the article Microbiome data science by Shetty and Lahti, Journal of Biosciences, 2019.

Microbiome data science workflow

Data containers:

  • TreeSummarizedExperiment

  • MultiAssayExperiment

R/Bioc packages:
mia, miaViz

Figure by Domenick Braccia (EuroBioC 2020)

Misc

Figure source: Moreno-Indias et al. (2021) Statistical and Machine Learning Techniques in Human Microbiome Studies: Contemporary Challenges and Solutions. Frontiers in Microbiology 12:11.

TreeSummarizedExperiment

Structure of the TreeSummarizedExperiment class: assays, row and column data, row and column trees, reference sequence and metadata.

Optimal container for microbiome data integration?

Improve interoperability, ensure sustainability.

Multiple assays
seamless interlinking

Side information
extended capabilities & data types

Hierarchical data
both samples & features

Optimized
speed & memory

Integrated
other applications & frameworks

Standardized data containers are central to the R/Bioconductor ecosystem: nested circles for community, packages and data.

Data integration in microbiomics

  • Scaling up sample size (cohorts & meta-analyses)

  • Complementary pipelines

  • Alternative experiments (e.g. 16S, metagenome, phylogenetic microarrays)

  • Multiple assays (e.g. counts, relative abundances, clr, phILR)

  • Hierarchies in feature & sample space (phylogenies, nested designs)

  • Cross-kingdom analyses (bacteriome, virome, mykobiome, eukaryome)

  • Multi-omics (taxonomy, function, host)

Optimal container for microbiome data integration?

Improve interoperability, ensure sustainability.

Multiple assays
seamless interlinking

Side information
extended capabilities & data types

Hierarchical data
both samples & features

Optimized
speed & memory

Integrated
other applications & frameworks

Standardized data containers are central to the R/Bioconductor ecosystem: nested circles for community, packages and data.

Linking multiple omics

Taxonomic, metagenomic & functional profiling, host measurements

TreeSummarizedExperiment (taxonomic profiles, multiple assays, alternative experiments, hierarchies) next to MultiAssayExperiment (integrating multiple omics), with schematic structures.

Open data resources

  • curatedMetagenomicData (Pasolli et al. 2017)

  • EBI MGnify (Mitchell et al. 2020)

  • microbiomeDataSets (Ernst et al. 2020);

  • R package demo data sets

  • Import functions for common formats (Biom, QIIME2, Mothur, phyloseq)