You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A nice feature for nf-schema would be some kind of option to make the plugin automatically check a parameter again when it has been changed.
Ideally this feature could completely replace the validateParameters function to work out of the box, but not sure if this is possible as a nextflow plugin without making the code extremely slow. This would need some testing :)
The text was updated successfully, but these errors were encountered:
What do you mean when a parameter has changed? I would argue that the params map should be immutable in the script, except perhaps for some initial definitions
Yep I agree with you! But it would be nice to validate these initial changes too. The current way solves this by using a function that gets called after these are set, but I'd rather move the validation to some configuration option to in order to make it even easier to use the plugin. I'm just spitballing here so no idea if it even will be possible but it would be nice
To be honest, I think even the script shouldn't be allowed to assign parameters. It is a shorthand to provide some sensible defaults in the script, but really the schema file should be the source of truth for such defaults (or a "params" block in the script but that's still just an idea).
And that way you won't have to go to all of this trouble to do dynamic validation 😉
Also true, Default assigning has also been requested for the plugin so this would also be possible once we move to a start-of-pipeline validation (#35). But yeah this is probably some nice future thinking and it will be hard as long as params stay mutable but we'll see :p
A nice feature for
nf-schema
would be some kind of option to make the plugin automatically check a parameter again when it has been changed.Ideally this feature could completely replace the
validateParameters
function to work out of the box, but not sure if this is possible as a nextflow plugin without making the code extremely slow. This would need some testing :)The text was updated successfully, but these errors were encountered: