Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation error... could not validate field secondaryFiles #23

Open
jeremiahsavage opened this issue Nov 24, 2015 · 0 comments
Open

Validation error... could not validate field secondaryFiles #23

jeremiahsavage opened this issue Nov 24, 2015 · 0 comments

Comments

@jeremiahsavage
Copy link
Contributor

With

$ cwl-runner --version
/home/ubuntu/.virtualenvs/p2/bin/cwl-runner 1.0.20151124040259

using input:
https://github.com/jeremiahsavage/workflows/blob/587d3fba885f27289643280d11ad0e09ff2a1f32/tools/remove_qcfail.cwl.yaml
I get error below.

Version cwltool-1.0.20151110030107 does not give this error, while cwltool-1.0.20151121032923 does. I could bisect further on other versions if that would be useful, using https://pypi.python.org/simple/cwltool/

$ cwl-runner /mnt/SCRATCH/tools/workflows/tools/remove_qcfail.cwl.yaml --first_input_bam ~/SCRATCH/47b42e81-2500-4ebc-a0c2-acd3187cc2f0/C440.TCGA-IN-8462-01A-11D-2340-08.1.bam --second_input_bam ~/SCRATCH/47b42e81-2500-4ebc-a0c2-acd3187cc2f0/realn/md/C440.TCGA-IN-8462-01A-11D-2340-08.1.bam --uuid test
/home/ubuntu/.virtualenvs/p2/bin/cwl-runner 1.0.20151124040259
Tool definition failed validation:
Validation error in object file:///mnt/SCRATCH/tools/workflows/tools/remove_qcfail.cwl.yaml
  Could not validate as `CommandLineTool` because
    could not validate field `inputs` because
      At position 0
        could not validate field `inputBinding` because
          the value `{'prefix': '--first_bam',
           'secondaryFiles': [{'engine': 'node-engine.cwl',
                               'script': '{\n  return {"path": $job[\'first_input_bam\'].path.[...]`
           is not a valid type in the union, expected one of:
          - null, but
             the value `{'prefix': '--first_bam',
             'secondaryFiles': [{'engine': 'node-engine.cwl',
                                 'script': '{\n  return {"path": $job[\'first_input_bam\'].path.[...]` is not null
          - CommandLineBinding, but
             could not validate field `secondaryFiles` because
              the value `[{'engine': 'node-engine.cwl',
                'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]`
               is not a valid type in the union, expected one of:
              - null, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]` is not null
              - string, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]` is not string
              - Expression, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]`
                 is not a valid symbol in enum Expression, expected one of 'ExpressionPlaceholder'
              - array of <string or Expression>, but
                 At position 0
                  the value `{'engine': 'node-engine.cwl',
                   'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}`
                   is not a valid type in the union, expected one of:
                  - string, but
                     the value `{'engine': 'node-engine.cwl',
                     'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}` is not string
                  - Expression, but
                     the value `{'engine': 'node-engine.cwl',
                     'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}`
                     is not a valid symbol in enum Expression, expected one of 'ExpressionPlaceholder'

  Could not validate as `Workflow` because
    could not validate field `inputs` because
      At position 0
        could not validate field `inputBinding` because
          the value `{'prefix': '--first_bam',
           'secondaryFiles': [{'engine': 'node-engine.cwl',
                               'script': '{\n  return {"path": $job[\'first_input_bam\'].path.[...]`
           is not a valid type in the union, expected one of:
          - null, but
             the value `{'prefix': '--first_bam',
             'secondaryFiles': [{'engine': 'node-engine.cwl',
                                 'script': '{\n  return {"path": $job[\'first_input_bam\'].path.[...]` is not null
          - Binding, but
             could not validate field `secondaryFiles` because
              the value `[{'engine': 'node-engine.cwl',
                'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]`
               is not a valid type in the union, expected one of:
              - null, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]` is not null
              - string, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]` is not string
              - Expression, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]`
                 is not a valid symbol in enum Expression, expected one of 'ExpressionPlaceholder'
              - array of <string or Expression>, but
                 At position 0
                  the value `{'engine': 'node-engine.cwl',
                   'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}`
                   is not a valid type in the union, expected one of:
                  - string, but
                     the value `{'engine': 'node-engine.cwl',
                     'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}` is not string
                  - Expression, but
                     the value `{'engine': 'node-engine.cwl',
                     'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}`
                     is not a valid symbol in enum Expression, expected one of 'ExpressionPlaceholder'

            could not validate field `prefix` because it is not recognized and strict is True ([u'name', u'id'])

    could not validate field `outputs` because
      At position 0
        could not validate field `outputBinding` because
          the value `{'glob': '${\n  return "remove_qcfail/"+inputs[\'second_input_bam\'].path.split(\'/\').slice(-1)[0];\n}\n'}` is not a valid type in the union, expected one of:
          - null, but
             the value `{'glob': '${\n  return "remove_qcfail/"+inputs[\'second_input_bam\'].path.split(\'/\').slice(-1)[0];\n}\n'}` is not null
          - Binding, but
             could not validate field `glob` because it is not recognized and strict is True ([u'name', u'id'])

    missing required field `steps`
    could not validate field `baseCommand` because it is not recognized and strict is True ([u'name', u'id'])
  Could not validate as `ExpressionTool` because
    could not validate field `inputs` because
      At position 0
        could not validate field `inputBinding` because
          the value `{'prefix': '--first_bam',
           'secondaryFiles': [{'engine': 'node-engine.cwl',
                               'script': '{\n  return {"path": $job[\'first_input_bam\'].path.[...]`
           is not a valid type in the union, expected one of:
          - null, but
             the value `{'prefix': '--first_bam',
             'secondaryFiles': [{'engine': 'node-engine.cwl',
                                 'script': '{\n  return {"path": $job[\'first_input_bam\'].path.[...]` is not null
          - Binding, but
             could not validate field `secondaryFiles` because
              the value `[{'engine': 'node-engine.cwl',
                'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]`
               is not a valid type in the union, expected one of:
              - null, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]` is not null
              - string, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]` is not string
              - Expression, but
                 the value `[{'engine': 'node-engine.cwl',
                  'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}]`
                 is not a valid symbol in enum Expression, expected one of 'ExpressionPlaceholder'
              - array of <string or Expression>, but
                 At position 0
                  the value `{'engine': 'node-engine.cwl',
                   'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}`
                   is not a valid type in the union, expected one of:
                  - string, but
                     the value `{'engine': 'node-engine.cwl',
                     'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}` is not string
                  - Expression, but
                     the value `{'engine': 'node-engine.cwl',
                     'script': '{\n  return {"path": $job[\'first_input_bam\'].path.slice(0,-4)+".bai", "class": "File"};\n}\n'}`
                     is not a valid symbol in enum Expression, expected one of 'ExpressionPlaceholder'

            could not validate field `prefix` because it is not recognized and strict is True ([u'name', u'id'])

    could not validate field `outputs` because
      At position 0
        could not validate field `outputBinding` because
          the value `{'glob': '${\n  return "remove_qcfail/"+inputs[\'second_input_bam\'].path.split(\'/\').slice(-1)[0];\n}\n'}` is not a valid type in the union, expected one of:
          - null, but
             the value `{'glob': '${\n  return "remove_qcfail/"+inputs[\'second_input_bam\'].path.split(\'/\').slice(-1)[0];\n}\n'}` is not null
          - Binding, but
             could not validate field `glob` because it is not recognized and strict is True ([u'name', u'id'])

    missing required field `expression`
    could not validate field `baseCommand` because it is not recognized and strict is True ([u'name', u'id'])
$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant