nextflow
nextflow copied to clipboard
Deprecate tap operator, extend set operator to return input channel
The tap isn't marked as deprecated, but it depends on Channel.create()
which is deprecated. I tried the top example with Channel.empty()
instead but it didn't work, which makes sense because you shouldn't be able to just write to a channel like that.
So should we deprecate tap
? It seems like we could achieve the same functionality by changing set
to return itself like view
. Then you could use set
in the middle of an operator chain to emit into a new channel while proceeding with other channel operators.
another option could to allow tap
to create an new channel by name, e.g.
something.tap('new_channel')
but not sure it makes much sense
Related #1766
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bump