nextflow-io / nf-prov

Apache License 2.0
23 stars 11 forks source link

missing step numbers in parametric domain #32

Open mauerk opened 3 months ago

mauerk commented 3 months ago

Hello, is it possible to add the step numbers to the parametric domain to see which tool a parameter will be used in? It seems that all items in the parametric domain have a hardcoded step of "0", presumably because these parameters are given directly to the pipeline itself and can be edited on the command line or the config. But it would be great for provenance reasons to actually know which tools/steps use which parameters.

https://github.com/nextflow-io/nf-prov/blob/1d0458a7be125eb703bedf368b0c120e62bd2690/plugins/nf-prov/src/main/nextflow/prov/BcoRenderer.groovy#L121

Thanks!

bentsherman commented 3 months ago

I'm not sure what else to do with this field because it is not flexible enough. What if a param is used by multiple processes? I don't think there is any way to represent that

bentsherman commented 3 months ago

Tracing params to processes is something I would like to do in general though, such as for the workflow DAG