Repository navigation
fix(nextflow-development): quote samplesheet fields with csv.writer - #1305
Closed
CryptGodSon wants to merge 1 commit into
Closed
CryptGodSon wants to merge 1 commit into
CryptGodSon wants to merge 1 commit into
Conversation
_write_samplesheet joined values with ','.join, so a FASTQ/BAM path containing a comma (e.g. "reads,run/sample_R1_001.fastq.gz") was split across several columns. The script reported success, but the file had more data fields than header fields and failed its own --validate. Write rows with csv.writer instead, keeping '\n' line endings so output for ordinary paths is unchanged. Fixes anthropics#1296
Contributor
|
Thanks for your interest! This repo only accepts contributions from Anthropic team members. If you'd like to submit a plugin to the marketplace, please submit your plugin here. |
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
_write_samplesheetingenerate_samplesheet.pybuilt rows with','.join, so a FASTQ/BAM path containing a comma (e.g.reads,run/sample_R1_001.fastq.gz) was split across several columns. The script reported success, but the resulting file had more data fields than header fields and failed the script's own--validatecheck.Changes
csv.writer, which quotes fields containing commas or quotes.\nline endings (lineterminator='\n',newline=''), so output for ordinary paths is byte-for-byte unchanged.import csvto module level (it was previously imported locally invalidate_existing_samplesheet).Fixes #1296