`Channel.` or `channel.`? :disappointed: Nextflow ...
# nostupidquestions
e
Channel.
or
channel.
? šŸ˜ž Nextflow documentation prefers
channel
, but 90% of modules stuff (+nf-test) is
Channel
this 1
m
Strict syntax wants
channel
šŸ™ 1
j
IMO
channel.
is uglier, but I am switching for the above reason
party this 4
āž• 1
šŸ’Æ 1
e
There we go, thanks šŸ˜„
n
let's just use
channel.
better that everyone uses the same thing IMO šŸ˜›
m
Copy code
% NXF_SYNTAX_PARSER=v2 nextflow lint main.nf
Warn  main.nf:2:5: The use of `Channel` to access channel factories is deprecated -- use `channel` instead
│   2 |     Channel.value(5)
ā•°     |     ^^^^^^^

Nextflow linting complete!
 āœ… 1 file had no errors
j
Don't question the linter (i.e. strict sytnax)
b
it wasn't clarified until recently, but
Channel
is the type for queue channels while
channel
is the built-in namespace that provides the channel factories. we had to starting being more particular about this to prepare for static types
šŸ‘€ 2
āœ… 2
j
Can I ask where this is documented? I don't see it listed in https://nextflow.io/docs/latest/strict-syntax.html
j
Thanks! Might be worth putting a clarifying statement somewhere in the strict syntax notes that this namespace confusion is now being rectified?
b
I do plan to add a note about
Channel
vs
channel
, either on that strict syntax page or the new static types tutorial
šŸ‘ 1