Repository navigation
Move inline R from modules to bin/ scripts - #80
Merged
Merged
Conversation
Extract all inline R code from 35 modules/local/*.nf files into standalone R scripts under bin/. Each script uses optparse for parameter handling where Nextflow variables were previously interpolated directly. Modules updated to call the external scripts with appropriate CLI flags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> (cherry picked from commit 82e1519, feature/migrate-rscripts)
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the inline R from 35
modules/localprocesses into standalone scripts underbin/. Each script takes its inputs throughoptparseinstead of Nextflow string interpolation. The modules now just call the script with CLI flags.This is the change from
feature/migrate-rscripts(April 2026), which was never merged. That branch has the change twice,1dead19and a rebased copy82e1519, plus a merge commit joining them. This PR cherry-picks only82e1519onto currentdev, giving one commit.Checks before opening
dev.ghcr.io/hpcbio/tada:r4.6.2-dada2-1.42.0@sha256:e7fd9fe1…). No module still contains an inline#!/usr/bin/env Rscriptblock.bin/*.Rscripts are executable.Relation to #78
Small effect on strict-syntax lint: 97 → 95 errors, both in
checkfastqqualities. Merging before #78 avoids conflicts, since #78 touches nearly every module. Unrelated cleanup noticed along the way, left for #78:bin/PlotMergePairs.Ris unused and not executable.🤖 Generated with Claude Code