Merged
Conversation
CAT_FASTQ emits a bare path while the skip branch emits a list; normalize both to a list so downstream consumers don't need to handle both forms.
Tools that cannot handle paired-end input (humann_v3, humann_v4, fmhfunprofiler) now raise an explicit error if they receive more than one file, which would indicate CONCAT_ALL failed to produce a single concatenated FASTQ.
Add a validation step in prepareInputs for PE-aware tools that checks the number of read files matches meta.single_end (1 for SE, 2 for PE), so mismatches are caught early with a clear error message. Also document the expected channel structure so future tools added to this branch know they must use meta.single_end to switch CLI argument style.
Tests cover all four input scenarios (SE single-run, PE single-run, SE multi-run, PE multi-run) and verify that every code path produces a consistent [meta, [reads]] output structure with exactly one file, matching the normalization fix applied to the skip branch. Also verifies that multiple samples stay independent.
…sertions nf-test exposes channel path elements as Strings, not java.nio.Path/File objects, so .name raises MissingPropertyException. Use .endsWith() directly.
nickp60
approved these changes
Mar 6, 2026
Owner
nickp60
left a comment
There was a problem hiding this comment.
This is great, thanks! Thanks for implementing all possible cases for the tests
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.
Support and test SE reads (#12)
Summary of changes: