Repository navigation
Replace legacy groupTuple and transpose operators with typed groupBy and flatMap - #156
Merged
Merged
Conversation
Replace the legacy groupTuple and transpose operators with groupBy and flatMap so the workflow code is ready for static typing, where the legacy operators are not type-checked. - ncbi_download_input: collect source_version-keyed [reference, meta] entries with groupBy instead of groupTuple - prepare_genome_rnaseq: merge input gtf and GFFREAD output with groupBy instead of groupTuple - datasheet_to_channel: flatten VCF file holders with flatMap instead of transpose Generated by opencode
|
The vcf channel mixes files() holders (dbsnp) with single file() entries (germline_resource, known_indels, known_snps, pon). Path.toList() splits an http/https path into its segments, so calling toList() on a single Path broke the flatMap replacement of transpose and fed non-existent path segments to HTSLIB_BGZIPTABIX, causing "Cannot invoke method provider() on null object". Pass single Path entries through unchanged, matching the transpose behaviour; only expand files() holders per file. Generated by opencode
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.
PR checklist
CHANGELOG.mdis updated.Description
Prepare the pipeline for static typing (Phase 3 Part A of the nf-core/rnaseq typed-workflows plan) by replacing legacy operators that are not type-checked with their typed equivalents:
main.nfncbi_download_input: replacegroupTuple()withgroupBy(), collectingsource_version-keyed[reference, meta]entries instead of positionalgroupTuplecolumns.subworkflows/local/prepare_genome_rnaseq: replacegroupTuple()withgroupBy()when merging the input GTF withGFFREADoutput.subworkflows/local/datasheet_to_channel: replacetranspose()withflatMapto expandfiles(...)VCF holders into one[meta, vcf]per path.Operator behaviour is equivalent (verified both semantically and with
nf-test); no output changes are expected.Verification
nf-core pipelines lint: 366 passed, 0 failednf-core pipelines lint(nextflow lint .): 54 files, 0 errorsnf-test test tests/default.nf.test --profile=+docker: PASSED (71.5s)Generated by opencode
Verified by @maxulysse