We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating a list with a single element containing a path, this list gets automatically converted to path object.
I would expect that list will always be passed to processes as list regardless of number of elements stored in it.
process C { input: tuple val(id), path(reads) script: println reads.size() } workflow { ch_read_pairs = channel.fromFilePairs( params.reads, checkIfExists: true, size: -1 ) ch_read_pairs.view() C( ch_read_pairs ) }
nextflow run [test.nf](http://test.nf/) --reads *_\{R1,R2\}.fastq returns number of elements
nextflow run [test.nf](http://test.nf/) --reads *_\{R1,R2\}.fastq
[temp, [/data/temp_R1.fastq, /data/temp_R2.fastq]] 2
nextflow run [test.nf](http://test.nf/) --reads *_\{R1,\}.fastq returns file size
nextflow run [test.nf](http://test.nf/) --reads *_\{R1,\}.fastq
[temp, [/data/temp_R1.fastq]] 62
Same happens when defining channel with Channel.of( [path('temp_R1.fastq')] )
Channel.of( [path('temp_R1.fastq')] )
The text was updated successfully, but these errors were encountered:
Duplicate of #969, also related to #1236 and #2425. See this comment for the planned solution: #2425 (comment)
Sorry, something went wrong.
No branches or pull requests
Bug report
When creating a list with a single element containing a path, this list gets automatically converted to path object.
Expected behavior and actual behavior
I would expect that list will always be passed to processes as list regardless of number of elements stored in it.
Steps to reproduce the problem
Program output
nextflow run [test.nf](http://test.nf/) --reads *_\{R1,R2\}.fastq
returns number of elementsnextflow run [test.nf](http://test.nf/) --reads *_\{R1,\}.fastq
returns file sizeEnvironment
Additional context
Same happens when defining channel with
Channel.of( [path('temp_R1.fastq')] )
The text was updated successfully, but these errors were encountered: