Repository navigation
feat: restrict --input to .sdrf.tsv extension - #78
Conversation
The pipeline always normalised inputs to .sdrf.tsv internally (SAMPLESHEET_CHECK had a pandas-based .csv → .tsv conversion and a .sdrf → .sdrf.tsv rename) but the schema let any of .sdrf, .tsv, or .csv through. That left users on three different conventions for the same file and required runtime gymnastics in a process whose only job is to validate. Make .sdrf.tsv the contract: - nextflow_schema.json: tighten --input pattern from ^\S+\.(?:csv|tsv|sdrf)$ to ^\S+\.sdrf\.tsv$, switch mimetype to text/tab-separated-values, and rewrite description / help_text to reflect the single accepted extension. nf-schema enforces this at startup, so wrong inputs now fail fast with a clear validation error rather than silently going through the conversion path. - modules/local/samplesheet_check/main.nf: drop the in-process CSV→TSV conversion and the .sdrf→.sdrf.tsv basename rewrite. The staged file is guaranteed to be .sdrf.tsv, so just hand it to quantmsutilsc as-is. Removes the pandas dependency from this process's hot path and shaves the only nontrivial logic. - README.md, docs/usage.md, docs/parameters.md, ro-crate-metadata.json: update the prose to "must use the .sdrf.tsv extension" and rename example inputs from `sdrf.tsv` / `dda_sdrf.tsv` to `experiment.sdrf.tsv` / `dda_experiment.sdrf.tsv` for consistency. - CHANGELOG.md: entry under [Unreleased] § Changed with migration note (rename existing samplesheets, convert CSV inputs upstream). `nf-core pipelines schema lint` and `nf-core pipelines lint` are green (177 passes, 0 failures, 8 pre-existing warnings carried from the 4.0.2 template sync).
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Summary
Make
.sdrf.tsvthe contract for--input. Previously the schema accepted.sdrf,.tsv, or.csvand theSAMPLESHEET_CHECKmodule performed in-process normalisation (pandas-based CSV→TSV conversion and.sdrf → .sdrf.tsvrename) — which meant users were on three different conventions for the same thing and a validation step was carrying conversion logic. This PR collapses both:nextflow_schema.json--input.patterntightened from^\S+\.(?:csv|tsv|sdrf)$to^\S+\.sdrf\.tsv$.mimetypeswitched totext/tab-separated-values.descriptionandhelp_textrewritten. nf-schema fails fast at startup if the user passes anything else.modules/local/samplesheet_check/main.nfdrops the CSV→TSV pandas conversion and the basename rewrite; it now just passes the staged.sdrf.tsvstraight toquantmsutilsc checksamplesheet.README.md,docs/usage.md,docs/parameters.md, and the embedded description inro-crate-metadata.jsonupdated to "must use the.sdrf.tsvextension". Example invocations renamed from--input sdrf.tsvto--input experiment.sdrf.tsvfor consistency.[Unreleased]§Changedwith a migration note.Breaking change
Users currently passing
.sdrf,.tsv, or.csvwill hit:Migration: rename to
.sdrf.tsv(e.g.mv experiment.tsv experiment.sdrf.tsv); for.csvinputs convert to TSV first.Test plan
nf-core pipelines schema lint—Pipeline schema looks valid (found 102 params)nf-core pipelines lint— 177 passes / 0 failures / 8 pre-existing warnings carried from the 4.0.2 template syncgrep -rEn 'input\s*=\s*["'\''][^"'\'']+\.(tsv|csv|sdrf)["'\'']' conf/tests/ tests/— no test config references a non-.sdrf.tsvinput that would now hard-failci/merge_ci/extended_ciruns (test_dia, test_dia_dotd, test_dda, ...) — all already use.sdrf.tsvtest data