Sami Hyypiä

Sami Hyypiä (Source: liverpoolfc.com)

Microbiome data science

  • Interactions between microbes and host
  • Sequencing data - Other omics regularly incorporated

Challenges

Lack of…

  • Standardization
  • Scalability, support for multi-table data
  • Interoperability with other fields

Bioconductor

Community-driven bioinformatics project

  1. Training & community support
  2. Conferences & workshops
  3. Open source software


Bioconductor logo.

Software

  • ~2,300 R packages
  • Review, testing, documentation
Stacked area chart of the number of Bioconductor packages per field from 2009 to today, growing steadily to over two thousand.

Data containers

  • The core of software
  • Structured, standardized way to manage complex data
  • Enables modular, efficient workflows
Three nested ellipses labelled, from outside to inside, Community, Methods and Data container.

A heap of loose paper sheets, an arrow, and a book labelled Data container.

A heap of unorganised tables, an arrow, and the TreeSummarizedExperiment diagram that links the tables in one container.

TreeSummarizedExperiment

(Huang et al. 2021)

TreeSummarizedExperiment class

Microbiome Analysis (mia)

  • Microbiome data science ecosystem
  • “Downstream”, statistical analysis
  • mia package top 6.81% Bioconductor downloads

Bioconductor sticker mia logo

Community-driven ecosystem of tools

mia logo. MGnifyR logo. HoloFoodR logo. iSEE logo. MAE logo. SE logo. SCE logo. scater logo. benchdamic logo. netcomi logo. radEmu logo. DESeq2 logo. Biobakery logo. anansi logo.

Community-driven ecosystem of tools

Interoperable with the broader Bioconductor ecosystem

mia logo. MGnifyR logo. HoloFoodR logo. iSEE logo. MAE logo. SE logo. SCE logo. scater logo. benchdamic logo. netcomi logo. radEmu logo. DESeq2 logo. Biobakery logo. anansi logo.

Demonstration

library(mia)

library(mia)

tse <- importMetaPhlAn(
    file = "path_to_your_file.txt",
    col.data = "metadata_file.csv",
    tree.file = "phylogeny.nwk"
)

library(mia)

tse <- importMetaPhlAn(
    file = "path_to_your_file.txt"
    col.data = "metadata_file.csv",
    tree.file = "phylogeny.nwk"
)

print(tse)
class: TreeSummarizedExperiment 
dim: 306 60 
metadata(0):
assays(1): counts
rownames(306): Escherichia coli Alistipes putredinis ... Campylobacter
  ureolyticus Prevotella sp. oral taxon 376
rowData names(7): superkingdom phylum ... genus species
colnames(60): GupDM_A_11 GupDM_A_15 ... GupDM_JO GupDM_JP
colData names(27): study_name subject_id ... disease_stage
  disease_location
reducedDimNames(0):
mainExpName: NULL
altExpNames(0):
rowLinks: a LinkDataFrame (306 rows)
rowTree: 1 phylo tree(s) (10430 leaves)
colLinks: NULL
colTree: NULL

# Agglomerate data
tse <- agglomerateByRanks(tse)

# Agglomerate data
tse <- agglomerateByRanks(tse)

# Apply transformation
tse <- transformAssay(tse, method = "relabundance")

# Agglomerate data
tse <- agglomerateByRanks(tse)

# Apply transformation
tse <- transformAssay(tse, method = "relabundance")

print(tse)
class: TreeSummarizedExperiment 
dim: 306 60 
metadata(0):
assays(2): counts relabundance
rownames(306): Escherichia coli Alistipes putredinis ... Campylobacter
  ureolyticus Prevotella sp. oral taxon 376
rowData names(7): superkingdom phylum ... genus species
colnames(60): GupDM_A_11 GupDM_A_15 ... GupDM_JO GupDM_JP
colData names(27): study_name subject_id ... disease_stage
  disease_location
reducedDimNames(0):
mainExpName: NULL
altExpNames(7): superkingdom phylum ... genus species
rowLinks: a LinkDataFrame (306 rows)
rowTree: 1 phylo tree(s) (10430 leaves)
colLinks: NULL
colTree: NULL

library(miaViz)

library(miaViz)

plotAbundance(
    tse,
    rank = "phylum",
    assay.type = "relabundance",
    col.var = "disease"
)

library(miaViz)

plotAbundance(
    tse,
    rank = "phylum",
    assay.type = "relabundance",
    col.var = "disease"
)
Stacked bar plot of relative phylum abundances per sample, in two panels: CRC and healthy.

# Calculate alpha diversity
tse <- addAlpha(tse)

# Calculate alpha diversity
tse <- addAlpha(tse)

# Visualize results
library(scater)
plotColData(tse, x = "disease", y = "faith_diversity")

# Calculate alpha diversity
tse <- addAlpha(tse)

# Visualize results
library(scater)
plotColData(tse, x = "disease", y = "faith_diversity")
Violin plot of Faith's diversity for the CRC and healthy groups.

# Calculate MDS
tse <- addMDS(tse, method = "unifrac")

# Calculate MDS
tse <- addMDS(tse, method = "unifrac")

# Visualize results
plotReducedDim(tse, dimred = "MDS", colour_by = "disease")

# Calculate MDS
tse <- addMDS(tse, method = "unifrac")

# Visualize results
plotReducedDim(tse, dimred = "MDS", colour_by = "disease")
Scatter plot of the first two MDS axes based on UniFrac distance, samples coloured by disease (CRC or healthy).

Online book

  • Resources and tutorials for microbiome analysis
  • Community-built best practices
  • Open to contributions!

Screenshot of the Orchestrating Microbiome Analysis online book home page.

Acknowledgements

Leo Lahti, Felix M. Ernst, Giulio Benedetti, Sudarshan Shetty, Muluh Geraldson, Akewak Jeba, Thomaz Bastiaanssen, Aura Raulo, Levi Waldron, Henrik Eckermann, Chouaib Benchraka, Yağmur Şimşek, Basil Courbayre, Matti Ruuskanen, Stefanie Peschel, Christian L. Müller, Aki Havulinna, Shigdel Rajesh, Artur Sannikov, Himmi Lindgren, Lu Yang, Katariina Pärnänen, Noah de Gunst, Axel Dagnaud, Ely Seraidarian, Théotime Pralas, Jiya Chaudhary, Elina Chiesa, Pande Erawijantari, Shadman Ishraq, Sam Hillman, Matteo Calgaro, Basil Courbayre Dussau, Yang Cao, Eineje Ameh, Domenick J. Braccia, Renuka Potbhare, Hervé Pagès, Moritz E. Beber, Vivian Ikeh, Yu Gao, Daniel Garza, Karoline Faust, Jacques Serizay, Himel Mallick, Yihan Liu, Danielle Callan, Ben Allen, Teo Dallier, Elliot Gaudron-Parry, Inès Benseddik, Jesse Pasanen, Benjamin Valderrama

University of Turku logo

EMBL-EBI logo

Research Council of Finland logo

CompLifeSci logo

Turun yliopistosäätiö logo

Thank you for your time!

mia logo.

QR code linking to the Orchestrating Microbiome Analysis online book.

Orchestrating Microbiome Analysis online book

References

Huang, Ruizhu, Charlotte Soneson, Felix G. M. Ernst, et al. 2021. “TreeSummarizedExperiment: A S4 Class for Data with Hierarchical Structure.” F1000Research 9: 1246. https://doi.org/10.12688/f1000research.26669.2.
Moreno-Indias, Isabel, Leo Lahti, Miroslava Nedyalkova, et al. 2021. “Statistical and Machine Learning Techniques in Human Microbiome Studies: Contemporary Challenges and Solutions.” Frontiers in Microbiology 12: 277. https://doi.org/10.3389/fmicb.2021.635781.