Contents

miaViz implements plotting function to work with TreeSummarizedExperiment and related objects in a context of microbiome analysis. For more general plotting function on SummarizedExperiment objects the scater package offers several options, such as plotColData, plotExpression and plotRowData.

1 Installation

To install miaViz, install BiocManager first, if it is not installed. Afterwards use the install function from BiocManager and load miaViz.

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("miaViz")
library(miaViz)
library(scater)
data(GlobalPatterns, package = "mia")

2 Overview of miaViz functions

All plotting functions return ggplot2 objects, so titles, scales and themes can be adjusted with the usual ggplot2 functions, e.g. + labs(). Common arguments, such as colour.by, shape.by and the default colour palette, are described in ?"mia-plot-args". Most functions are demonstrated below; further examples are in Orchestrating Microbiome Analysis (Lahti, Shetty, and Ernst 2021).

Use case Functions What they show
Community composition plotAbundance() Stacked barplot of abundances per sample
plotAbundanceDensity() Distribution of abundances of the top features
Distributions and groups plotHistogram(), plotBarplot() Histogram or barplot of assay values or sample/feature variables
plotBoxplot() Boxplots of assay values or variables, with optional significance tests and paired lines
Prevalence plotPrevalence(), plotRowPrevalence(), plotPrevalentAbundance() Prevalence across detection thresholds and abundance
Heatmaps plotHeatmap(), plotDissimilarity() Heatmap of an assay, or of a dissimilarity matrix between samples
getHeatmapOrder() Row and column order used for sorting heatmaps
Ordination plotOrdination() Samples in a reduced dimension (PCA, MDS, NMDS, …)
plotScree() Explained variance or eigenvalues per component
plotLoadings() Feature loadings of the components
plotRDA(), plotCCA() Constrained ordination (RDA/CCA) with vectors of the covariates
Statistical results plotForest() Effect sizes with confidence intervals, e.g. from differential abundance analysis
plotMediation() Results of mia::addMediation() as a heatmap or forest plot
plotDMNFit() Model fit of Dirichlet-Multinomial mixtures
Trees plotRowTree(), plotColTree() Tree of features or samples with tip, node and edge annotations
rowTreeData(), colTreeData(), combineTreeData() Access and combine the data used for annotating trees
Graphs and networks plotRowGraph(), plotColGraph() Graph of features or samples with data from the object
Factor data plotColTile(), plotRowTile() Relation of two categorical variables as tiles
Time series plotSeries() Abundance of features over time
Multi-omics (Joint-RPCA) plotJointRPCA(), plotJointRPCAExplainedVariance(), plotJointRPCALoadings(), plotJointRPCACovariance(), plotJointRPCANetwork() Results of mia::addJointRPCA(): ordination, variance, loadings, covariance and feature network

The examples below use the GlobalPatterns data from the mia package.

3 Abundance plotting

In contrast to other fields of sequencing based fields of research for which expression of genes is usually studied, microbiome research uses the more term Abundance to described the numeric data measured and analyzed. Technically, especially in context of SummarizedExperiment objects, there is no difference. Therefore plotExpression can be used to plot Abundance data of a particular feature.

plotExpression(GlobalPatterns, features = "549322", assay.type = "counts")

On the other hand, plotAbundance can be used to plot abundance by rank. A bar plot is returned showing the relative abundance within each sample for a given rank. At the same time the features argument can be set to NULL (default).

GlobalPatterns <- transformAssay(GlobalPatterns, method = "relabundance")
plotAbundance(GlobalPatterns, rank = "Kingdom", assay.type = "relabundance")

If rank is set to null however then the bars will be colored by each individual taxon. Please note that if you’re doing this make sure to agglomerate your data to a certain taxonomic hand before plotting.

GlobalPatterns_king <- agglomerateByRank(GlobalPatterns, "Kingdom")
plotAbundance(GlobalPatterns_king, assay.type = "relabundance")

With subsetting to selected features the plot can be fine tuned.

prev_phylum <- getPrevalent(GlobalPatterns, rank = "Phylum", detection = 0.01)
plotAbundance(
    GlobalPatterns[rowData(GlobalPatterns)$Phylum %in% prev_phylum],
    rank = "Phylum",
    assay.type = "relabundance")
#> Warning: Removed 101 rows containing missing values or values outside the scale range
#> (`geom_bar()`).

The features argument is reused for plotting data along the different samples. In the next example the SampleType is plotted along the samples.

plotAbundance(
    GlobalPatterns[rowData(GlobalPatterns)$Phylum %in% prev_phylum],
    features = "SampleType",
    rank = "Phylum",
    assay.type = "relabundance"
)
#> Warning: Removed 101 rows containing missing values or values outside the scale range
#> (`geom_bar()`).

Further example about composition barplot can be found at Orchestrating Microbiome Analysis (Lahti, Shetty, and Ernst 2021).

4 Prevalence plotting

To visualize prevalence within the dataset, three functions are available, plotRowPrevalence, plotPrevalenceAbundance and plotPrevalence.

plotRowPrevalence produces a so-called landscape plot, which visualizes the prevalence of samples across abundance thresholds.

plotRowPrevalence(
    GlobalPatterns, rank = "Phylum", detections = c(0, 0.001, 0.01, 0.1, 0.2))

plotPrevalenceAbundance plot the prevalence depending on the mean relative abundance on the chosen taxonomic level.

plotPrevalentAbundance(GlobalPatterns, rank = "Family", colour.by = "Phylum") +
    scale_x_log10()
#> 7 duplicated label(s) were made unique (make.unique = TRUE): Alteromonadaceae -> Alteromonadaceae_1, Piscirickettsiaceae -> Piscirickettsiaceae_1, Piscirickettsiaceae -> Piscirickettsiaceae_2, Chromatiaceae -> Chromatiaceae_1, Thiotrichaceae -> Thiotrichaceae_1, ... (2 more)

plotPrevalence plot the number of samples and their prevalence across different abundance thresholds. Abundance steps can be adjusted using the detections argument, whereas the analyzed prevalence steps is set using the prevalences argument.

plotPrevalence(
    GlobalPatterns, rank = "Phylum",
    detections = c(0.01, 0.1, 1, 2, 5, 10, 20)/100,
    prevalences = seq(0.1, 1, 0.1))

5 Heatmaps

plotHeatmap() draws an assay as a heatmap. Here, the 10 most abundant phyla are shown as CLR-transformed and standardized values, and the samples are split by sample type.

tse_phylum <- agglomerateByRank(GlobalPatterns, rank = "Phylum")
tse_phylum <- transformAssay(tse_phylum, method = "clr", pseudocount = 1)
tse_phylum <- transformAssay(
    tse_phylum, assay.type = "clr", method = "standardize", MARGIN = "rows",
    name = "clr_z")
tse_top <- tse_phylum[getTop(tse_phylum, top = 10L), ]
# scater also has a plotHeatmap() function, so the package is given
miaViz::plotHeatmap(tse_top, assay.type = "clr_z", col.var = "SampleType")

plotDissimilarity() shows a dissimilarity matrix between samples, and getHeatmapOrder() returns the order of rows or columns used for sorting.

tse_phylum <- addDissimilarity(
    tse_phylum, assay.type = "relabundance", method = "bray", name = "bray")
plotDissimilarity(tse_phylum, name = "bray", col.var = "SampleType")
#> Registered S3 method overwritten by 'seriation':
#>   method         from 
#>   reorder.hclust vegan

6 Ordination

plotOrdination() plots samples in a reduced dimension stored in reducedDim(). plotScree() shows the explained variance of the components and plotLoadings() the contribution of the features.

tse_phylum <- addPCA(
    tse_phylum, assay.type = "clr", name = "PCA", ncomponents = 5)
plotOrdination(tse_phylum, dimred = "PCA", colour.by = "SampleType")

plotScree(tse_phylum, dimred = "PCA")

plotLoadings(tse_phylum, dimred = "PCA", ncomponents = 2, n = 10)

For redundancy analysis (RDA), plotRDA() adds the vectors of the covariates. plotCCA() works in the same way for canonical correspondence analysis. Here, the samples from three environments are compared.

tse_env <- tse_phylum[, tse_phylum$SampleType %in% c("Ocean", "Soil", "Feces")]
tse_env$SampleType <- droplevels(tse_env$SampleType)
tse_env <- addRDA(
    tse_env, assay.type = "relabundance", formula = x ~ SampleType,
    distance = "bray")
plotRDA(tse_env, "RDA", colour.by = "SampleType")

7 Distributions and group comparisons

plotHistogram() and plotBarplot() show the distribution of assay values or of variables in colData() or rowData().

plotHistogram(tse_phylum, assay.type = "clr")
#> `stat_bin()` using `bins = 30`. Pick better value `binwidth`.

plotBarplot(tse_phylum, col.var = "SampleType")

plotBoxplot() compares assay values or variables between groups.

plotBoxplot(
    tse_phylum, assay.type = "clr", features = c("Bacteroidetes", "Firmicutes"),
    x = "SampleType", facet.by = "rownames") +
    theme(axis.text.x = element_text(angle = 45, hjust = 1))

plotAbundanceDensity() shows the distribution of abundances of the most abundant features.

plotAbundanceDensity(
    tse_phylum, layout = "jitter", assay.type = "relabundance", n = 10) +
    scale_x_log10()

8 Visualising statistical results

plotForest() shows effect sizes with their confidence intervals, for example from a differential abundance analysis. Here we compare the CLR-transformed abundances of fecal and other samples with a linear model for each of the 10 most abundant phyla.

fecal <- tse_top$SampleType %in% c("Feces", "Mock")
res <- apply(assay(tse_top, "clr"), 1L, function(y){
    fit <- summary(lm(y ~ fecal))$coefficients
    c(effect = fit[2L, 1L], stderr = fit[2L, 2L], pval = fit[2L, 4L],
        df = length(y) - 2L)
})
res <- data.frame(t(res))
plotForest(
    res, effect.var = "effect", err.var = "stderr", df.var = "df",
    pval.var = "pval", label.by = c("CI", "P-Value"), order.by = "effect")

plotMediation() visualizes the results of mia::addMediation(); see ?plotMediation and the mediation chapter of (Lahti, Shetty, and Ernst 2021).

9 Tree plotting

The information stored in the rowTree can be directly plotted. However, sizes of stored trees have to be kept in mind and plotting of large trees rarely makes sense.

For this example we limit the information plotted to the top 100 taxa as judged by mean abundance on the genus level.

library(scater)
library(mia)
# Agglomeration drops the phylogenetic tree, so we add a tree based on the
# taxonomic hierarchy
altExp(GlobalPatterns,"Genus") <- agglomerateByRank(GlobalPatterns,"Genus")
#> 13 duplicated label(s) were made unique (make.unique = TRUE): Streptomyces -> Streptomyces_1, Mycoplana -> Mycoplana_1, Clostridium -> Clostridium_1, Eubacterium -> Eubacterium_1, Clostridium -> Clostridium_2, ... (8 more)
altExp(GlobalPatterns,"Genus") <- addHierarchyTree(
    altExp(GlobalPatterns,"Genus"))
#> Warning in toTree(td): The root is added with label 'ALL'
altExp(GlobalPatterns,"Genus") <- addPerFeatureQC(
    altExp(GlobalPatterns,"Genus"))
rowData(altExp(GlobalPatterns,"Genus"))$log_mean <- log(
    rowData(altExp(GlobalPatterns,"Genus"))$mean)
rowData(altExp(GlobalPatterns,"Genus"))$detected <- rowData(
    altExp(GlobalPatterns,"Genus"))$detected / 100
top_taxa <- getTop(
    altExp(GlobalPatterns,"Genus"),
    method="mean",
    top=100L,
    assay.type="counts")

Colour, size and shape of tree tips and nodes can be decorated based on data present in the SE object or by providing additional information via the other_fields argument. Note that currently information for nodes have to be provided via the other_fields arguments.

Data will be matched via the node or label argument depending on which was provided. label takes precedent.

plotRowTree(
    altExp(GlobalPatterns,"Genus")[top_taxa,], tip.colour.by = "log_mean",
    tip.size.by = "detected")
Tree plot using ggtree with tip labels decorated by mean abundance (colour) and prevalence (size)

Figure 1: Tree plot using ggtree with tip labels decorated by mean abundance (colour) and prevalence (size)

Tip and node labels can be shown as well. Setting show_label = TRUE shows the tip labels only …

plotRowTree(
    altExp(GlobalPatterns,"Genus")[top_taxa,],
    tip.colour.by = "log_mean", tip.size.by = "detected", show.label = TRUE)
Tree plot using ggtree with tip labels decorated by mean abundance (colour) and prevalence (size). Tip labels of the tree are shown as well.

Figure 2: Tree plot using ggtree with tip labels decorated by mean abundance (colour) and prevalence (size)
Tip labels of the tree are shown as well.

… whereas node labels can be selectively shown by providing a named logical vector to show_label.

Please note that currently ggtree can only plot node labels in a rectangular layout.

labels <- c("Genus:Providencia", "Genus:Morganella", "0.961.60")
plotRowTree(
    altExp(GlobalPatterns,"Genus")[top_taxa,],
    tip.colour.by = "log_mean",
    tip.size.by = "detected",
    show.label = labels,
    layout="rectangular")
Tree plot using ggtree with tip labels decorated by mean abundance (colour) and prevalence (size). Selected node and tip labels are shown.

Figure 3: Tree plot using ggtree with tip labels decorated by mean abundance (colour) and prevalence (size)
Selected node and tip labels are shown.

Information can also be visualized on the edges of the tree plot.

plotRowTree(
    altExp(GlobalPatterns,"Genus")[top_taxa,],
    edge.colour.by = "Phylum",
    tip.colour.by = "log_mean")
Tree plot using ggtree with tip labels decorated by mean abundance (colour) and edges labeled Kingdom (colour) and prevalence (size)

Figure 4: Tree plot using ggtree with tip labels decorated by mean abundance (colour) and edges labeled Kingdom (colour) and prevalence (size)

10 Graph plotting

Similar to tree data, graph data can also be plotted in conjunction with SummarizedExperiment objects. Since the graph data in itself cannot be stored in a specialized slot, a graph object can be provided separately or as an element from the metedata.

Here we load an example graph. As graph data, all objects types accepted by as_tbl_graph from the tidygraph package are supported.

data(col_graph)

In the following examples, the weight data is automatically generated from the graph data. The SummarizedExperiment provided is required to have overlapping rownames with the node names of the graph. Using this link the graph plot can incorporate data from the SummarizedExperiment.

plotColGraph(
    col_graph,
    altExp(GlobalPatterns,"Genus"),
    colour.by = "SampleType",
    edge.colour.by = "weight",
    edge.width.by = "weight",
    show.label = TRUE)
#> This graph was created by an old(er) igraph version.
#> ℹ Call `igraph::upgrade_graph()` on it to use with the current igraph version.
#> For now we convert it on the fly...

As mentioned the graph data can be provided from the metadata of the SummarizedExperiment.

metadata(altExp(GlobalPatterns,"Genus"))$graph <- col_graph

This produces the same plot as shown above.

11 Plotting of serial data

# Load data from miaTime package
library("miaTime")
data(SilvermanAGutData, package="miaTime")
tse <- SilvermanAGutData
tse <- transformAssay(tse, method = "relabundance")
taxa <- getTop(tse, 2)

Data from samples collected along time can be visualized using plotSeries. The time.col argument is used to reference data from the colData to use as descriptor for ordering the data. The features argument selects the feature to show. Since plotting a lot of features is not advised a maximum of 20 features can plotted at the same time.

plotSeries(
    tse,
    assay.type = "relabundance",
    time.col = "DAY_ORDER",
    features = taxa,
    colour.by = "Family",
    facet.by = "Vessel"
    )

If replicated data is present, data is automatically used for calculation of the mean and sd and plotted as a range. Data from different assays can be used for plotting via the assay.type.

plotSeries(
    tse[taxa,],
    time.col = "DAY_ORDER",
    colour.by = "Family",
    linetype.by = "Phylum",
    assay.type = "relabundance")

Additional variables can be used to modify line type aesthetics.

plotSeries(
    tse,
    time.col = "DAY_ORDER",
    features = getTop(tse, 5),
    colour.by = "Family",
    linetype.by = "Phylum",
    assay.type = "counts")

12 Plotting factor data

To visualize the relative relations between two groupings among the factor data, two functions are available for the purpose; plotColTile and plotRowTile.

data(GlobalPatterns, package="mia")
se <- GlobalPatterns
plotColTile(se,"SampleType","Primer") +
    theme(axis.text.x.top = element_text(angle = 45, hjust = 0))

13 DMN fit plotting

Searching for groups that are similar to each other among the samples, could be approached with the Dirichlet Multinomial Mixtures (Holmes, Harris, and Quince 2012). After using runDMN from the mia package, several k values as a number of clusters are used to observe the best fit (see also getDMN and getBestDMNFit). To visualize the fit using e.g. “laplace” as a measure of goodness of fit:

data(dmn_se, package = "mia")
names(metadata(dmn_se))
#> [1] "DMN"
# plot the fit
plotDMNFit(dmn_se, type = "laplace")
#> Warning in .local(x, name, type, ...): 'getDMN' is deprecated.
#> Use 'addCluster' instead.
#> See help("Deprecated") and help("Now runDMN and calculateDMN are deprecated. Use addCluster with DMMParam parameter and full parameter set as true instead.-deprecated").

14 Serial data ordination and trajectories

Principal Coordinates Analysis using Bray-Curtis dissimilarity on the hitchip1006 dataset:

library(miaTime)
data(hitchip1006, package = "miaTime")
tse <- hitchip1006
tse <- transformAssay(tse, method = "relabundance")
## Ordination with PCoA with Bray-Curtis dissimilarity
tse <- runMDS(
    tse, FUN = getDissimilarity, method = "bray", name = "PCoA_BC",
    assay.type = "relabundance", na.rm = TRUE)
# plot
p <- plotReducedDim(tse, dimred = "PCoA_BC")
p

Retrieving information about all available trajectories:

library(dplyr)

# List subjects with two time points
selected.subjects <- names(which(table(tse$subject)==2))

# Subjects counts per number of time points available in the data
table(table(tse$subject)) %>% as.data.frame() %>%
    rename(Timepoints=Var1, Subjects=Freq)

Lets look at all trajectories having two time points in the data:

# plot
p + geom_path(
    aes(x=X1, y=X2, group=subject), 
    arrow=arrow(length = unit(0.1, "inches")),
    # combining ordination data and metadata then selecting the subjects
    # Note, scuttle::makePerCellDF could also be used for the purpose.
    data = subset(
        data.frame(reducedDim(tse), colData(tse)),
        subject %in% selected.subjects) %>% arrange(time)) +
    labs(title = "All trajectories with two time points") +
    theme(plot.title = element_text(hjust = 0.5))

Filtering the two time point trajectories by divergence and displaying top 10%:

library(miaTime)
# calculating step wise divergence based on the microbial profiles
tse <- getStepwiseDivergence(tse, group = "subject", time_field = "time")
# retrieving the top 10% divergent subjects having two time points
top.selected.subjects <- subset(
    data.frame(reducedDim(tse), colData(tse)),
    subject %in% selected.subjects) %>% 
    top_frac(0.1, time_divergence) %>% select(subject) %>% .[[1]]
# plot
p + geom_path(
    aes(x=X1, y=X2, color=time_divergence, group=subject),
    # the data is sorted in descending order in terms of time
    # since geom_path will use the first occurring observation
    # to color the corresponding segment. Without the sorting
    # geom_path will pick up NA values (corresponding to initial time
    # points); breaking the example.
    data = subset(
        data.frame(reducedDim(tse), colData(tse)),
        subject %in% top.selected.subjects) %>% 
    arrange(desc(time)),
    # arrow end is reversed, due to the earlier sorting.
    arrow=arrow(length = unit(0.1, "inches"), ends = "first")) +
    labs(title = "Top 10%  divergent trajectories from time point one to two") +
    scale_color_gradient2(low="white", high="red")+
    theme(plot.title = element_text(hjust = 0.5))

Plotting an example of the trajectory with the maximum total divergence:

# Get subject with the maximum total divergence
selected.subject <- data.frame(reducedDim(tse), colData(tse)) %>%
    group_by(subject) %>% 
    summarise(total_divergence = sum(time_divergence, na.rm = TRUE)) %>%
    filter(total_divergence==max(total_divergence)) %>% select(subject) %>%
    .[[1]]
# plot
p +  geom_path(
    aes(x=X1, y=X2, group=subject),
    data = subset(
        data.frame(reducedDim(tse), colData(tse)),
        subject %in% selected.subject) %>% arrange(time),
    arrow=arrow(length = unit(0.1, "inches"))) +
    labs(title = "Longest trajectory by divergence") +
    theme(plot.title = element_text(hjust = 0.5))

More examples and materials are available at Orchestrating Microbiome Analysis (Lahti, Shetty, and Ernst 2021).

15 Session info

sessionInfo()
#> R version 4.6.1 (2026-06-24)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.5 LTS
#> 
#> Matrix products: default
#> BLAS:   /home/biocbuild/bbs-3.24-bioc/R/lib/libRblas.so 
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0  LAPACK version 3.12.0
#> 
#> locale:
#>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
#>  [3] LC_TIME=en_GB              LC_COLLATE=C              
#>  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
#>  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
#>  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
#> 
#> time zone: America/New_York
#> tzcode source: system (glibc)
#> 
#> attached base packages:
#> [1] stats4    stats     graphics  grDevices utils     datasets  methods  
#> [8] base     
#> 
#> other attached packages:
#>  [1] scater_1.42.0                   scuttle_1.24.0                 
#>  [3] miaViz_1.22.0                   mia_1.22.0                     
#>  [5] TreeSummarizedExperiment_2.22.0 Biostrings_2.82.0              
#>  [7] XVector_0.54.0                  SingleCellExperiment_1.36.0    
#>  [9] MultiAssayExperiment_1.40.0     SummarizedExperiment_1.44.0    
#> [11] Biobase_2.74.0                  GenomicRanges_1.66.0           
#> [13] Seqinfo_1.4.0                   IRanges_2.48.0                 
#> [15] S4Vectors_0.52.0                BiocGenerics_0.60.0            
#> [17] generics_0.1.4                  MatrixGenerics_1.26.0          
#> [19] matrixStats_1.5.0               ggraph_2.2.2                   
#> [21] ggplot2_4.0.4                   BiocStyle_2.42.0               
#> 
#> loaded via a namespace (and not attached):
#>   [1] RColorBrewer_1.1-3          jsonlite_2.0.0             
#>   [3] magrittr_2.0.5              magick_2.9.1               
#>   [5] ggbeeswarm_0.7.3            farver_2.1.2               
#>   [7] rmarkdown_2.32              fs_2.1.0                   
#>   [9] vctrs_0.7.3                 memoise_2.0.1              
#>  [11] DelayedMatrixStats_1.36.0   ggtree_4.4.0               
#>  [13] tinytex_0.61                htmltools_0.5.9            
#>  [15] S4Arrays_1.14.0             BiocNeighbors_2.8.0        
#>  [17] janeaustenr_1.0.0           SparseArray_1.14.0         
#>  [19] gridGraphics_0.5-1          sass_0.5.0                 
#>  [21] bslib_0.12.0                tokenizers_0.3.0           
#>  [23] htmlwidgets_1.6.4           plyr_1.8.9                 
#>  [25] DECIPHER_3.10.0             cachem_1.1.0               
#>  [27] igraph_2.3.4                iterators_1.0.14           
#>  [29] lifecycle_1.0.5             pkgconfig_2.0.3            
#>  [31] rsvd_2.0.0                  Matrix_1.7-6               
#>  [33] R6_2.6.1                    fastmap_1.2.0              
#>  [35] rbibutils_2.4.1             tidytext_0.4.3             
#>  [37] treelayout_0.1.0            digest_0.6.39              
#>  [39] aplot_0.3.2                 ggnewscale_0.5.2           
#>  [41] patchwork_1.3.2             irlba_2.4.1                
#>  [43] SnowballC_0.7.1             seriation_1.6.0            
#>  [45] vegan_2.7-8                 beachmat_2.30.0            
#>  [47] labeling_0.4.3              polyclip_1.10-7            
#>  [49] abind_1.4-8                 mgcv_1.9-5                 
#>  [51] compiler_4.6.1              fontquiver_0.2.1           
#>  [53] withr_3.0.3                 S7_1.0.0                   
#>  [55] BiocParallel_1.48.0         viridis_0.6.5              
#>  [57] DBI_1.3.0                   ggforce_0.5.0              
#>  [59] MASS_7.3-66                 rappdirs_0.3.4             
#>  [61] DelayedArray_0.40.0         bluster_1.24.0             
#>  [63] permute_0.10-1              tools_4.6.1                
#>  [65] vipor_0.4.7                 otel_0.3.0                 
#>  [67] beeswarm_0.4.0              ape_5.8-1                  
#>  [69] glue_1.8.1                  nlme_3.1-172               
#>  [71] grid_4.6.1                  cluster_2.1.8.3            
#>  [73] reshape2_1.4.5              gtable_0.3.6               
#>  [75] ca_0.72                     tidyr_1.3.2                
#>  [77] BiocSingular_1.30.0         tidygraph_1.3.1            
#>  [79] ScaledMatrix_1.22.0         foreach_1.5.2              
#>  [81] ggrepel_0.9.8               pillar_1.11.1              
#>  [83] stringr_1.6.0               yulab.utils_0.2.6          
#>  [85] splines_4.6.1               dplyr_1.2.1                
#>  [87] tweenr_2.0.3                treeio_1.38.0              
#>  [89] lattice_0.23-1              tidyselect_1.2.1           
#>  [91] DirichletMultinomial_1.56.0 registry_0.5-1             
#>  [93] fontLiberation_0.1.0        knitr_1.52                 
#>  [95] fontBitstreamVera_0.1.1     gridExtra_2.3.1            
#>  [97] bookdown_0.48               xfun_0.62                  
#>  [99] graphlayouts_1.2.5          stringi_1.8.9              
#> [101] lazyeval_0.2.3              ggfun_0.2.2                
#> [103] yaml_2.3.12                 evaluate_1.0.5             
#> [105] codetools_0.2-20            gdtools_0.6.0              
#> [107] tibble_3.3.1                BiocManager_1.30.27        
#> [109] ggplotify_0.1.4             cli_3.6.6                  
#> [111] systemfonts_1.3.4           Rdpack_2.6.6               
#> [113] jquerylib_0.1.4             dichromat_2.0-1            
#> [115] Rcpp_1.1.2                  parallel_4.6.1             
#> [117] sparseMatrixStats_1.26.0    decontam_1.34.0            
#> [119] viridisLite_0.4.3           tidytree_0.4.9             
#> [121] ggiraph_0.9.7               scales_1.4.0               
#> [123] purrr_1.2.2                 crayon_1.5.3               
#> [125] rlang_1.3.0                 TSP_1.3.0                  
#> [127] cowplot_1.2.0

References

Holmes, Ian, Keith Harris, and Christopher Quince. 2012. “Dirichlet Multinomial Mixtures: Generative Models for Microbial Metagenomics.” PLOS ONE. https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0030126.
Lahti, Leo, Sudarshan Shetty, and Felix GM Ernst. 2021. “Orchestrating Microbiome Analysis.” https://microbiome.github.io/OMA/.