sevenbridges-r
sevenbridges-r copied to clipboard
The 'required' field in CWL is not kept when convert app
Hi all,
When I want to convert a CWL JSON file into an app, my 'required' field is not taken into account:
The following is one of my input definition:
{
"sbg:category": "Basic",
"type": "string",
"description": "Name of the variant calling output file.",
"label": "output VCF file name",
"id": "#output_vcf_name",
"required" : false,
"inputBinding": {
"separate": false,
"sbg:cmdInclude": true,
"position": 0,
"prefix" : "--output=",
"valueFrom" : {
"class": "Expression",
"script": " $job.inputs.bamfile.name + '_platypus.vcf' ",
"engine": "#cwl-js-engine"
}
}
}
and I get:
> platypus = convert_app(f)
> platypus$get_required()
bamfile ref output_vcf_name
"File" "File" "string"