-
Notifications
You must be signed in to change notification settings - Fork 705
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
Rnaseq module version #162
Conversation
This is brilliant 😀 Much simpler, and will be even better when we get around to refactoring all of that boilerplate code.. A couple of minor thoughts:
This is of call all just syntactic sugar.. The core functionality that you've introduced here is great! Especially once we get rid of the cruft this will make the pipelines super simple. And it will be nice to split the processes in to multiple files for clarity too (eg: Nice work! |
Would a map be better for this? Maybe something like? trim_galore.output['fastq'].set { trimmed_reads }
trim_galore.output['results'].set { trimgalore_results }
trim_galore.output['reports'].set { trimgalore_fastqc_reports } Easier to read if its at all possible? |
Oops .. I was missing this.
You can already, the output object is a list.
That's something I was thinking as well, tho I would prefer not to add to many magic syntax extension. Currently it's also possible to assign an output list using the equals operator, e.g.
Yes.
That's an interesting point. Actually I'm starting think to some format of input/output data model definition i.e. the ability to define a custom data structure to be used in place of unnamed tuples. At that point it would be possible. However I would close this first version using the current approach tuple based. Also it would be nice to investigate how to remove all that ps. put my github handle in your reply otherwise the mail get buried in the nf-core notifications. |
I agree that removing all of the ifs in pipeline logic would be nice - I tried using |
@pditommaso Sounds good. Ive also been thinking it would be good to include the version command within the module file e.g. for This can then be passed into an channel to be used later in the pipeline for documentation purposes. At present we use regexes to strip the output of the command to just contain the actual version: Maybe we can implement the regex parsing here too? It just means all of the modules are shipped with version tracking by default, and it only has to be done once! |
@drpatelh - see an issue along a similar lines that @pditommaso and I discussed a little while back: nextflow-io/nextflow#879 |
This is really outdated now compared to the latest stable DSL2 release so will close. Thanks all! |
This is a draft pull request only for the sake to experiment how improve nf-core pipelines via NF modules.
WORK IN PROGRESS, but IMO this represents a huge step forward.