-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add script recommendations #2888
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for nf-core-main-site ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for nf-core-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@nf-core-bot fix linting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, escaping in suggestions is hard... hope you undersatnd it...
I also decided to be more strict, and require a stadnardised tempalte file naming structure (Which would require an update to deseq2/differential, let me know what you think...
Co-authored-by: James A. Fellows Yates <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few further tweaks
|
||
For example, for R you can refer to the `deseq2/differential` module [here](https://github.com/nf-core/modules/blob/4c2d06a5e79abf08ba7f04c58e39c7dad75f094d/modules/nf-core/deseq2/differential/templates/deseq_de.R#L509-L534). | ||
|
||
#### Script template stub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Script template stub | |
#### Module template stub |
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
@nf-core-bot fix linting |
Co-authored-by: James A. Fellows Yates <[email protected]>
Can we reference the reason why not to use module binaries? I much prefer the use of in-line scripts where possible, what is the justification behind saying it can only be 20 lines? |
Oh, and some examples pointing to other modules rather than |
A PR is in progress to address the gap in the Nextflow docs. This doesn't mean that nf-core can't have its own standards/recommendations, but it will hopefully add something that can be easily referenced. |
Great, always happy to see more documentation on the Nextflow page itself. |
Co-authored-by: Christopher Hakkaart <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
Apparently you can only use binaries in cloud contexts if you use wave (not other containers), which I feel is overly restrictive.
Agree, more Nextflow docs/example on how to use would be nice, and again, would rather not 'force' Seqera Containers.
It's a rule of thumb suggested by @pinin4fjords (I've changed to 'approx' though)
Suggest some then! 😝 |
I suggest removing the repeated "approximately 20 lines" and instead describing this once: something like, "When a script extends beyond a readable length (approximately 20 lines)..." Then just refer to a readable length for the rest of the text. Readable length could be "Manageable size", "too verbose", "excessive length", or something like that |
Co-authored-by: Christopher Hakkaart <[email protected]>
Done! |
Much better - thanks! |
@SPPearce to be clear, I want module binaries to be the way to do this, with But module binaries are not entirely portable (see the provisos in the linked docs), so templates are the least worst way of doing this I've found - overjoyed if someone tells me a better way. My crappy outdated R is another issue entirely ;-) |
nice Co-authored-by: Jonathan Manning <[email protected]>
Is everyone reasonably happy with the current PR? Are there any blockers to merging? |
Propose some lines about module scripts.
@netlify /docs/guidelines/components/modules