-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
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
Test how variable numbers of inputs and outputs work #6
Comments
Yeah, this is going to be tricky. Pipelines will want to use the module command in different ways so we will have to try and anticipate different numbers/types of inputs and outputs. Should this be done on a case-by-case basis? e.g. add the option for a another input/output whilst maintaining backward compatability? With and conditional outputs as: Note all of the files dont have to be created as an output here and so NF wont fail if they arent. Maybe the solution is to have all outputs from a module in a single channel and then filter as required but this could get messy... |
I think DSLv2 can have named outputs, right? So I'm hoping that if pipelines specify the output channels that they are using, they can ignore the ones that they don't need. Then we can just allow those channels to be empty and I think everything should be fine... 🤞 The conditional input I think the one channel for everything isn't necessary if we use optional outputs and named outputs in the workflows. Make sense? Bit scatterbrained today sorry - say if the above is jumbled jibberish 😆 |
No. That makes sense. Like most things "modules" this will need a play around to work out how best to proceed. I need to fix up and look sharp with |
Yes I agree - we should really get some "basic" tests for this and play around a bit to get a feeling for how this behaves. During the discussion we all kind of agreed its got lots of potential for problems arising, which is why Phil created the issue here 👍 |
We have a requirement to We still don't have a proper solution for optional inputs but this will have to be announced officially on the Nextflow end |
Need to look in to how Nextflow DSL2 handles variable numbers of inputs or outputs.
For example - TrimGalore! can optionally save untrimmed reads. If that is enabled, we will have an additional output channel. How do pipelines handle this?
The text was updated successfully, but these errors were encountered: