-
Notifications
You must be signed in to change notification settings - Fork 56
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
parameters format #39
Comments
@drpatelh , even in the ChIP-seq or ATAC-seq projects, all parameters do not have the same format. |
They should be! The only parameter is |
What about |
Ah, sorry. Maybe I didn't explain properly. Any parameters that require a user input e.g. (file path, integer etc) are in @ewels @apeltzer What do you think about this? This is something we initially discussed way back in 2 years ago Barcelona at the NF conference. Quite a few pipelines are now adopting this approach e.g. |
Ah !! ok, I didn't get it. This is up to you. I will update according to your best practice. |
My feeling is also that it would be simpler to just have one and stick to it (my preference would be |
Its easier to distinguish parameter type? Personally, I think its easier to work out what a parameter is doing i.e. does it require some sort of input or is it just a switch. I think you probably done this subconsciously for the NGI pipelines because they had parameters like |
But surely users should know what parameters do before using them..? 😉 And we should have parameter validation pretty soon. And personally I find it harder to remember which parameters use which style. I think that the discrepancy in the old pipelines was more down to who wrote the code - me or @Hammarn 😉 |
So the beauty of having the two styles is that you can pretty much figure out what a parameter is doing before you know what it's doing or even before using it! Ok. Lets put it to the test! Probably not the best example because you know what most of these parameters are doing already (:wink:). If you had to look through them without knowing anything about what they are doing doesn't it help to figure out which ones require an input and which ones don't? To add to that the case distinction allows the https://github.com/drpatelh/chipseq/blob/b2fdfd82b76262d57478a81913298189b983badf/main.nf#L22 |
Why not use the
Or maybe |
x-ref nf-core/tools#426 |
Ok. Having thought about it a little, I'm coming round to using Let's agree on this so I can update the template to reflect this and we will need to add some docs to the website too. I have a few pipelines that are ripe for release now and so I can make the update sooner rather than later. @nf-core/core are we all in agreement? Speak now or forever hold your peace 😉 |
Nice! This should go into the guidelines that @maxulysse is starting to draft. He maybe has strong views on the issue? Note that we should be auto-generating the pipeline help text from the parameters settings file soon (nf-core/hlatyping#61), so that will make that part much easier. And we can / should also lint the documentation from that (nf-core/tools#111), so can also enforce standardisation there. |
Snake case is fine by me - as long as we all adhere to it and make things as the automated linting by @ewels possible ;-) |
Ive made some headway with this for the Any comments? Also changed |
Nice! |
Thanks! It's one of those unwritten rules that we've discussed and implemented to various degrees in some of the main pipelines but haven't had the time to officially document 😅 You could change the other parameters too? If it helps, if things do change then I'll have to update numerous pipelines! I've also updated the template today to change the last remaining parameter to this format...
https://github.com/nf-core/tools/pull/425/files#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR13
Originally posted by @drpatelh in #37
The text was updated successfully, but these errors were encountered: