Skip to content

Pinned R image: R 4.6.2, Bioconductor 3.24, dada2 1.42.0 (#76) - #79

Merged
cjfields merged 6 commits into
devfrom
feature/r-image-4.6.2
Nov 29, 2026
Merged

cjfields merged 6 commits into
devfrom
feature/r-image-4.6.2

Conversation

@cjfields

Copy link
Copy Markdown
Member

Summary

Implements #76: a single, version-pinned R image for TADA's R steps and the dada2-rs R references. All R modules now use it, pinned by digest.

Image: ghcr.io/hpcbio/tada:r4.6.2-dada2-1.42.0@sha256:e7fd9fe12c50c5036e117763a14be60544143321c2a0831dc7a792c53e2a143e
(built from docker/r4.6.2-dada2-1.42.0, run 46314650442)

Base rocker/tidyverse:4.6.2, pinned by digest (was rocker/verse:4.5.1)
R / Bioconductor 4.6.2 / 3.24
CRAN dated P3M snapshot, 2026-11-16
dada2 / DECIPHER / phangorn 1.42.0 / 3.10.0 / 2.12.1, checked at build time

Changes

Image (dockerfiles/R/)

  • versions.env (new) holds every pinned version in one place. CI passes it as build args and derives the tag r<R>-dada2-<dada2> from it.
  • The build fails unless R, Bioconductor, the CRAN snapshot and the three result-affecting packages match versions.env.
  • CRAN points at a dated P3M snapshot. rocker's newest R tag still installs from latest, because rocker only freezes a tag's snapshot once the next R version is released.
  • apt-get upgrade removed. Ubuntu 26.04 changes: libncurses5-dev → libncurses-dev, libglpk-dev added (P3M's igraph binary, pulled in by phangorn), and the base image's OpenSSL libcurl used instead of GnuTLS.
  • An ldd check fails the build if any installed R shared library has an unresolved system dependency, listing all of them at once.
  • jsonlite and scales added for dada2-rs helper scripts.
  • Provenance is written to /opt/tada/versions.txt, session_info.txt and packages.tsv.

CI (docker-ci.yml)

  • Reads versions.env, sets up buildx, and test-builds without pushing on PRs that touch the image.
  • The versioned tag is pushed only from docker/* branches, so release rebuilds can't overwrite it.
  • Dropped the release: published trigger, which built the same tags a second time after the v* tag push.

Modules

  • The 35 local R modules and the mmseqs_profile_filter subworkflow move from docker-DADA-1.36 to the new image, pinned by tag and digest. The old image stays published.

Testing

  • The image built and published in run 46314650442, with all version and shared-library checks passing.
  • The test profile passed on Nextflow 25.10.4 with the new image and the old dog stool data (run 46316936443).
  • This PR's CI runs the MiSeq SOP subset (Test with the mothur MiSeq SOP data; require Nextflow >= 25.04 #77) on 25.04.0 and 25.10.9 against the new image.

Notes

  • Bioconductor has no dated snapshots, so a Bioconductor bug-fix release (e.g. dada2 1.42.1) will fail the build until versions.env is updated. That failure is intended.
  • System packages from apt aren't snapshot-pinned. snapshot.ubuntu.com could close that gap if needed.
  • Every push to a docker/* branch rebuilds the image and gives the tag a new digest, which is why modules pin the digest.

Closes #76 once HPCBio/dada2-rs#370 has regenerated its reference in this image. Refs #29, #78.

🤖 Generated with Claude Code

cjfields and others added 6 commits November 29, 2026 17:02
- Base on rocker/tidyverse:4.6.2 pinned by digest (was rocker/verse:4.5.1);
  QC PDFs need no LaTeX
- Pin CRAN to a dated P3M snapshot (rocker's 4.6.2 tag still tracks `latest`)
- New versions.env is the single source of versions: CI passes it as build
  args and tags the image r<R>-dada2-<dada2> from docker/* branches
- install.R fails the build unless R, Bioconductor, CRAN snapshot, dada2,
  DECIPHER and phangorn match the pinned versions
- Add jsonlite and scales for dada2-rs reference/helper scripts
- Drop `apt-get upgrade`; libncurses5-dev -> libncurses-dev (Ubuntu 26.04);
  use libcurl4-openssl-dev already in the base instead of the gnutls variant
- Write provenance to /opt/tada/{versions.txt,session_info.txt,packages.tsv}
- CI: set up buildx; build without pushing on PRs touching the image

Refs #29, HPCBio/dada2-rs#370

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The key pattern [A-Z_]+ skipped DADA2_VERSION, so the build arg was
missing and the versioned tag was 'r4.6.2-dada2-'. Also fail the
version-reading step if any required key is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed libs

phangorn -> igraph; P3M's igraph binary links libglpk.so.40, which the
base lacks, so library(phangorn) failed. install.R now runs ldd over all
installed R shared objects and lists every missing library in one go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base R's tcltk links Tcl/Tk, which rocker omits on purpose; RcppParallel's
tbbmalloc_proxy loads libtbbmalloc from its own lib/ dir at runtime.
Neither is a real gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Switch the 35 local R modules and the mmseqs_profile_filter subworkflow
from ghcr.io/hpcbio/tada:docker-DADA-1.36 to
ghcr.io/hpcbio/tada:r4.6.2-dada2-1.42.0, pinned by digest
(sha256:e7fd9fe1...) so every result maps to one image.

Also silence the BuildKit InvalidDefaultArgInFrom warning; the base
image args intentionally come from versions.env.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjfields
cjfields merged commit 18d5345 into dev Nov 29, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant