Currently we support dangerous operations validation on the client-side via reana-client validate. To get more familiar with this feature read this blog post section, where the purpose of it is very well explained with some practical examples.
This feature is supported in Serial, Yadage and CWL workflows.
Expected behavior
The user should be able to run the very same command with Snakemake workflows, e.g. reana-client validate -f reana-snakemake.yaml
All the dangerous operations validation logic resides in this module (look for _validate_dangerous_operations and _display_operations_warnings functions) as part of the parameter validation.
This task should be rather straightforward to implement once the parameter validation is implemented, as we should be able to access the command (Snakefile's shell) of each rule/step when iterating over them. Check other workflow engines for reference.
The logic to parse and load the snakemake specification (Snakefile) should come from https://github.com/reanahub/reana-client/issues/540. After this, one should be able to access the multiple rules and values declared in the Snakefile.
Current behavior
Currently we support dangerous operations validation on the client-side via
reana-client validate
. To get more familiar with this feature read this blog post section, where the purpose of it is very well explained with some practical examples.This feature is supported in Serial, Yadage and CWL workflows.
Expected behavior
The user should be able to run the very same command with Snakemake workflows, e.g.
reana-client validate -f reana-snakemake.yaml
All the dangerous operations validation logic resides in this module (look for
_validate_dangerous_operations
and_display_operations_warnings
functions) as part of the parameter validation.This task should be rather straightforward to implement once the parameter validation is implemented, as we should be able to access the command (Snakefile's
shell
) of each rule/step when iterating over them. Check other workflow engines for reference.The logic to parse and load the snakemake specification (Snakefile) should come from https://github.com/reanahub/reana-client/issues/540. After this, one should be able to access the multiple rules and values declared in the Snakefile.
Expected output
workflow/snakemake/Snakefile
:Output: