Skip to content

refactor(dada2): use base R for taxonomy CSV assembly - #61

Merged
JoshuaJewell merged 3 commits into
JoshuaJewell:mainfrom
hyperpolymath:repair/dada2-base-r
Oct 17, 2026
Merged

JoshuaJewell merged 3 commits into
JoshuaJewell:mainfrom
hyperpolymath:repair/dada2-base-r

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Replaces withdrawn #57. This branch starts directly at upstream main 52feb605 and is limited to six files.

Replaces the five CSV-assembly joins and row-name conversion with base R. Restores left-row and right-match order, preserves column order and non-syntactic sample names, and uses unique internal names during merging. Repeated suffixing handles collisions such as taxonomy Species alongside samples Species, Species.x and Species.x.x.

Removes dplyr from the discovery manifest, lockfile, both CI package checks and both installer checks. Keeps tibble in the lockfile AND discovery manifest because the installer and CI still explicitly require it; this does not rely on a claimed transitive dependency. Adds regression checks for joins and exact bytes for all five CSV outputs to the existing CI job.

Validation:

  • Lockfile JSON and workflow YAML parse; the remaining locked Depends/Imports/LinkingTo entries do not require dplyr; git diff --check passes.
  • Full CI passed for prior commit 75d9e0b, including the native-R CSV checks, Julia/integration suite, frontend tests and Agda.
  • Follow-up d9ea982 addresses the suffix-collision and tibble-discovery review findings. The new collision regression fails against the previous helper and passes after the fix, alongside all five CSV fixtures, under WebR 0.6.0 / R 4.6.0.
  • CI on d9ea982 passed. The new commit has its own successful validation run. Native R 4.5.0, Julia and bun were not run locally.

Reproduction:

Rscript --vanilla test/unit/test_dada2_tables.R
julia --project=. -t 2 test/runtests.jl --integration --server

No sequencing algorithm, toolchain pin, frontend, licensing or unrelated fork changes. Related to #36 without closing the broader migration issue.

Preserve row and column ordering and sample names, update both CI
package checks, and add focused join and CSV regression fixtures.
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hyperpolymath
hyperpolymath marked this pull request as ready for review October 17, 2026 02:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T04:04:29.025573Z d9ea982 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75d9e0ba67

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pipeline/dada2/dada2_functions.r Outdated
Comment thread R/_renv_dependencies.R
@hyperpolymath
hyperpolymath marked this pull request as draft October 17, 2026 03:25
Comment thread R/_renv_dependencies.R
library(dada2)
library(vegan)
library(dplyr)
# Retain while installer and CI explicitly verify this package.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Retain while installer and CI explicitly verify this package.

@JoshuaJewell
JoshuaJewell merged commit 0e2fa65 into JoshuaJewell:main Oct 17, 2026
3 checks passed
@JoshuaJewell
JoshuaJewell deleted the repair/dada2-base-r branch October 17, 2026 14:37
@JoshuaJewell
JoshuaJewell restored the repair/dada2-base-r branch October 17, 2026 14:37
@JoshuaJewell
JoshuaJewell deleted the repair/dada2-base-r branch October 17, 2026 14:38
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.

2 participants