Repository navigation
hostile/clean: name outputs and report sample after the prefix - #14416
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FelixKrueger
reviewed
Dec 5, 2026
FelixKrueger
left a comment
Contributor
There was a problem hiding this comment.
subworkflows/nf-core/fastq_shortreads_preprocess_qc/tests/main.nf.test.snap still has the old names in reads for its two non-stub hostile tests (CI didn't run that subworkflow), so it needs a snapshot update too.
Member
Author
Done! |
FelixKrueger
approved these changes
Dec 5, 2026
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.
Hostile names its cleaned reads after the input file stem (
<stem>.clean_1.fastq.gz) and reports that input name in the JSON (fastq1_in_name), which MultiQC uses as the sample name. Soext.prefixonly applied to the JSON, and both the output names and the MultiQC sample name depended on upstream file names: two samples whose input files share a basename got the same output names (overwriting each other when published to one directory) and were merged into one MultiQC row. The stub also used names (<prefix>.clean_1.fastq.gz) that the real script never produced.This PR links the reads under the prefix (in separate directories, so both mates keep the same stem) before running Hostile. Outputs are now
<prefix>.clean.fastq.gz(single-end) or<prefix>.clean_{1,2}.fastq.gz(paired-end), and the report's input name is<prefix>.fastq.gz. The stub now matches. Channel structure is unchanged; only file names differ.The mate-order test previously checked the input names in the report; it now checks that each output has the content of the matching mate.
Found while integrating Hostile in nf-core/mag (nf-core/mag#1146).
PR checklist
nf-core modules test hostile/clean --profile singularity