sevenbridges-r icon indicating copy to clipboard operation
sevenbridges-r copied to clipboard

The 'required' field in CWL is not kept when convert app

Open tdelhomme opened this issue 6 years ago • 2 comments

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" 

tdelhomme avatar Sep 19 '17 08:09 tdelhomme