Hi,
I would like to create a workflow that sets default parameters for certain parts of a record and take input from the user for other parts. I want to keep the tool such that the inputs can be changed, but just set defaults for one particular workflow. I'm using the trimmomatic types found here: https://github.com/common-workflow-language/workflows/tree/master/tools
For example, the tool trimmomatic.cwl
takes a slidingWindow
input as such:
trimmomatic-sliding_window.yaml
type: record
name: slidingWindow
fields:
- name: windowSize
type: int
- name: requiredQuality
type: int
If I want to set the default for windowSize
for my workflow, but allow the user to specify the requiredQuality
field in the workflow, how do I do this? I've tried using valueFrom
in the step input itself to return a record type and setting defaults from the workflow level inputs, but I've gotten only errors even when the tool validates, so I'm not sure how to proceed. Is this even doable? Any suggestions are appreciated!
Thank you for the response! I am actually trying to avoid setting the default within the command line tool itself, but rather set defaults for a particular workflow so the tool can remain flexible for use in other workflows with different settings, it just needs the adapter path to be flexible. Would this work to move it into the steps inputs section?