henhaobio
Sign in

bioRxivBioinformaticsPreprint

ampvis2: an R package to analyse and visualise 16S rRNA amplicon data

Kasper Skytte AnderseniD, Rasmus Hansen KirkegaardiD, Søren Michael KarstiD, Mads AlbertseniD

PDFDOICode

In-depth summary

Claude Opus 5.5 · max effort · 8 Nov 2026 · from the full text of version 1 (11 Apr 2018) · CC BY 4.0

ampvis2 unifies 16S amplicon count tables, taxonomy, and sample metadata in one R object, feeding ggplot2 heatmaps at any taxonomic rank and single-call ordination (seven methods).

Analysing operational taxonomic unit (OTU) tables often relies on phyloseq, whose S4 object system non-experts find hard to understand and modify, and many tools make it awkward to use sample metadata such as pH, temperature, or site. ampvis2 offers a small set of intuitive commands, metadata-driven grouping in nearly all plots, customisable ggplot2 graphics, and interactive views for large next-generation sequencing datasets.

Key results

  1. Claimedamp_load checks and merges a required OTU table (with Kingdom-to-Species taxonomy) and sample metadata, plus optional OTU sequences and a phylogenetic tree, into a single ampvis2 object, so subsetting and filtering act on all components at once.

    Minimum input is two row-by-column files (an OTU table with taxonomy; sample metadata as CSV or Excel); FASTA sequences and a tree are optional; QIIME, mothur and UPARSE outputs can be imported directly; two dedicated functions subset and filter; Fig. 1 outlines the workflow. No usability data are reported. · 2 Implementation and features; Figure legends

  2. ClaimedHeatmaps show the most abundant taxa with both colour gradients and exact abundance values, can aggregate OTUs to any taxonomic level by summing their read counts, and can average relative abundances over sample groups defined by metadata variables.

    Taxa built from combined OTU read counts at the chosen rank occupy the second axis, while the first axis shows mean relative abundance for groups set by one or more metadata variables. Authors highlight this as a key feature; no example values or comparison with other heatmap tools are given. · Abstract; 2.1 Flexible heatmaps

  3. ClaimedA single function call chains low-abundance OTU filtering, data transformation, distance-matrix calculation, site and species scores, fitting of metadata environmental variables, and ggplot2 plotting, notably via vegan functions, for seven ordination methods common in microbial ecology.

    Seven methods are supported; the output is a 2-dimensional ggplot2 plot that can be rendered interactive through the Plotly JavaScript library. The text does not name the seven methods, the distance measures, or default filtering thresholds. · Abstract; 2.2 Simplified ordination

  4. ClaimedBecause all plots are generated with ggplot2, figures are presented as publication-ready and customisable through the wider ggplot2 framework, and interactive rendering with zoom and hover information is provided where possible to help explore larger, more complex datasets.

    Abstract and Introduction assert publication-ready, easily customised figures and interactive zooming and hovering for growing next-generation sequencing datasets; ordination plots are the stated Plotly example. No assessment of figure quality, interactive performance, or dataset-size limits is presented. · Abstract; 1 Introduction; 2.2 Simplified ordination

  5. ClaimedFurther functions cover diversity analyses (rarefaction curves, alpha diversity), core-community and co-occurrence network analysis, boxplots and time-series plots, and data subsetting and export, with detailed documentation stated to be available online.

    Functions are only listed; the manuscript gives no worked examples, parameter descriptions, or validation of these analyses and refers readers to the online documentation. · 2.3 Additional functionality

Methods, data and reproducibility

R package with a small command set: amp_load checks and merges OTU counts, taxonomy, sample metadata, and optional sequences or tree into a single object. Downstream functions filter data and draw ggplot2 heatmaps, vegan-based ordinations, diversity, and network plots, with optional Plotly interactivity.

  • Example data bundled with ampvis2: Illumina 16S rRNA amplicon community profiles of activated sludge from Danish wastewater treatment plants, 2006-2015, plus a smaller subset · microbial communities (activated sludge) · n = 658 samples from 55 wastewater treatment plants
Methods & tools
ampvis2 functions amp_load, amp_heatmap and amp_ordinate, R statistical language, ggplot2 (plot generation and customisation), vegan (functions integrated for ordination), Plotly JavaScript library (interactive plots), QIIME (direct import supported), mothur (direct import supported), UPARSE (direct import supported), 16S rRNA gene amplicon sequencing on the Illumina platform (example data)
Software & environment
Implemented in R and released under the GNU A-GPL licence; builds on ggplot2 and vegan, with Plotly for interactive plots; no R or dependency versions are stated.
Reproducibility gaps
No versioned release, archived snapshot, or dependency versions are cited, and the bundled activated sludge example data is given without a raw-read accession.
Limitations (3)
  • Authors note that ordination is a field in its own right and that grasping the principles of common methods remains useful, because each method can expose distinct aspects of the data. · stated by the authors
  • No benchmarking, runtime or memory measurement, or user study compares ampvis2 with phyloseq or other tools, so claims of greater simplicity, publication-ready output, and suitability for larger datasets remain untested in the manuscript. · noted in this summary
  • The manuscript does not name the seven ordination methods, distance measures, transformations, or filtering defaults, nor describe significance testing of metadata fits, so readers must consult the online documentation to know what a single call computes. · noted in this summary

Read this if you analyse 16S rRNA amplicon OTU tables in R and want metadata-grouped heatmaps and single-call ordination without handling phyloseq's S4 object system.

Citations
731

Abstract

SummaryMicrobial community analysis using 16S rRNA gene amplicon sequencing is the backbone of many microbial ecology studies. Several approaches and pipelines exist for processing the raw data generated through DNA sequencing and convert the data into OTU-tables. Here we present ampvis2, an R package designed for analysis of microbial community data in OTU-table format with focus on simplicity, reproducibility, and sample metadata integration, with a minimal set of intuitive commands. Unique features include flexible heatmaps and simplified ordination. By generating plots using the ggplot2 package, ampvis2 produces publication-ready figures that can be easily customised. Furthermore, ampvis2 includes features for interactive visualisation, which can be convenient for larger, more complex data.\n\nAvailabilityampvis2 is implemented in the R statistical language and is released under the GNU A-GPL license. Documentation website and source code is maintained at: https://github.com/MadsAlbertsen/ampvis2\n\nContactMads Albertsen (ma@bio.aau.dk)

Reproducibility ledger

Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.

Sign in to file a reproducibility report.

Similarity Map
SelectedSame fieldCross-field
THISScherz '24Kapoor '26Dong '17Johnson '20Wei '20Olson '19
70% semantic matchBioinformatics
Valentin Scherz, Sedreh Nassirnia, Farid Chaabane+4 more·Bioinformatics Advances·Dec 26, 2024· 7 citations