I remember this discussion has come up multiple ti...
# team-maintainers
f
I remember this discussion has come up multiple times, but I don't remember what the verdict was and don't want to search through endlesss Slack channels 😅 . I just had a conversation with a group that was commneting on the lack of documentation for modules about parameters. This goes back to the whole
ext.args
discussion and whether that this is a pipeline or a module problem. Do we have any plans to enable definition and documentation of specific parameter values in
meta.yml
of modules? What can we suggest to people that want this (and their modules don't live in nf-core but they like to adhere to nf-core standards so linters passing etc?)
i
I don't think it's really necessary. The module documentation is supposed to provide Nextflow-specific information on the module (i.e. what channels need to go in and out), not a full documentation for the tool (to which the module meta links anyway).
party this 3
f
I think it really depends how you are using these modules and what you want to provide for your users. If you have a collection of pipelines that use many modules and you want to set some parameters to default but still let people modify them, can be helpful to include this in the documentation (that’s their situation). I also don’t think its strictly necessary, but certainly something people might want to do outside of nf-core. I guess then my technical question is, what is the best way forward for this group? Modify the linting so it accepts changes to the
meta.yml
to include such changes in their codebase?
i
Within nf-core this feels much more like something that belongs in pipeline docs, but others using the template may have a use for such information. This could be solved with an extra optional field in the schema, something like
extra_args
.
r
@Florian Wuennemann are they setting the tool arguments in the module code or passing them in?
f
They have a large module catalog, so I am not sure if they are consistently doing one or the other. I am guessing that they are passing them in at the moment to follow nf-core standards. I have given them some suggestions on how they can set them in the module and still configure them. So functionally they can already achieve what they want. They just wanted to give their larger community (neuroimaging) some more documentation for parameters that have good defaults but that users building pipelines might still want to modify. @Igor Trujnara I agree generally with the philosophy that they could just link to the original tool for documentation.
s
I guess there is a tangentially related question of what about documenting meta fields that are used in the module?
this 2
And before anyone says "but we shouldn't require anything but `id`", we use
meta.single_end
in a reasonable number of modules and then at least another ~30 or so use other stuff